@forgeroute/ui 0.5.27 → 0.5.28

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.
@@ -20,6 +20,7 @@ const ICON_PATHS = {
20
20
  };
21
21
  const CALENDAR_PATH = "M5 4h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z M16 2v4 M8 2v4 M3 10h18";
22
22
  const EDIT_PATH = "M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7 M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z";
23
+ const ACTION_FALLBACK_PATH = "M5 12h14 M12 5l7 7-7 7";
23
24
  const EYE_PATH = "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z M12 9a3 3 0 1 0 0 6 3 3 0 0 0 0-6z";
24
25
  const TRASH_PATH = "M3 6h18 M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2 M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6 M10 11v6 M14 11v6";
25
26
  var CardListItemComponent = class CardListItemComponent {
@@ -50,7 +51,6 @@ var CardListItemComponent = class CardListItemComponent {
50
51
  this.actionIcon = input("", ...ngDevMode ? [{ debugName: "actionIcon" }] : /* istanbul ignore next */ []);
51
52
  this.actionTestId = input("", ...ngDevMode ? [{ debugName: "actionTestId" }] : /* istanbul ignore next */ []);
52
53
  this.actionAriaLabel = input("", ...ngDevMode ? [{ debugName: "actionAriaLabel" }] : /* istanbul ignore next */ []);
53
- this.hasBuiltInChip = computed(() => this.editButton() || this.viewButton() || !!this.actionLabel() || this.deletable(), ...ngDevMode ? [{ debugName: "hasBuiltInChip" }] : /* istanbul ignore next */ []);
54
54
  this.editClick = output();
55
55
  this.viewClick = output();
56
56
  this.delete = output();
@@ -58,6 +58,7 @@ var CardListItemComponent = class CardListItemComponent {
58
58
  this.calendarPath = CALENDAR_PATH;
59
59
  this.editPath = EDIT_PATH;
60
60
  this.eyePath = EYE_PATH;
61
+ this.actionFallbackPath = ACTION_FALLBACK_PATH;
61
62
  this.trashPath = TRASH_PATH;
62
63
  this.iconPath = computed(() => {
63
64
  const i = this.icon();
@@ -245,7 +246,7 @@ var CardListItemComponent = class CardListItemComponent {
245
246
  @if (status() && statusVariant()) { <ui-badge [label]="status()!" [variant]="statusVariant()!" /> }
246
247
  </div>
247
248
  }
248
- <div class="cli-row" [class.cli-row--badges]="hasBadges()" [class.cli-row--badges-2]="hasBadges() && !!type() && !!status() && !!statusVariant()" [class.cli-row--badges-chip]="hasBadges() && hasBuiltInChip()">
249
+ <div class="cli-row" [class.cli-row--badges]="hasBadges()" [class.cli-row--badges-2]="hasBadges() && !!type() && !!status() && !!statusVariant()">
249
250
  @if (iconPath(); as d) {
250
251
  <div class="cli-icon-circle" [class]="'cli-icon-circle cli-icon-circle--' + icon()" aria-hidden="true">
251
252
  <svg width="14" height="14" 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>
@@ -261,6 +262,30 @@ var CardListItemComponent = class CardListItemComponent {
261
262
  <div class="cli-body">
262
263
  <div class="cli-title-row">
263
264
  <span class="cli-title">{{ title() }}</span>
265
+ @if (editButton() || viewButton() || actionLabel() || deletable()) {
266
+ <span class="cli-title-actions">
267
+ @if (editButton()) {
268
+ <button class="cli-icon-btn cli-icon-btn--edit" type="button" [attr.aria-label]="editAriaLabel() || labels.t('common.edit')" [uiTooltip]="editAriaLabel() || labels.t('common.edit')" (click)="editClick.emit()">
269
+ <svg width="13" height="13" 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]="editPath" /></svg>
270
+ </button>
271
+ }
272
+ @if (viewButton()) {
273
+ <button class="cli-icon-btn cli-icon-btn--view" type="button" [attr.aria-label]="viewAriaLabel() || labels.t('common.view')" [uiTooltip]="viewAriaLabel() || labels.t('common.view')" (click)="viewClick.emit()">
274
+ <svg width="13" height="13" 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]="eyePath" /></svg>
275
+ </button>
276
+ }
277
+ @if (actionLabel()) {
278
+ <button class="cli-icon-btn cli-icon-btn--action" type="button" [attr.data-testid]="actionTestId() || null" [attr.aria-label]="actionAriaLabel() || actionLabel()" [uiTooltip]="actionAriaLabel() || actionLabel()" (click)="action.emit()">
279
+ <svg width="13" height="13" 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]="actionIcon() || actionFallbackPath" /></svg>
280
+ </button>
281
+ }
282
+ @if (deletable()) {
283
+ <button class="cli-icon-btn cli-icon-btn--delete" type="button" [attr.data-testid]="deleteTestId() || null" [attr.aria-label]="deleteLabel() || labels.t('common.delete')" [uiTooltip]="deleteLabel() || labels.t('common.delete')" (click)="delete.emit()">
284
+ <svg width="13" height="13" 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]="trashPath" /></svg>
285
+ </button>
286
+ }
287
+ </span>
288
+ }
264
289
  </div>
265
290
  <div class="cli-desc-row">
266
291
  @if (description()) { <span class="cli-description">{{ description() }}</span> }
@@ -274,23 +299,6 @@ var CardListItemComponent = class CardListItemComponent {
274
299
  }
275
300
  </div>
276
301
 
277
- @if (editButton()) {
278
- <button class="cli-chip cli-chip--edit" type="button" [attr.aria-label]="editAriaLabel() || null" (click)="editClick.emit()">
279
- <svg width="13" height="13" 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]="editPath" /></svg>{{ labels.t('common.edit') }}</button>
280
- }
281
- @if (viewButton()) {
282
- <button class="cli-chip cli-chip--view" type="button" [attr.aria-label]="viewAriaLabel() || null" (click)="viewClick.emit()">
283
- <svg width="13" height="13" 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]="eyePath" /></svg>{{ labels.t('common.view') }}</button>
284
- }
285
- @if (actionLabel()) {
286
- <button class="cli-chip cli-chip--action" type="button" [attr.data-testid]="actionTestId() || null" [attr.aria-label]="actionAriaLabel() || null" (click)="action.emit()">
287
- @if (actionIcon()) { <svg width="13" height="13" 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]="actionIcon()" /></svg> }{{ actionLabel() }}</button>
288
- }
289
- @if (deletable()) {
290
- <button class="cli-chip cli-chip--delete" type="button" [attr.data-testid]="deleteTestId() || null" [attr.aria-label]="deleteLabel() || labels.t('common.delete')" (click)="delete.emit()">
291
- <svg 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]="trashPath" /></svg>{{ labels.t('common.delete') }}
292
- </button>
293
- }
294
302
  <ng-content select="[card-list-action]" />
295
303
  <ng-content />
296
304
  </div>
@@ -298,7 +306,7 @@ var CardListItemComponent = class CardListItemComponent {
298
306
  <ng-content select="[card-detail]" />
299
307
  `,
300
308
  isInline: true,
301
- styles: ["ui-card-list-item{position:relative;display:block;border:1px solid #e2e8f0;border-radius:8px;overflow:hidden;margin-bottom:8px}ui-card-list-item:last-child{margin-bottom:0}ui-card-list-item .cli-row{display:flex;align-items:flex-start;gap:12px;padding:13px 18px;transition:background .12s}ui-card-list-item .cli-row:hover{background:#f8fafc}@media(prefers-reduced-motion:reduce){ui-card-list-item .cli-row{transition:none}}ui-card-list-item .cli-dot{width:9px;height:9px;border-radius:50%;flex-shrink:0;margin-top:5px}ui-card-list-item .cli-dot:focus-visible{outline:2px solid #3b82f6;outline-offset:2px}ui-card-list-item .cli-dot--high{background:#ef4444}ui-card-list-item .cli-dot--medium{background:#f59e0b}ui-card-list-item .cli-dot--low{background:#94a3b8}ui-card-list-item .cli-dot--blue{background:#3b82f6}ui-card-list-item .cli-dot--green{background:#22c55e}ui-card-list-item .cli-icon-circle{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0}ui-card-list-item .cli-icon-circle--call{background:#dbeafe;color:#2563eb}ui-card-list-item .cli-icon-circle--email{background:#dcfce7;color:#16a34a}ui-card-list-item .cli-icon-circle--sms{background:#fef9c3;color:#ca8a04}ui-card-list-item .cli-icon-circle--task{background:#dbeafe;color:#2563eb}ui-card-list-item .cli-icon-circle--doc{background:#ffedd5;color:#ea580c}ui-card-list-item .cli-icon-circle--money{background:#d1fae5;color:#059669}ui-card-list-item .cli-icon-circle--deal{background:#e0f2fe;color:#0284c7}ui-card-list-item .cli-icon-circle--survey{background:#dbeafe;color:#2563eb}ui-card-list-item .cli-icon-circle--property{background:#fef3c7;color:#d97706}ui-card-list-item .cli-icon-circle--search{background:#e0f2fe;color:#0284c7}ui-card-list-item .cli-icon-circle--heart{background:#fce7f3;color:#db2777}ui-card-list-item .cli-icon-circle--calc{background:#d1fae5;color:#059669}ui-card-list-item .cli-icon-circle--repeat{background:#e0f2fe;color:#0284c7}ui-card-list-item .cli-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px;overflow-wrap:anywhere;word-break:break-word}ui-card-list-item .cli-badges{position:absolute;top:10px;right:12px;display:flex;align-items:center;gap:6px;z-index:1}ui-card-list-item .cli-row--badges .cli-body{padding-right:96px}ui-card-list-item .cli-row--badges-2 .cli-body{padding-right:190px}ui-card-list-item .cli-row--badges .cli-chip{align-self:flex-end}ui-card-list-item .cli-row--badges-chip{box-sizing:border-box;min-height:90px}ui-card-list-item .cli-row--badges:has([card-list-action]){box-sizing:border-box;min-height:90px}@media(pointer:coarse),(max-width:480px){ui-card-list-item .cli-row--badges-chip{min-height:106px}ui-card-list-item .cli-row--badges:has([card-list-action]){min-height:106px}}ui-card-list-item .cli-title-row{display:flex;align-items:center;gap:7px;flex-wrap:wrap}ui-card-list-item .cli-title{font-size:.875rem;font-weight:600;color:#1e293b}ui-card-list-item .cli-desc-row{display:flex;align-items:center;gap:8px}ui-card-list-item .cli-desc-row:empty{display:none}ui-card-list-item .cli-description{font-size:.8125rem;color:#64748b;min-width:0}ui-card-list-item .cli-date{display:flex;align-items:center;gap:4px;font-size:.75rem;color:#64748b}ui-card-list-item .cli-chip{flex-shrink:0;display:inline-flex;align-items:center;gap:5px;align-self:center;box-sizing:border-box;font-family:inherit;font-size:.8rem;font-weight:500;line-height:1.4;background:none;cursor:pointer;padding:4px 10px;border-radius:6px;text-decoration:none;transition:background .15s,color .15s,border-color .15s}ui-card-list-item .cli-chip--edit{color:#64748b;border:1px solid #e2e8f0}ui-card-list-item .cli-chip--edit:hover{background:#f1f5f9;color:#1e293b}ui-card-list-item .cli-chip--view{color:#2563eb;border:1px solid #dbeafe}ui-card-list-item .cli-chip--view:hover{background:#eff6ff;border-color:#bfdbfe;color:#1d4ed8}ui-card-list-item .cli-chip--action{color:#475569;border:1px solid #e2e8f0}ui-card-list-item .cli-chip--action:hover{background:#f1f5f9;color:#1e293b}ui-card-list-item .cli-chip--delete{color:#b91c1c;border:1px solid #fecaca}ui-card-list-item .cli-chip--delete:hover{background:#fef2f2;border-color:#fca5a5;color:#991b1b}ui-card-list-item .cli-chip:focus-visible,ui-card-list-item .cli-inline-link:focus-visible{outline:2px solid #3b82f6;outline-offset:2px}ui-card-list-item .cli-inline-link{flex-shrink:0;margin-left:auto;display:inline-flex;align-items:center;gap:4px;font-size:.8rem;font-weight:500;color:#2563eb;text-decoration:none;transition:color .15s}ui-card-list-item .cli-inline-link:hover{color:#1d4ed8}@media(pointer:coarse),(max-width:480px){ui-card-list-item .cli-chip{min-height:44px;padding:4px 14px}}@media(max-width:480px){ui-card-list-item .cli-row{flex-wrap:wrap;gap:8px 12px;padding:12px}ui-card-list-item .cli-body{flex:1 1 160px}ui-card-list-item .cli-badges{position:static;flex-wrap:wrap;padding:10px 12px 0}ui-card-list-item .cli-row--badges .cli-body,ui-card-list-item .cli-row--badges-2 .cli-body{padding-right:0}ui-card-list-item .cli-row--badges .cli-chip{align-self:center}ui-card-list-item .cli-row--badges-chip,ui-card-list-item .cli-row--badges:has([card-list-action]){min-height:0}}ui-card-list-item [card-stats]{display:flex;align-items:stretch;background:#f8fafc;border-top:1px solid #f1f5f9}ui-card-list-item [card-detail]{background:#f8fafc;border-top:1px solid #e2e8f0}ui-card-list-item .cli-stat{flex:1;display:flex;flex-direction:column;gap:2px;padding:10px 14px}ui-card-list-item .cli-stat-label{font-size:.6875rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:#64748b}ui-card-list-item .cli-stat-value{font-size:.9375rem;font-weight:600;color:#0f172a}ui-card-list-item .cli-stat-divider{width:1px;background:#e2e8f0;margin:8px 0}\n"],
309
+ styles: ["ui-card-list-item{position:relative;display:block;border:1px solid #e2e8f0;border-radius:8px;overflow:hidden;margin-bottom:8px}ui-card-list-item:last-child{margin-bottom:0}ui-card-list-item .cli-row{display:flex;align-items:flex-start;gap:12px;padding:13px 18px;transition:background .12s}ui-card-list-item .cli-row:hover{background:#f8fafc}@media(prefers-reduced-motion:reduce){ui-card-list-item .cli-row{transition:none}}ui-card-list-item .cli-dot{width:9px;height:9px;border-radius:50%;flex-shrink:0;margin-top:5px}ui-card-list-item .cli-dot:focus-visible{outline:2px solid #3b82f6;outline-offset:2px}ui-card-list-item .cli-dot--high{background:#ef4444}ui-card-list-item .cli-dot--medium{background:#f59e0b}ui-card-list-item .cli-dot--low{background:#94a3b8}ui-card-list-item .cli-dot--blue{background:#3b82f6}ui-card-list-item .cli-dot--green{background:#22c55e}ui-card-list-item .cli-icon-circle{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0}ui-card-list-item .cli-icon-circle--call{background:#dbeafe;color:#2563eb}ui-card-list-item .cli-icon-circle--email{background:#dcfce7;color:#16a34a}ui-card-list-item .cli-icon-circle--sms{background:#fef9c3;color:#ca8a04}ui-card-list-item .cli-icon-circle--task{background:#dbeafe;color:#2563eb}ui-card-list-item .cli-icon-circle--doc{background:#ffedd5;color:#ea580c}ui-card-list-item .cli-icon-circle--money{background:#d1fae5;color:#059669}ui-card-list-item .cli-icon-circle--deal{background:#e0f2fe;color:#0284c7}ui-card-list-item .cli-icon-circle--survey{background:#dbeafe;color:#2563eb}ui-card-list-item .cli-icon-circle--property{background:#fef3c7;color:#d97706}ui-card-list-item .cli-icon-circle--search{background:#e0f2fe;color:#0284c7}ui-card-list-item .cli-icon-circle--heart{background:#fce7f3;color:#db2777}ui-card-list-item .cli-icon-circle--calc{background:#d1fae5;color:#059669}ui-card-list-item .cli-icon-circle--repeat{background:#e0f2fe;color:#0284c7}ui-card-list-item .cli-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px;overflow-wrap:anywhere;word-break:break-word}ui-card-list-item .cli-badges{position:absolute;top:10px;right:12px;display:flex;align-items:center;gap:6px;z-index:1}ui-card-list-item .cli-row--badges .cli-body{padding-right:96px}ui-card-list-item .cli-row--badges-2 .cli-body{padding-right:190px}ui-card-list-item .cli-row--badges .cli-chip{align-self:flex-end}ui-card-list-item .cli-row--badges:has([card-list-action]){box-sizing:border-box;min-height:90px}@media(pointer:coarse),(max-width:480px){ui-card-list-item .cli-row--badges:has([card-list-action]){min-height:106px}}ui-card-list-item .cli-title-row{display:flex;align-items:center;gap:7px;flex-wrap:wrap}ui-card-list-item .cli-title{font-size:.875rem;font-weight:600;color:#1e293b}ui-card-list-item .cli-desc-row{display:flex;align-items:center;gap:8px}ui-card-list-item .cli-desc-row:empty{display:none}ui-card-list-item .cli-description{font-size:.8125rem;color:#64748b;min-width:0}ui-card-list-item .cli-date{display:flex;align-items:center;gap:4px;font-size:.75rem;color:#64748b}ui-card-list-item .cli-chip{flex-shrink:0;display:inline-flex;align-items:center;gap:5px;align-self:center;box-sizing:border-box;font-family:inherit;font-size:.8rem;font-weight:500;line-height:1.4;background:none;cursor:pointer;padding:4px 10px;border-radius:6px;text-decoration:none;transition:background .15s,color .15s,border-color .15s}ui-card-list-item .cli-chip--view{color:#2563eb;border:1px solid #dbeafe}ui-card-list-item .cli-chip--view:hover{background:#eff6ff;border-color:#bfdbfe;color:#1d4ed8}ui-card-list-item .cli-title-actions{display:inline-flex;align-items:center;gap:4px;flex-shrink:0}ui-card-list-item .cli-icon-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:26px;height:26px;padding:0;font-family:inherit;line-height:1;background:none;cursor:pointer;border-radius:6px;transition:background .15s,color .15s,border-color .15s}ui-card-list-item .cli-icon-btn:after{content:\"\";position:absolute;top:50%;left:50%;width:44px;height:44px;transform:translate(-50%,-50%)}ui-card-list-item .cli-icon-btn--edit{color:#64748b;border:1px solid #e2e8f0}ui-card-list-item .cli-icon-btn--edit:hover{background:#f1f5f9;color:#1e293b}ui-card-list-item .cli-icon-btn--view{color:#2563eb;border:1px solid #dbeafe}ui-card-list-item .cli-icon-btn--view:hover{background:#eff6ff;border-color:#bfdbfe;color:#1d4ed8}ui-card-list-item .cli-icon-btn--action{color:#475569;border:1px solid #e2e8f0}ui-card-list-item .cli-icon-btn--action:hover{background:#f1f5f9;color:#1e293b}ui-card-list-item .cli-icon-btn--delete{color:#b91c1c;border:1px solid #fecaca}ui-card-list-item .cli-icon-btn--delete:hover{background:#fef2f2;border-color:#fca5a5;color:#991b1b}ui-card-list-item .cli-chip:focus-visible,ui-card-list-item .cli-icon-btn:focus-visible,ui-card-list-item .cli-inline-link:focus-visible{outline:2px solid #3b82f6;outline-offset:2px}ui-card-list-item .cli-inline-link{flex-shrink:0;margin-left:auto;display:inline-flex;align-items:center;gap:4px;font-size:.8rem;font-weight:500;color:#2563eb;text-decoration:none;transition:color .15s}ui-card-list-item .cli-inline-link:hover{color:#1d4ed8}@media(pointer:coarse),(max-width:480px){ui-card-list-item .cli-chip{min-height:44px;padding:4px 14px}}@media(max-width:480px){ui-card-list-item .cli-row{flex-wrap:wrap;gap:8px 12px;padding:12px}ui-card-list-item .cli-body{flex:1 1 160px}ui-card-list-item .cli-badges{position:static;flex-wrap:wrap;padding:10px 12px 0}ui-card-list-item .cli-row--badges .cli-body,ui-card-list-item .cli-row--badges-2 .cli-body{padding-right:0}ui-card-list-item .cli-row--badges .cli-chip{align-self:center}ui-card-list-item .cli-row--badges:has([card-list-action]){min-height:0}}ui-card-list-item [card-stats]{display:flex;align-items:stretch;background:#f8fafc;border-top:1px solid #f1f5f9}ui-card-list-item [card-detail]{background:#f8fafc;border-top:1px solid #e2e8f0}ui-card-list-item .cli-stat{flex:1;display:flex;flex-direction:column;gap:2px;padding:10px 14px}ui-card-list-item .cli-stat-label{font-size:.6875rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:#64748b}ui-card-list-item .cli-stat-value{font-size:.9375rem;font-weight:600;color:#0f172a}ui-card-list-item .cli-stat-divider{width:1px;background:#e2e8f0;margin:8px 0}\n"],
302
310
  dependencies: [{
303
311
  kind: "component",
304
312
  type: BadgeComponent,
@@ -339,7 +347,7 @@ i0.ɵɵngDeclareClassMetadata({
339
347
  @if (status() && statusVariant()) { <ui-badge [label]="status()!" [variant]="statusVariant()!" /> }
340
348
  </div>
341
349
  }
342
- <div class="cli-row" [class.cli-row--badges]="hasBadges()" [class.cli-row--badges-2]="hasBadges() && !!type() && !!status() && !!statusVariant()" [class.cli-row--badges-chip]="hasBadges() && hasBuiltInChip()">
350
+ <div class="cli-row" [class.cli-row--badges]="hasBadges()" [class.cli-row--badges-2]="hasBadges() && !!type() && !!status() && !!statusVariant()">
343
351
  @if (iconPath(); as d) {
344
352
  <div class="cli-icon-circle" [class]="'cli-icon-circle cli-icon-circle--' + icon()" aria-hidden="true">
345
353
  <svg width="14" height="14" 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>
@@ -355,6 +363,30 @@ i0.ɵɵngDeclareClassMetadata({
355
363
  <div class="cli-body">
356
364
  <div class="cli-title-row">
357
365
  <span class="cli-title">{{ title() }}</span>
366
+ @if (editButton() || viewButton() || actionLabel() || deletable()) {
367
+ <span class="cli-title-actions">
368
+ @if (editButton()) {
369
+ <button class="cli-icon-btn cli-icon-btn--edit" type="button" [attr.aria-label]="editAriaLabel() || labels.t('common.edit')" [uiTooltip]="editAriaLabel() || labels.t('common.edit')" (click)="editClick.emit()">
370
+ <svg width="13" height="13" 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]="editPath" /></svg>
371
+ </button>
372
+ }
373
+ @if (viewButton()) {
374
+ <button class="cli-icon-btn cli-icon-btn--view" type="button" [attr.aria-label]="viewAriaLabel() || labels.t('common.view')" [uiTooltip]="viewAriaLabel() || labels.t('common.view')" (click)="viewClick.emit()">
375
+ <svg width="13" height="13" 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]="eyePath" /></svg>
376
+ </button>
377
+ }
378
+ @if (actionLabel()) {
379
+ <button class="cli-icon-btn cli-icon-btn--action" type="button" [attr.data-testid]="actionTestId() || null" [attr.aria-label]="actionAriaLabel() || actionLabel()" [uiTooltip]="actionAriaLabel() || actionLabel()" (click)="action.emit()">
380
+ <svg width="13" height="13" 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]="actionIcon() || actionFallbackPath" /></svg>
381
+ </button>
382
+ }
383
+ @if (deletable()) {
384
+ <button class="cli-icon-btn cli-icon-btn--delete" type="button" [attr.data-testid]="deleteTestId() || null" [attr.aria-label]="deleteLabel() || labels.t('common.delete')" [uiTooltip]="deleteLabel() || labels.t('common.delete')" (click)="delete.emit()">
385
+ <svg width="13" height="13" 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]="trashPath" /></svg>
386
+ </button>
387
+ }
388
+ </span>
389
+ }
358
390
  </div>
359
391
  <div class="cli-desc-row">
360
392
  @if (description()) { <span class="cli-description">{{ description() }}</span> }
@@ -368,30 +400,13 @@ i0.ɵɵngDeclareClassMetadata({
368
400
  }
369
401
  </div>
370
402
 
371
- @if (editButton()) {
372
- <button class="cli-chip cli-chip--edit" type="button" [attr.aria-label]="editAriaLabel() || null" (click)="editClick.emit()">
373
- <svg width="13" height="13" 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]="editPath" /></svg>{{ labels.t('common.edit') }}</button>
374
- }
375
- @if (viewButton()) {
376
- <button class="cli-chip cli-chip--view" type="button" [attr.aria-label]="viewAriaLabel() || null" (click)="viewClick.emit()">
377
- <svg width="13" height="13" 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]="eyePath" /></svg>{{ labels.t('common.view') }}</button>
378
- }
379
- @if (actionLabel()) {
380
- <button class="cli-chip cli-chip--action" type="button" [attr.data-testid]="actionTestId() || null" [attr.aria-label]="actionAriaLabel() || null" (click)="action.emit()">
381
- @if (actionIcon()) { <svg width="13" height="13" 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]="actionIcon()" /></svg> }{{ actionLabel() }}</button>
382
- }
383
- @if (deletable()) {
384
- <button class="cli-chip cli-chip--delete" type="button" [attr.data-testid]="deleteTestId() || null" [attr.aria-label]="deleteLabel() || labels.t('common.delete')" (click)="delete.emit()">
385
- <svg 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]="trashPath" /></svg>{{ labels.t('common.delete') }}
386
- </button>
387
- }
388
403
  <ng-content select="[card-list-action]" />
389
404
  <ng-content />
390
405
  </div>
391
406
  <ng-content select="[card-stats]" />
392
407
  <ng-content select="[card-detail]" />
393
408
  `,
394
- styles: ["ui-card-list-item{position:relative;display:block;border:1px solid #e2e8f0;border-radius:8px;overflow:hidden;margin-bottom:8px}ui-card-list-item:last-child{margin-bottom:0}ui-card-list-item .cli-row{display:flex;align-items:flex-start;gap:12px;padding:13px 18px;transition:background .12s}ui-card-list-item .cli-row:hover{background:#f8fafc}@media(prefers-reduced-motion:reduce){ui-card-list-item .cli-row{transition:none}}ui-card-list-item .cli-dot{width:9px;height:9px;border-radius:50%;flex-shrink:0;margin-top:5px}ui-card-list-item .cli-dot:focus-visible{outline:2px solid #3b82f6;outline-offset:2px}ui-card-list-item .cli-dot--high{background:#ef4444}ui-card-list-item .cli-dot--medium{background:#f59e0b}ui-card-list-item .cli-dot--low{background:#94a3b8}ui-card-list-item .cli-dot--blue{background:#3b82f6}ui-card-list-item .cli-dot--green{background:#22c55e}ui-card-list-item .cli-icon-circle{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0}ui-card-list-item .cli-icon-circle--call{background:#dbeafe;color:#2563eb}ui-card-list-item .cli-icon-circle--email{background:#dcfce7;color:#16a34a}ui-card-list-item .cli-icon-circle--sms{background:#fef9c3;color:#ca8a04}ui-card-list-item .cli-icon-circle--task{background:#dbeafe;color:#2563eb}ui-card-list-item .cli-icon-circle--doc{background:#ffedd5;color:#ea580c}ui-card-list-item .cli-icon-circle--money{background:#d1fae5;color:#059669}ui-card-list-item .cli-icon-circle--deal{background:#e0f2fe;color:#0284c7}ui-card-list-item .cli-icon-circle--survey{background:#dbeafe;color:#2563eb}ui-card-list-item .cli-icon-circle--property{background:#fef3c7;color:#d97706}ui-card-list-item .cli-icon-circle--search{background:#e0f2fe;color:#0284c7}ui-card-list-item .cli-icon-circle--heart{background:#fce7f3;color:#db2777}ui-card-list-item .cli-icon-circle--calc{background:#d1fae5;color:#059669}ui-card-list-item .cli-icon-circle--repeat{background:#e0f2fe;color:#0284c7}ui-card-list-item .cli-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px;overflow-wrap:anywhere;word-break:break-word}ui-card-list-item .cli-badges{position:absolute;top:10px;right:12px;display:flex;align-items:center;gap:6px;z-index:1}ui-card-list-item .cli-row--badges .cli-body{padding-right:96px}ui-card-list-item .cli-row--badges-2 .cli-body{padding-right:190px}ui-card-list-item .cli-row--badges .cli-chip{align-self:flex-end}ui-card-list-item .cli-row--badges-chip{box-sizing:border-box;min-height:90px}ui-card-list-item .cli-row--badges:has([card-list-action]){box-sizing:border-box;min-height:90px}@media(pointer:coarse),(max-width:480px){ui-card-list-item .cli-row--badges-chip{min-height:106px}ui-card-list-item .cli-row--badges:has([card-list-action]){min-height:106px}}ui-card-list-item .cli-title-row{display:flex;align-items:center;gap:7px;flex-wrap:wrap}ui-card-list-item .cli-title{font-size:.875rem;font-weight:600;color:#1e293b}ui-card-list-item .cli-desc-row{display:flex;align-items:center;gap:8px}ui-card-list-item .cli-desc-row:empty{display:none}ui-card-list-item .cli-description{font-size:.8125rem;color:#64748b;min-width:0}ui-card-list-item .cli-date{display:flex;align-items:center;gap:4px;font-size:.75rem;color:#64748b}ui-card-list-item .cli-chip{flex-shrink:0;display:inline-flex;align-items:center;gap:5px;align-self:center;box-sizing:border-box;font-family:inherit;font-size:.8rem;font-weight:500;line-height:1.4;background:none;cursor:pointer;padding:4px 10px;border-radius:6px;text-decoration:none;transition:background .15s,color .15s,border-color .15s}ui-card-list-item .cli-chip--edit{color:#64748b;border:1px solid #e2e8f0}ui-card-list-item .cli-chip--edit:hover{background:#f1f5f9;color:#1e293b}ui-card-list-item .cli-chip--view{color:#2563eb;border:1px solid #dbeafe}ui-card-list-item .cli-chip--view:hover{background:#eff6ff;border-color:#bfdbfe;color:#1d4ed8}ui-card-list-item .cli-chip--action{color:#475569;border:1px solid #e2e8f0}ui-card-list-item .cli-chip--action:hover{background:#f1f5f9;color:#1e293b}ui-card-list-item .cli-chip--delete{color:#b91c1c;border:1px solid #fecaca}ui-card-list-item .cli-chip--delete:hover{background:#fef2f2;border-color:#fca5a5;color:#991b1b}ui-card-list-item .cli-chip:focus-visible,ui-card-list-item .cli-inline-link:focus-visible{outline:2px solid #3b82f6;outline-offset:2px}ui-card-list-item .cli-inline-link{flex-shrink:0;margin-left:auto;display:inline-flex;align-items:center;gap:4px;font-size:.8rem;font-weight:500;color:#2563eb;text-decoration:none;transition:color .15s}ui-card-list-item .cli-inline-link:hover{color:#1d4ed8}@media(pointer:coarse),(max-width:480px){ui-card-list-item .cli-chip{min-height:44px;padding:4px 14px}}@media(max-width:480px){ui-card-list-item .cli-row{flex-wrap:wrap;gap:8px 12px;padding:12px}ui-card-list-item .cli-body{flex:1 1 160px}ui-card-list-item .cli-badges{position:static;flex-wrap:wrap;padding:10px 12px 0}ui-card-list-item .cli-row--badges .cli-body,ui-card-list-item .cli-row--badges-2 .cli-body{padding-right:0}ui-card-list-item .cli-row--badges .cli-chip{align-self:center}ui-card-list-item .cli-row--badges-chip,ui-card-list-item .cli-row--badges:has([card-list-action]){min-height:0}}ui-card-list-item [card-stats]{display:flex;align-items:stretch;background:#f8fafc;border-top:1px solid #f1f5f9}ui-card-list-item [card-detail]{background:#f8fafc;border-top:1px solid #e2e8f0}ui-card-list-item .cli-stat{flex:1;display:flex;flex-direction:column;gap:2px;padding:10px 14px}ui-card-list-item .cli-stat-label{font-size:.6875rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:#64748b}ui-card-list-item .cli-stat-value{font-size:.9375rem;font-weight:600;color:#0f172a}ui-card-list-item .cli-stat-divider{width:1px;background:#e2e8f0;margin:8px 0}\n"]
409
+ styles: ["ui-card-list-item{position:relative;display:block;border:1px solid #e2e8f0;border-radius:8px;overflow:hidden;margin-bottom:8px}ui-card-list-item:last-child{margin-bottom:0}ui-card-list-item .cli-row{display:flex;align-items:flex-start;gap:12px;padding:13px 18px;transition:background .12s}ui-card-list-item .cli-row:hover{background:#f8fafc}@media(prefers-reduced-motion:reduce){ui-card-list-item .cli-row{transition:none}}ui-card-list-item .cli-dot{width:9px;height:9px;border-radius:50%;flex-shrink:0;margin-top:5px}ui-card-list-item .cli-dot:focus-visible{outline:2px solid #3b82f6;outline-offset:2px}ui-card-list-item .cli-dot--high{background:#ef4444}ui-card-list-item .cli-dot--medium{background:#f59e0b}ui-card-list-item .cli-dot--low{background:#94a3b8}ui-card-list-item .cli-dot--blue{background:#3b82f6}ui-card-list-item .cli-dot--green{background:#22c55e}ui-card-list-item .cli-icon-circle{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0}ui-card-list-item .cli-icon-circle--call{background:#dbeafe;color:#2563eb}ui-card-list-item .cli-icon-circle--email{background:#dcfce7;color:#16a34a}ui-card-list-item .cli-icon-circle--sms{background:#fef9c3;color:#ca8a04}ui-card-list-item .cli-icon-circle--task{background:#dbeafe;color:#2563eb}ui-card-list-item .cli-icon-circle--doc{background:#ffedd5;color:#ea580c}ui-card-list-item .cli-icon-circle--money{background:#d1fae5;color:#059669}ui-card-list-item .cli-icon-circle--deal{background:#e0f2fe;color:#0284c7}ui-card-list-item .cli-icon-circle--survey{background:#dbeafe;color:#2563eb}ui-card-list-item .cli-icon-circle--property{background:#fef3c7;color:#d97706}ui-card-list-item .cli-icon-circle--search{background:#e0f2fe;color:#0284c7}ui-card-list-item .cli-icon-circle--heart{background:#fce7f3;color:#db2777}ui-card-list-item .cli-icon-circle--calc{background:#d1fae5;color:#059669}ui-card-list-item .cli-icon-circle--repeat{background:#e0f2fe;color:#0284c7}ui-card-list-item .cli-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px;overflow-wrap:anywhere;word-break:break-word}ui-card-list-item .cli-badges{position:absolute;top:10px;right:12px;display:flex;align-items:center;gap:6px;z-index:1}ui-card-list-item .cli-row--badges .cli-body{padding-right:96px}ui-card-list-item .cli-row--badges-2 .cli-body{padding-right:190px}ui-card-list-item .cli-row--badges .cli-chip{align-self:flex-end}ui-card-list-item .cli-row--badges:has([card-list-action]){box-sizing:border-box;min-height:90px}@media(pointer:coarse),(max-width:480px){ui-card-list-item .cli-row--badges:has([card-list-action]){min-height:106px}}ui-card-list-item .cli-title-row{display:flex;align-items:center;gap:7px;flex-wrap:wrap}ui-card-list-item .cli-title{font-size:.875rem;font-weight:600;color:#1e293b}ui-card-list-item .cli-desc-row{display:flex;align-items:center;gap:8px}ui-card-list-item .cli-desc-row:empty{display:none}ui-card-list-item .cli-description{font-size:.8125rem;color:#64748b;min-width:0}ui-card-list-item .cli-date{display:flex;align-items:center;gap:4px;font-size:.75rem;color:#64748b}ui-card-list-item .cli-chip{flex-shrink:0;display:inline-flex;align-items:center;gap:5px;align-self:center;box-sizing:border-box;font-family:inherit;font-size:.8rem;font-weight:500;line-height:1.4;background:none;cursor:pointer;padding:4px 10px;border-radius:6px;text-decoration:none;transition:background .15s,color .15s,border-color .15s}ui-card-list-item .cli-chip--view{color:#2563eb;border:1px solid #dbeafe}ui-card-list-item .cli-chip--view:hover{background:#eff6ff;border-color:#bfdbfe;color:#1d4ed8}ui-card-list-item .cli-title-actions{display:inline-flex;align-items:center;gap:4px;flex-shrink:0}ui-card-list-item .cli-icon-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:26px;height:26px;padding:0;font-family:inherit;line-height:1;background:none;cursor:pointer;border-radius:6px;transition:background .15s,color .15s,border-color .15s}ui-card-list-item .cli-icon-btn:after{content:\"\";position:absolute;top:50%;left:50%;width:44px;height:44px;transform:translate(-50%,-50%)}ui-card-list-item .cli-icon-btn--edit{color:#64748b;border:1px solid #e2e8f0}ui-card-list-item .cli-icon-btn--edit:hover{background:#f1f5f9;color:#1e293b}ui-card-list-item .cli-icon-btn--view{color:#2563eb;border:1px solid #dbeafe}ui-card-list-item .cli-icon-btn--view:hover{background:#eff6ff;border-color:#bfdbfe;color:#1d4ed8}ui-card-list-item .cli-icon-btn--action{color:#475569;border:1px solid #e2e8f0}ui-card-list-item .cli-icon-btn--action:hover{background:#f1f5f9;color:#1e293b}ui-card-list-item .cli-icon-btn--delete{color:#b91c1c;border:1px solid #fecaca}ui-card-list-item .cli-icon-btn--delete:hover{background:#fef2f2;border-color:#fca5a5;color:#991b1b}ui-card-list-item .cli-chip:focus-visible,ui-card-list-item .cli-icon-btn:focus-visible,ui-card-list-item .cli-inline-link:focus-visible{outline:2px solid #3b82f6;outline-offset:2px}ui-card-list-item .cli-inline-link{flex-shrink:0;margin-left:auto;display:inline-flex;align-items:center;gap:4px;font-size:.8rem;font-weight:500;color:#2563eb;text-decoration:none;transition:color .15s}ui-card-list-item .cli-inline-link:hover{color:#1d4ed8}@media(pointer:coarse),(max-width:480px){ui-card-list-item .cli-chip{min-height:44px;padding:4px 14px}}@media(max-width:480px){ui-card-list-item .cli-row{flex-wrap:wrap;gap:8px 12px;padding:12px}ui-card-list-item .cli-body{flex:1 1 160px}ui-card-list-item .cli-badges{position:static;flex-wrap:wrap;padding:10px 12px 0}ui-card-list-item .cli-row--badges .cli-body,ui-card-list-item .cli-row--badges-2 .cli-body{padding-right:0}ui-card-list-item .cli-row--badges .cli-chip{align-self:center}ui-card-list-item .cli-row--badges:has([card-list-action]){min-height:0}}ui-card-list-item [card-stats]{display:flex;align-items:stretch;background:#f8fafc;border-top:1px solid #f1f5f9}ui-card-list-item [card-detail]{background:#f8fafc;border-top:1px solid #e2e8f0}ui-card-list-item .cli-stat{flex:1;display:flex;flex-direction:column;gap:2px;padding:10px 14px}ui-card-list-item .cli-stat-label{font-size:.6875rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:#64748b}ui-card-list-item .cli-stat-value{font-size:.9375rem;font-weight:600;color:#0f172a}ui-card-list-item .cli-stat-divider{width:1px;background:#e2e8f0;margin:8px 0}\n"]
395
410
  }]
396
411
  }],
397
412
  propDecorators: {
@@ -1 +1 @@
1
- {"version":3,"file":"forgeroute-ui-card-list-item.mjs","names":[],"sources":["../../../projects/forgeroute-ui/card-list-item/src/lib/card-list-item/card-list-item.component.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, ViewEncapsulation, computed, input, output, inject } from '@angular/core';\nimport { BadgeComponent } from '@forgeroute/ui/badge';\nimport { TooltipDirective } from '@forgeroute/ui/tooltip';\nimport { BadgeVariant } from '@forgeroute/ui/table-types';\nimport { UiLabelKey, UiLabelsService } from '@forgeroute/ui/core';\n\n/** Colour of the priority dot (`high` red, `medium` amber, `low` grey, `blue`, `green`); `none` = no dot. */\nexport type CardListIndicator = 'high' | 'medium' | 'low' | 'blue' | 'green' | 'none';\n/** Icon of the round marker on the left. */\nexport type CardListIcon = 'call' | 'email' | 'sms' | 'task' | 'doc' | 'money' | 'deal' | 'survey' | 'property' | 'search' | 'heart' | 'calc' | 'repeat';\n\n/** SVG path data (24x24 viewBox, stroke icons) of every `CardListIcon`. */\nconst ICON_PATHS: Record<CardListIcon, string> = {\n call: 'M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07A19.5 19.5 0 0 1 4.69 12a19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 3.6 1.27h3a2 2 0 0 1 2 1.72c.127.96.361 1.903.7 2.81a2 2 0 0 1-.45 2.11L7.91 8.91a16 16 0 0 0 6 6l1-1a2 2 0 0 1 2.11-.45c.907.339 1.85.573 2.81.7A2 2 0 0 1 22 16.92z',\n email: 'M4 4h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z M22 7l-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7',\n sms: 'M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z',\n task: 'M9 11l3 3L22 4 M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11',\n doc: 'M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z M14 2v6h6',\n money: 'M12 1v22 M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6',\n deal: 'M22 7l-8.5 8.5-5-5L2 17 M16 7h6v6',\n survey: 'M9 5H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-2 M10 3h4a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1z M9 12h6 M9 16h4',\n property: 'M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z M9 22V12h6v10',\n search: 'M11 3a8 8 0 1 0 0 16 8 8 0 0 0 0-16z M21 21l-4.35-4.35',\n heart: 'M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z',\n calc: 'M6 2h12a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z M8 6h8 M8 10h2 M14 10h2 M8 14h2 M14 14h2 M8 18h2 M14 18h2',\n repeat: 'M17 1l4 4-4 4 M3 11V9a4 4 0 0 1 4-4h14 M7 23l-4-4 4-4 M21 13v2a4 4 0 0 1-4 4H3',\n};\nconst CALENDAR_PATH = 'M5 4h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z M16 2v4 M8 2v4 M3 10h18';\nconst EDIT_PATH = 'M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7 M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z';\nconst EYE_PATH = 'M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z M12 9a3 3 0 1 0 0 6 3 3 0 0 0 0-6z';\nconst TRASH_PATH = 'M3 6h18 M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2 M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6 M10 11v6 M14 11v6';\n\n/**\n * Record row for the cards of a detail page (tasks, documents, deals, expenses, matches, surveys...). The layout is fixed;\n * pass inputs only:\n *\n * [dot | round icon] [title] [type badge] [status badge] [Edit] [View]\n * [description] [inline link]\n * [calendar icon + date]\n *\n * Each row is a bordered rounded box, 8px apart; put the rows straight in a `ui-detail-card` body (or in a `ui-list` template).\n *\n * <ui-card-list-item title=\"Call John\" indicator=\"high\" type=\"Meeting\" status=\"Pending\" statusVariant=\"gray\"\n * date=\"Due Aug 21, 2026\" description=\"Follow up about the offer\"\n * [editButton]=\"true\" (editClick)=\"edit(t)\" [viewButton]=\"true\" (viewClick)=\"view(t)\" />\n *\n * Links: the library has no router, so a link is content you project and the app owns (`routerLink` etc.):\n * - `<a card-list-action class=\"cli-chip cli-chip--view\" routerLink=\"/x\">View</a>` at the row end (blue chip, like the View button);\n * - `<a card-list-inline class=\"cli-inline-link\" routerLink=\"/x\">View ...</a>` at the end of the description line.\n * Other projected content (default slot) shows after the chips at the row end; `[card-stats]` and `[card-detail]` add a footer row\n * under the row (use the `.cli-stat`, `.cli-stat-label`, `.cli-stat-value`, `.cli-stat-divider` classes inside `[card-stats]`).\n *\n * Delete and a generic action (additive; unused = the row looks exactly as before). Row-end order: Edit, View, action, delete, then projected content.\n * - `[deletable]=\"true\"` shows a red chip with a trash icon and the word Delete, like the Edit chip (44px high on touch) -> `(delete)`; name it with `deleteLabel` (default \"Delete\"), `deleteTestId` sets its `data-testid`.\n * The page owns the confirmation (the component never deletes anything itself).\n * - `actionLabel=\"Download\"` shows a grey chip button with that text -> `(action)`; `actionIcon` (the `d` of a 24x24 stroke path) puts an icon before the text like every other chip; `actionTestId`, `actionAriaLabel` as for the other buttons.\n *\n * Accessibility: the Edit / View buttons are real buttons; give them a longer name with `editAriaLabel` / `viewAriaLabel`\n * (\"Edit task Call John\") when the visible word alone is ambiguous in a list. The priority dot (`high`/`medium`/`low`) has a tooltip and an\n * accessible name (`High priority`, ...), is focusable so the tooltip works by keyboard; `blue`/`green` dots are decorative. The icon circle is decorative.\n */\n@Component({\n selector: 'ui-card-list-item',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n imports: [BadgeComponent, TooltipDirective],\n template: `\n @if (hasBadges()) {\n <div class=\"cli-badges\">\n @if (type()) { <ui-badge [label]=\"type()!\" [variant]=\"typeVariant()\" /> }\n @if (status() && statusVariant()) { <ui-badge [label]=\"status()!\" [variant]=\"statusVariant()!\" /> }\n </div>\n }\n <div class=\"cli-row\" [class.cli-row--badges]=\"hasBadges()\" [class.cli-row--badges-2]=\"hasBadges() && !!type() && !!status() && !!statusVariant()\" [class.cli-row--badges-chip]=\"hasBadges() && hasBuiltInChip()\">\n @if (iconPath(); as d) {\n <div class=\"cli-icon-circle\" [class]=\"'cli-icon-circle cli-icon-circle--' + icon()\" aria-hidden=\"true\">\n <svg width=\"14\" height=\"14\" 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 </div>\n } @else if (indicator() !== 'none') {\n @if (indicatorLabel(); as label) {\n <div class=\"cli-dot\" [class]=\"'cli-dot cli-dot--' + indicator()\" [uiTooltip]=\"label\" tabindex=\"0\" role=\"img\" [attr.aria-label]=\"label\"></div>\n } @else {\n <div class=\"cli-dot\" [class]=\"'cli-dot cli-dot--' + indicator()\" aria-hidden=\"true\"></div>\n }\n }\n\n <div class=\"cli-body\">\n <div class=\"cli-title-row\">\n <span class=\"cli-title\">{{ title() }}</span>\n </div>\n <div class=\"cli-desc-row\">\n @if (description()) { <span class=\"cli-description\">{{ description() }}</span> }\n <ng-content select=\"[card-list-inline]\" />\n </div>\n @if (date()) {\n <span class=\"cli-date\">\n <svg width=\"11\" height=\"11\" 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]=\"calendarPath\" /></svg>\n {{ date() }}\n </span>\n }\n </div>\n\n @if (editButton()) {\n <button class=\"cli-chip cli-chip--edit\" type=\"button\" [attr.aria-label]=\"editAriaLabel() || null\" (click)=\"editClick.emit()\">\n <svg width=\"13\" height=\"13\" 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]=\"editPath\" /></svg>{{ labels.t('common.edit') }}</button>\n }\n @if (viewButton()) {\n <button class=\"cli-chip cli-chip--view\" type=\"button\" [attr.aria-label]=\"viewAriaLabel() || null\" (click)=\"viewClick.emit()\">\n <svg width=\"13\" height=\"13\" 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]=\"eyePath\" /></svg>{{ labels.t('common.view') }}</button>\n }\n @if (actionLabel()) {\n <button class=\"cli-chip cli-chip--action\" type=\"button\" [attr.data-testid]=\"actionTestId() || null\" [attr.aria-label]=\"actionAriaLabel() || null\" (click)=\"action.emit()\">\n @if (actionIcon()) { <svg width=\"13\" height=\"13\" 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]=\"actionIcon()\" /></svg> }{{ actionLabel() }}</button>\n }\n @if (deletable()) {\n <button class=\"cli-chip cli-chip--delete\" type=\"button\" [attr.data-testid]=\"deleteTestId() || null\" [attr.aria-label]=\"deleteLabel() || labels.t('common.delete')\" (click)=\"delete.emit()\">\n <svg 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]=\"trashPath\" /></svg>{{ labels.t('common.delete') }}\n </button>\n }\n <ng-content select=\"[card-list-action]\" />\n <ng-content />\n </div>\n <ng-content select=\"[card-stats]\" />\n <ng-content select=\"[card-detail]\" />\n `,\n styles: [`\n ui-card-list-item { position: relative; display: block; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; margin-bottom: 8px; }\n ui-card-list-item:last-child { margin-bottom: 0; }\n ui-card-list-item .cli-row { display: flex; align-items: flex-start; gap: 12px; padding: 13px 18px; transition: background 0.12s; }\n ui-card-list-item .cli-row:hover { background: #f8fafc; }\n @media (prefers-reduced-motion: reduce) { ui-card-list-item .cli-row { transition: none; } }\n\n ui-card-list-item .cli-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }\n ui-card-list-item .cli-dot:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; }\n ui-card-list-item .cli-dot--high { background: #ef4444; }\n ui-card-list-item .cli-dot--medium { background: #f59e0b; }\n ui-card-list-item .cli-dot--low { background: #94a3b8; }\n ui-card-list-item .cli-dot--blue { background: #3b82f6; }\n ui-card-list-item .cli-dot--green { background: #22c55e; }\n\n ui-card-list-item .cli-icon-circle { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }\n ui-card-list-item .cli-icon-circle--call { background: #dbeafe; color: #2563eb; }\n ui-card-list-item .cli-icon-circle--email { background: #dcfce7; color: #16a34a; }\n ui-card-list-item .cli-icon-circle--sms { background: #fef9c3; color: #ca8a04; }\n ui-card-list-item .cli-icon-circle--task { background: #dbeafe; color: #2563eb; }\n ui-card-list-item .cli-icon-circle--doc { background: #ffedd5; color: #ea580c; }\n ui-card-list-item .cli-icon-circle--money { background: #d1fae5; color: #059669; }\n ui-card-list-item .cli-icon-circle--deal { background: #e0f2fe; color: #0284c7; }\n ui-card-list-item .cli-icon-circle--survey { background: #dbeafe; color: #2563eb; }\n ui-card-list-item .cli-icon-circle--property { background: #fef3c7; color: #d97706; }\n ui-card-list-item .cli-icon-circle--search { background: #e0f2fe; color: #0284c7; }\n ui-card-list-item .cli-icon-circle--heart { background: #fce7f3; color: #db2777; }\n ui-card-list-item .cli-icon-circle--calc { background: #d1fae5; color: #059669; }\n ui-card-list-item .cli-icon-circle--repeat { background: #e0f2fe; color: #0284c7; }\n\n ui-card-list-item .cli-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; overflow-wrap: anywhere; word-break: break-word; } /* word-break: Safari < 15.4 has no overflow-wrap: anywhere */\n /* The type / status badges always sit in the upper right corner of the card; the text keeps clear of them and a View / Edit chip drops to the bottom right. */\n ui-card-list-item .cli-badges { position: absolute; top: 10px; right: 12px; display: flex; align-items: center; gap: 6px; z-index: 1; }\n ui-card-list-item .cli-row--badges .cli-body { padding-right: 96px; }\n ui-card-list-item .cli-row--badges-2 .cli-body { padding-right: 190px; }\n ui-card-list-item .cli-row--badges .cli-chip { align-self: flex-end; }\n /* A row with a badge AND a chip must be tall enough for both: the badge is pinned top-right (10px inset + ~22px) and the chip sits bottom-right, so in a short two-line row they overlapped.\n 13px row padding + 28px chip (44px on touch) + the badge's 33px + 14px of air between badge and chip => 90px (106px on touch). The built-in chips set the class; a projected [card-list-action] is matched with :has() (Chrome 105+, Safari 15.4+, Firefox 121+; older browsers keep the old layout). */\n ui-card-list-item .cli-row--badges-chip { box-sizing: border-box; min-height: 90px; }\n ui-card-list-item .cli-row--badges:has([card-list-action]) { box-sizing: border-box; min-height: 90px; }\n @media (pointer: coarse), (max-width: 480px) {\n ui-card-list-item .cli-row--badges-chip { min-height: 106px; }\n ui-card-list-item .cli-row--badges:has([card-list-action]) { min-height: 106px; }\n }\n ui-card-list-item .cli-title-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }\n ui-card-list-item .cli-title { font-size: 0.875rem; font-weight: 600; color: #1e293b; }\n ui-card-list-item .cli-desc-row { display: flex; align-items: center; gap: 8px; }\n ui-card-list-item .cli-desc-row:empty { display: none; }\n ui-card-list-item .cli-description { font-size: 0.8125rem; color: #64748b; min-width: 0; }\n ui-card-list-item .cli-date { display: flex; align-items: center; gap: 4px; font-size: 0.75rem; color: #64748b; } /* #64748b: 4.76:1 on white (WCAG AA); the old #94a3b8 was 2.6:1 */\n\n /* Row-end chips: the built-in Edit / View buttons, and any projected link given the same classes. */\n ui-card-list-item .cli-chip {\n flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; align-self: center; box-sizing: border-box;\n font-family: inherit; font-size: 0.8rem; font-weight: 500; line-height: 1.4; background: none; cursor: pointer;\n padding: 4px 10px; border-radius: 6px; text-decoration: none; transition: background 0.15s, color 0.15s, border-color 0.15s;\n }\n ui-card-list-item .cli-chip--edit { color: #64748b; border: 1px solid #e2e8f0; }\n ui-card-list-item .cli-chip--edit:hover { background: #f1f5f9; color: #1e293b; }\n ui-card-list-item .cli-chip--view { color: #2563eb; border: 1px solid #dbeafe; }\n ui-card-list-item .cli-chip--view:hover { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }\n ui-card-list-item .cli-chip--action { color: #475569; border: 1px solid #e2e8f0; }\n ui-card-list-item .cli-chip--action:hover { background: #f1f5f9; color: #1e293b; }\n /* Delete is a chip like Edit (trash icon + the word Delete, 4px 10px padding, 44px high on touch through the shared .cli-chip rule); only its colours are its own. */\n ui-card-list-item .cli-chip--delete { color: #b91c1c; border: 1px solid #fecaca; }\n ui-card-list-item .cli-chip--delete:hover { background: #fef2f2; border-color: #fca5a5; color: #991b1b; }\n ui-card-list-item .cli-chip:focus-visible,\n ui-card-list-item .cli-inline-link:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; }\n ui-card-list-item .cli-inline-link {\n flex-shrink: 0; margin-left: auto; display: inline-flex; align-items: center; gap: 4px;\n font-size: 0.8rem; font-weight: 500; color: #2563eb; text-decoration: none; transition: color 0.15s;\n }\n ui-card-list-item .cli-inline-link:hover { color: #1d4ed8; }\n @media (pointer: coarse), (max-width: 480px) {\n ui-card-list-item .cli-chip { min-height: 44px; padding: 4px 14px; } /* touch target */\n }\n /* Narrow rows (phones, 320px): the badges leave the corner and sit in a row above the text (so the text keeps its full width instead of\n 96-190px of padding), the row padding shrinks and the 44px chips wrap under the text instead of squeezing it. Declared after the touch rules above so it wins. */\n @media (max-width: 480px) {\n ui-card-list-item .cli-row { flex-wrap: wrap; gap: 8px 12px; padding: 12px; }\n ui-card-list-item .cli-body { flex: 1 1 160px; }\n ui-card-list-item .cli-badges { position: static; flex-wrap: wrap; padding: 10px 12px 0; }\n ui-card-list-item .cli-row--badges .cli-body, ui-card-list-item .cli-row--badges-2 .cli-body { padding-right: 0; }\n ui-card-list-item .cli-row--badges .cli-chip { align-self: center; }\n ui-card-list-item .cli-row--badges-chip, ui-card-list-item .cli-row--badges:has([card-list-action]) { min-height: 0; }\n }\n\n ui-card-list-item [card-stats] { display: flex; align-items: stretch; background: #f8fafc; border-top: 1px solid #f1f5f9; }\n ui-card-list-item [card-detail] { background: #f8fafc; border-top: 1px solid #e2e8f0; }\n ui-card-list-item .cli-stat { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; }\n ui-card-list-item .cli-stat-label { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #64748b; }\n ui-card-list-item .cli-stat-value { font-size: 0.9375rem; font-weight: 600; color: #0f172a; }\n ui-card-list-item .cli-stat-divider { width: 1px; background: #e2e8f0; margin: 8px 0; }\n `],\n})\nexport class CardListItemComponent {\n protected readonly labels = inject(UiLabelsService);\n readonly title = input('');\n readonly description = input<string | undefined>(undefined);\n /** Date text with a small calendar icon, e.g. \"Due Aug 21, 2026\". Pre-formatted by the page. */\n readonly date = input<string | undefined>(undefined);\n /** Badge after the title; `typeVariant` colours it (default `gray`). */\n readonly type = input<string | undefined>(undefined);\n readonly typeVariant = input<BadgeVariant>('gray');\n /** Second badge; shown only together with `statusVariant`. */\n readonly status = input<string | undefined>(undefined);\n readonly statusVariant = input<BadgeVariant | undefined>(undefined);\n /** Priority dot on the left (ignored when `icon` is set). */\n readonly indicator = input<CardListIndicator>('none');\n /** Round icon on the left (wins over `indicator`). */\n readonly icon = input<CardListIcon | undefined>(undefined);\n /** A type badge or a status badge (with its variant) shows: they sit in the card's upper right corner. */\n protected readonly hasBadges = computed(() => !!this.type() || (!!this.status() && !!this.statusVariant()));\n /** Built-in \"Edit\" chip button -> `editClick`. */\n readonly editButton = input(false);\n /** Built-in \"View\" chip button -> `viewClick`. */\n readonly viewButton = input(false);\n /** Accessible names for the buttons when the visible word is not enough (\"Edit task Call John\"). */\n readonly editAriaLabel = input('');\n readonly viewAriaLabel = input('');\n /** Built-in red chip (trash icon + the word Delete, like the Edit chip) -> `delete`. The accessible name comes from `deleteLabel` (\"Delete task Call John\"). */\n readonly deletable = input(false);\n readonly deleteLabelInput = input<string | null>(null, { alias: 'deleteLabel' });\n readonly deleteLabel = computed(() => this.deleteLabelInput() ?? this.labels.t('cardListItem.deleteLabel'));\n /** `data-testid` of the delete button (none when empty). */\n readonly deleteTestId = input('');\n /** Built-in secondary chip button (text = `actionLabel`, e.g. \"Download\") -> `action`; shown only while `actionLabel` is not empty. */\n readonly actionLabel = input('');\n /** Icon of the `actionLabel` chip: the `d` value of a 24x24 stroke path (like the Edit / View / delete chips, which always have one). Empty = no icon. */\n readonly actionIcon = input('');\n readonly actionTestId = input('');\n readonly actionAriaLabel = input('');\n /** A built-in Edit / View / action / delete button shows (the row then keeps a minimum height so a badge and a chip never overlap). */\n protected readonly hasBuiltInChip = computed(() => this.editButton() || this.viewButton() || !!this.actionLabel() || this.deletable());\n readonly editClick = output<void>();\n readonly viewClick = output<void>();\n readonly delete = output<void>();\n readonly action = output<void>();\n\n protected readonly calendarPath = CALENDAR_PATH;\n protected readonly editPath = EDIT_PATH;\n protected readonly eyePath = EYE_PATH;\n protected readonly trashPath = TRASH_PATH;\n protected readonly iconPath = computed(() => { const i = this.icon(); return i ? ICON_PATHS[i] ?? null : null; });\n protected readonly indicatorLabel = computed(() => {\n const key = ({ high: 'cardListItem.priorityHigh', medium: 'cardListItem.priorityMedium', low: 'cardListItem.priorityLow' } as Record<string, UiLabelKey>)[this.indicator()];\n return key ? this.labels.t(key) : '';\n });\n}\n"],"mappings":";;;;;AAYA,MAAM,aAA2C;CAC/C,MAAM;CACN,OAAO;CACP,KAAK;CACL,MAAM;CACN,KAAK;CACL,OAAO;CACP,MAAM;CACN,QAAQ;CACR,UAAU;CACV,QAAQ;CACR,OAAO;CACP,MAAM;CACN,QAAQ;AACT;AACD,MAAM,gBAAgB;AACtB,MAAM,YAAY;AAClB,MAAM,WAAW;AACjB,MAAM,aAAa;AA+LnB,IAAa,wBAAb,MAAa,sBAAqB;CAhKlC,cAAA;EAiKqB,KAAA,SAAS,OAAO,eAAe;EACzC,KAAA,QAAQ,MAAM,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;EACjB,KAAA,cAAc,MAA0B,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,cAAA,CAAA,+BAAA,CAAA,CAAA;EAElD,KAAA,OAAO,MAA0B,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;EAE3C,KAAA,OAAO,MAA0B,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,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J/B,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAqB,YAAA,CAAA;EAhKjC,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAmB,YACjB;GAAI,iBACC,wBAAwB;GAAM,eAChC,kBAAkB;GAAI,SAC5B,CAAC,gBAAgB,gBAAgB;GAAC,UACjC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DT,QAAA,CAAA,0qLAAA;EAAA,CAAA"}
1
+ {"version":3,"file":"forgeroute-ui-card-list-item.mjs","names":[],"sources":["../../../projects/forgeroute-ui/card-list-item/src/lib/card-list-item/card-list-item.component.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, ViewEncapsulation, computed, input, output, inject } from '@angular/core';\nimport { BadgeComponent } from '@forgeroute/ui/badge';\nimport { TooltipDirective } from '@forgeroute/ui/tooltip';\nimport { BadgeVariant } from '@forgeroute/ui/table-types';\nimport { UiLabelKey, UiLabelsService } from '@forgeroute/ui/core';\n\n/** Colour of the priority dot (`high` red, `medium` amber, `low` grey, `blue`, `green`); `none` = no dot. */\nexport type CardListIndicator = 'high' | 'medium' | 'low' | 'blue' | 'green' | 'none';\n/** Icon of the round marker on the left. */\nexport type CardListIcon = 'call' | 'email' | 'sms' | 'task' | 'doc' | 'money' | 'deal' | 'survey' | 'property' | 'search' | 'heart' | 'calc' | 'repeat';\n\n/** SVG path data (24x24 viewBox, stroke icons) of every `CardListIcon`. */\nconst ICON_PATHS: Record<CardListIcon, string> = {\n call: 'M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07A19.5 19.5 0 0 1 4.69 12a19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 3.6 1.27h3a2 2 0 0 1 2 1.72c.127.96.361 1.903.7 2.81a2 2 0 0 1-.45 2.11L7.91 8.91a16 16 0 0 0 6 6l1-1a2 2 0 0 1 2.11-.45c.907.339 1.85.573 2.81.7A2 2 0 0 1 22 16.92z',\n email: 'M4 4h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z M22 7l-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7',\n sms: 'M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z',\n task: 'M9 11l3 3L22 4 M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11',\n doc: 'M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z M14 2v6h6',\n money: 'M12 1v22 M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6',\n deal: 'M22 7l-8.5 8.5-5-5L2 17 M16 7h6v6',\n survey: 'M9 5H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-2 M10 3h4a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1z M9 12h6 M9 16h4',\n property: 'M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z M9 22V12h6v10',\n search: 'M11 3a8 8 0 1 0 0 16 8 8 0 0 0 0-16z M21 21l-4.35-4.35',\n heart: 'M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z',\n calc: 'M6 2h12a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z M8 6h8 M8 10h2 M14 10h2 M8 14h2 M14 14h2 M8 18h2 M14 18h2',\n repeat: 'M17 1l4 4-4 4 M3 11V9a4 4 0 0 1 4-4h14 M7 23l-4-4 4-4 M21 13v2a4 4 0 0 1-4 4H3',\n};\nconst CALENDAR_PATH = 'M5 4h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z M16 2v4 M8 2v4 M3 10h18';\nconst EDIT_PATH = 'M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7 M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z';\nconst ACTION_FALLBACK_PATH = 'M5 12h14 M12 5l7 7-7 7';\nconst EYE_PATH = 'M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z M12 9a3 3 0 1 0 0 6 3 3 0 0 0 0-6z';\nconst TRASH_PATH = 'M3 6h18 M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2 M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6 M10 11v6 M14 11v6';\n\n/**\n * Record row for the cards of a detail page (tasks, documents, deals, expenses, matches, surveys...). The layout is fixed;\n * pass inputs only:\n *\n * [dot | round icon] [title] [edit] [view] [action] [delete] [type badge] [status badge]\n * [description] [inline link]\n * [calendar icon + date]\n *\n * Each row is a bordered rounded box, 8px apart; put the rows straight in a `ui-detail-card` body (or in a `ui-list` template).\n *\n * <ui-card-list-item title=\"Call John\" indicator=\"high\" type=\"Meeting\" status=\"Pending\" statusVariant=\"gray\"\n * date=\"Due Aug 21, 2026\" description=\"Follow up about the offer\"\n * [editButton]=\"true\" (editClick)=\"edit(t)\" [viewButton]=\"true\" (viewClick)=\"view(t)\" />\n *\n * Links: the library has no router, so a link is content you project and the app owns (`routerLink` etc.):\n * - `<a card-list-action class=\"cli-chip cli-chip--view\" routerLink=\"/x\">View</a>` at the row end (blue chip, like the View button);\n * - `<a card-list-inline class=\"cli-inline-link\" routerLink=\"/x\">View ...</a>` at the end of the description line.\n * Other projected content (default slot) shows at the row end; `[card-stats]` and `[card-detail]` add a footer row\n * under the row (use the `.cli-stat`, `.cli-stat-label`, `.cli-stat-value`, `.cli-stat-divider` classes inside `[card-stats]`).\n *\n * Actions are ICONS, never text buttons: Edit, View, a generic action and Delete are small icon buttons to the right of the title (in that order), each with a tooltip\n * (the `uiTooltip` directive) that says what it is, so the icon alone is always clear on hover and keyboard focus. The tooltip text is also the accessible name.\n * - `[editButton]=\"true\"` -> `(editClick)`; `editAriaLabel` names it (\"Edit task Call John\"), default \"Edit\".\n * - `[viewButton]=\"true\"` -> `(viewClick)`; `viewAriaLabel`, default \"View\".\n * - `actionLabel=\"Download\"` -> `(action)`: the label is the tooltip and the accessible name (`actionAriaLabel` wins when given); `actionIcon` (the `d` of a 24x24 stroke path)\n * is its icon (a right arrow when none is given: always pass one); `actionTestId` sets its `data-testid`.\n * - `[deletable]=\"true\"` -> `(delete)`; `deleteLabel` names it (default \"Delete\"), `deleteTestId` sets its `data-testid`. The page owns the confirmation (the component never deletes anything itself).\n *\n * Accessibility: every icon is a real button with an accessible name; give it a longer one with `editAriaLabel` / `viewAriaLabel` / `deleteLabel`\n * (\"Edit task Call John\") to tell the rows of a list apart. The priority dot (`high`/`medium`/`low`) has a tooltip and an\n * accessible name (`High priority`, ...), is focusable so the tooltip works by keyboard; `blue`/`green` dots are decorative. The icon circle is decorative.\n */\n@Component({\n selector: 'ui-card-list-item',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n imports: [BadgeComponent, TooltipDirective],\n template: `\n @if (hasBadges()) {\n <div class=\"cli-badges\">\n @if (type()) { <ui-badge [label]=\"type()!\" [variant]=\"typeVariant()\" /> }\n @if (status() && statusVariant()) { <ui-badge [label]=\"status()!\" [variant]=\"statusVariant()!\" /> }\n </div>\n }\n <div class=\"cli-row\" [class.cli-row--badges]=\"hasBadges()\" [class.cli-row--badges-2]=\"hasBadges() && !!type() && !!status() && !!statusVariant()\">\n @if (iconPath(); as d) {\n <div class=\"cli-icon-circle\" [class]=\"'cli-icon-circle cli-icon-circle--' + icon()\" aria-hidden=\"true\">\n <svg width=\"14\" height=\"14\" 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 </div>\n } @else if (indicator() !== 'none') {\n @if (indicatorLabel(); as label) {\n <div class=\"cli-dot\" [class]=\"'cli-dot cli-dot--' + indicator()\" [uiTooltip]=\"label\" tabindex=\"0\" role=\"img\" [attr.aria-label]=\"label\"></div>\n } @else {\n <div class=\"cli-dot\" [class]=\"'cli-dot cli-dot--' + indicator()\" aria-hidden=\"true\"></div>\n }\n }\n\n <div class=\"cli-body\">\n <div class=\"cli-title-row\">\n <span class=\"cli-title\">{{ title() }}</span>\n @if (editButton() || viewButton() || actionLabel() || deletable()) {\n <span class=\"cli-title-actions\">\n @if (editButton()) {\n <button class=\"cli-icon-btn cli-icon-btn--edit\" type=\"button\" [attr.aria-label]=\"editAriaLabel() || labels.t('common.edit')\" [uiTooltip]=\"editAriaLabel() || labels.t('common.edit')\" (click)=\"editClick.emit()\">\n <svg width=\"13\" height=\"13\" 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]=\"editPath\" /></svg>\n </button>\n }\n @if (viewButton()) {\n <button class=\"cli-icon-btn cli-icon-btn--view\" type=\"button\" [attr.aria-label]=\"viewAriaLabel() || labels.t('common.view')\" [uiTooltip]=\"viewAriaLabel() || labels.t('common.view')\" (click)=\"viewClick.emit()\">\n <svg width=\"13\" height=\"13\" 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]=\"eyePath\" /></svg>\n </button>\n }\n @if (actionLabel()) {\n <button class=\"cli-icon-btn cli-icon-btn--action\" type=\"button\" [attr.data-testid]=\"actionTestId() || null\" [attr.aria-label]=\"actionAriaLabel() || actionLabel()\" [uiTooltip]=\"actionAriaLabel() || actionLabel()\" (click)=\"action.emit()\">\n <svg width=\"13\" height=\"13\" 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]=\"actionIcon() || actionFallbackPath\" /></svg>\n </button>\n }\n @if (deletable()) {\n <button class=\"cli-icon-btn cli-icon-btn--delete\" type=\"button\" [attr.data-testid]=\"deleteTestId() || null\" [attr.aria-label]=\"deleteLabel() || labels.t('common.delete')\" [uiTooltip]=\"deleteLabel() || labels.t('common.delete')\" (click)=\"delete.emit()\">\n <svg width=\"13\" height=\"13\" 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]=\"trashPath\" /></svg>\n </button>\n }\n </span>\n }\n </div>\n <div class=\"cli-desc-row\">\n @if (description()) { <span class=\"cli-description\">{{ description() }}</span> }\n <ng-content select=\"[card-list-inline]\" />\n </div>\n @if (date()) {\n <span class=\"cli-date\">\n <svg width=\"11\" height=\"11\" 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]=\"calendarPath\" /></svg>\n {{ date() }}\n </span>\n }\n </div>\n\n <ng-content select=\"[card-list-action]\" />\n <ng-content />\n </div>\n <ng-content select=\"[card-stats]\" />\n <ng-content select=\"[card-detail]\" />\n `,\n styles: [`\n ui-card-list-item { position: relative; display: block; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; margin-bottom: 8px; }\n ui-card-list-item:last-child { margin-bottom: 0; }\n ui-card-list-item .cli-row { display: flex; align-items: flex-start; gap: 12px; padding: 13px 18px; transition: background 0.12s; }\n ui-card-list-item .cli-row:hover { background: #f8fafc; }\n @media (prefers-reduced-motion: reduce) { ui-card-list-item .cli-row { transition: none; } }\n\n ui-card-list-item .cli-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }\n ui-card-list-item .cli-dot:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; }\n ui-card-list-item .cli-dot--high { background: #ef4444; }\n ui-card-list-item .cli-dot--medium { background: #f59e0b; }\n ui-card-list-item .cli-dot--low { background: #94a3b8; }\n ui-card-list-item .cli-dot--blue { background: #3b82f6; }\n ui-card-list-item .cli-dot--green { background: #22c55e; }\n\n ui-card-list-item .cli-icon-circle { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }\n ui-card-list-item .cli-icon-circle--call { background: #dbeafe; color: #2563eb; }\n ui-card-list-item .cli-icon-circle--email { background: #dcfce7; color: #16a34a; }\n ui-card-list-item .cli-icon-circle--sms { background: #fef9c3; color: #ca8a04; }\n ui-card-list-item .cli-icon-circle--task { background: #dbeafe; color: #2563eb; }\n ui-card-list-item .cli-icon-circle--doc { background: #ffedd5; color: #ea580c; }\n ui-card-list-item .cli-icon-circle--money { background: #d1fae5; color: #059669; }\n ui-card-list-item .cli-icon-circle--deal { background: #e0f2fe; color: #0284c7; }\n ui-card-list-item .cli-icon-circle--survey { background: #dbeafe; color: #2563eb; }\n ui-card-list-item .cli-icon-circle--property { background: #fef3c7; color: #d97706; }\n ui-card-list-item .cli-icon-circle--search { background: #e0f2fe; color: #0284c7; }\n ui-card-list-item .cli-icon-circle--heart { background: #fce7f3; color: #db2777; }\n ui-card-list-item .cli-icon-circle--calc { background: #d1fae5; color: #059669; }\n ui-card-list-item .cli-icon-circle--repeat { background: #e0f2fe; color: #0284c7; }\n\n ui-card-list-item .cli-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; overflow-wrap: anywhere; word-break: break-word; } /* word-break: Safari < 15.4 has no overflow-wrap: anywhere */\n /* The type / status badges always sit in the upper right corner of the card; the text keeps clear of them; the Edit / View / action / Delete icon buttons sit right of the title, and only a projected [card-list-action] link drops to the bottom right. */\n ui-card-list-item .cli-badges { position: absolute; top: 10px; right: 12px; display: flex; align-items: center; gap: 6px; z-index: 1; }\n ui-card-list-item .cli-row--badges .cli-body { padding-right: 96px; }\n ui-card-list-item .cli-row--badges-2 .cli-body { padding-right: 190px; }\n ui-card-list-item .cli-row--badges .cli-chip { align-self: flex-end; }\n /* A row with a badge AND a projected [card-list-action] link must be tall enough for both: the badge is pinned top-right (10px inset + ~22px) and the link sits bottom-right: 13px row padding + 28px link (44px on touch) + the badge's 33px + 14px of air between them => 90px (106px on touch). Matched with :has() (Chrome 105+, Safari 15.4+, Firefox 121+; older browsers keep the old layout). */\n ui-card-list-item .cli-row--badges:has([card-list-action]) { box-sizing: border-box; min-height: 90px; }\n @media (pointer: coarse), (max-width: 480px) {\n ui-card-list-item .cli-row--badges:has([card-list-action]) { min-height: 106px; }\n }\n ui-card-list-item .cli-title-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }\n ui-card-list-item .cli-title { font-size: 0.875rem; font-weight: 600; color: #1e293b; }\n ui-card-list-item .cli-desc-row { display: flex; align-items: center; gap: 8px; }\n ui-card-list-item .cli-desc-row:empty { display: none; }\n ui-card-list-item .cli-description { font-size: 0.8125rem; color: #64748b; min-width: 0; }\n ui-card-list-item .cli-date { display: flex; align-items: center; gap: 4px; font-size: 0.75rem; color: #64748b; } /* #64748b: 4.76:1 on white (WCAG AA); the old #94a3b8 was 2.6:1 */\n\n /* Row-end chips: the built-in Edit / View buttons, and any projected link given the same classes. */\n ui-card-list-item .cli-chip {\n flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; align-self: center; box-sizing: border-box;\n font-family: inherit; font-size: 0.8rem; font-weight: 500; line-height: 1.4; background: none; cursor: pointer;\n padding: 4px 10px; border-radius: 6px; text-decoration: none; transition: background 0.15s, color 0.15s, border-color 0.15s;\n }\n ui-card-list-item .cli-chip--view { color: #2563eb; border: 1px solid #dbeafe; }\n ui-card-list-item .cli-chip--view:hover { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }\n /* Edit and Delete are small icon buttons to the right of the title (a 44px hit area on touch through ::after); the View / action chips stay at the row end. */\n ui-card-list-item .cli-title-actions { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; }\n ui-card-list-item .cli-icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 26px; height: 26px; padding: 0; font-family: inherit; line-height: 1; background: none; cursor: pointer; border-radius: 6px; transition: background 0.15s, color 0.15s, border-color 0.15s; }\n ui-card-list-item .cli-icon-btn::after { content: ''; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); }\n ui-card-list-item .cli-icon-btn--edit { color: #64748b; border: 1px solid #e2e8f0; }\n ui-card-list-item .cli-icon-btn--edit:hover { background: #f1f5f9; color: #1e293b; }\n ui-card-list-item .cli-icon-btn--view { color: #2563eb; border: 1px solid #dbeafe; }\n ui-card-list-item .cli-icon-btn--view:hover { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }\n ui-card-list-item .cli-icon-btn--action { color: #475569; border: 1px solid #e2e8f0; }\n ui-card-list-item .cli-icon-btn--action:hover { background: #f1f5f9; color: #1e293b; }\n ui-card-list-item .cli-icon-btn--delete { color: #b91c1c; border: 1px solid #fecaca; }\n ui-card-list-item .cli-icon-btn--delete:hover { background: #fef2f2; border-color: #fca5a5; color: #991b1b; }\n ui-card-list-item .cli-chip:focus-visible,\n ui-card-list-item .cli-icon-btn:focus-visible,\n ui-card-list-item .cli-inline-link:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; }\n ui-card-list-item .cli-inline-link {\n flex-shrink: 0; margin-left: auto; display: inline-flex; align-items: center; gap: 4px;\n font-size: 0.8rem; font-weight: 500; color: #2563eb; text-decoration: none; transition: color 0.15s;\n }\n ui-card-list-item .cli-inline-link:hover { color: #1d4ed8; }\n @media (pointer: coarse), (max-width: 480px) {\n ui-card-list-item .cli-chip { min-height: 44px; padding: 4px 14px; } /* touch target */\n }\n /* Narrow rows (phones, 320px): the badges leave the corner and sit in a row above the text (so the text keeps its full width instead of\n 96-190px of padding), the row padding shrinks and the 44px chips wrap under the text instead of squeezing it. Declared after the touch rules above so it wins. */\n @media (max-width: 480px) {\n ui-card-list-item .cli-row { flex-wrap: wrap; gap: 8px 12px; padding: 12px; }\n ui-card-list-item .cli-body { flex: 1 1 160px; }\n ui-card-list-item .cli-badges { position: static; flex-wrap: wrap; padding: 10px 12px 0; }\n ui-card-list-item .cli-row--badges .cli-body, ui-card-list-item .cli-row--badges-2 .cli-body { padding-right: 0; }\n ui-card-list-item .cli-row--badges .cli-chip { align-self: center; }\n ui-card-list-item .cli-row--badges:has([card-list-action]) { min-height: 0; }\n }\n\n ui-card-list-item [card-stats] { display: flex; align-items: stretch; background: #f8fafc; border-top: 1px solid #f1f5f9; }\n ui-card-list-item [card-detail] { background: #f8fafc; border-top: 1px solid #e2e8f0; }\n ui-card-list-item .cli-stat { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; }\n ui-card-list-item .cli-stat-label { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #64748b; }\n ui-card-list-item .cli-stat-value { font-size: 0.9375rem; font-weight: 600; color: #0f172a; }\n ui-card-list-item .cli-stat-divider { width: 1px; background: #e2e8f0; margin: 8px 0; }\n `],\n})\nexport class CardListItemComponent {\n protected readonly labels = inject(UiLabelsService);\n readonly title = input('');\n readonly description = input<string | undefined>(undefined);\n /** Date text with a small calendar icon, e.g. \"Due Aug 21, 2026\". Pre-formatted by the page. */\n readonly date = input<string | undefined>(undefined);\n /** Badge after the title; `typeVariant` colours it (default `gray`). */\n readonly type = input<string | undefined>(undefined);\n readonly typeVariant = input<BadgeVariant>('gray');\n /** Second badge; shown only together with `statusVariant`. */\n readonly status = input<string | undefined>(undefined);\n readonly statusVariant = input<BadgeVariant | undefined>(undefined);\n /** Priority dot on the left (ignored when `icon` is set). */\n readonly indicator = input<CardListIndicator>('none');\n /** Round icon on the left (wins over `indicator`). */\n readonly icon = input<CardListIcon | undefined>(undefined);\n /** A type badge or a status badge (with its variant) shows: they sit in the card's upper right corner. */\n protected readonly hasBadges = computed(() => !!this.type() || (!!this.status() && !!this.statusVariant()));\n /** Built-in \"Edit\" chip button -> `editClick`. */\n readonly editButton = input(false);\n /** Built-in \"View\" chip button -> `viewClick`. */\n readonly viewButton = input(false);\n /** Accessible names for the buttons when the visible word is not enough (\"Edit task Call John\"). */\n readonly editAriaLabel = input('');\n readonly viewAriaLabel = input('');\n /** Built-in red chip (trash icon + the word Delete, like the Edit chip) -> `delete`. The accessible name comes from `deleteLabel` (\"Delete task Call John\"). */\n readonly deletable = input(false);\n readonly deleteLabelInput = input<string | null>(null, { alias: 'deleteLabel' });\n readonly deleteLabel = computed(() => this.deleteLabelInput() ?? this.labels.t('cardListItem.deleteLabel'));\n /** `data-testid` of the delete button (none when empty). */\n readonly deleteTestId = input('');\n /** Built-in secondary chip button (text = `actionLabel`, e.g. \"Download\") -> `action`; shown only while `actionLabel` is not empty. */\n readonly actionLabel = input('');\n /** Icon of the `actionLabel` chip: the `d` value of a 24x24 stroke path (like the Edit / View / delete chips, which always have one). Empty = no icon. */\n readonly actionIcon = input('');\n readonly actionTestId = input('');\n readonly actionAriaLabel = input('');\n readonly editClick = output<void>();\n readonly viewClick = output<void>();\n readonly delete = output<void>();\n readonly action = output<void>();\n\n protected readonly calendarPath = CALENDAR_PATH;\n protected readonly editPath = EDIT_PATH;\n protected readonly eyePath = EYE_PATH;\n protected readonly actionFallbackPath = ACTION_FALLBACK_PATH;\n protected readonly trashPath = TRASH_PATH;\n protected readonly iconPath = computed(() => { const i = this.icon(); return i ? ICON_PATHS[i] ?? null : null; });\n protected readonly indicatorLabel = computed(() => {\n const key = ({ high: 'cardListItem.priorityHigh', medium: 'cardListItem.priorityMedium', low: 'cardListItem.priorityLow' } as Record<string, UiLabelKey>)[this.indicator()];\n return key ? this.labels.t(key) : '';\n });\n}\n"],"mappings":";;;;;AAYA,MAAM,aAA2C;CAC/C,MAAM;CACN,OAAO;CACP,KAAK;CACL,MAAM;CACN,KAAK;CACL,OAAO;CACP,MAAM;CACN,QAAQ;CACR,UAAU;CACV,QAAQ;CACR,OAAO;CACP,MAAM;CACN,QAAQ;AACT;AACD,MAAM,gBAAgB;AACtB,MAAM,YAAY;AAClB,MAAM,uBAAuB;AAC7B,MAAM,WAAW;AACjB,MAAM,aAAa;AA4MnB,IAAa,wBAAb,MAAa,sBAAqB;CA1KlC,cAAA;EA2KqB,KAAA,SAAS,OAAO,eAAe;EACzC,KAAA,QAAQ,MAAM,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;EACjB,KAAA,cAAc,MAA0B,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,cAAA,CAAA,+BAAA,CAAA,CAAA;EAElD,KAAA,OAAO,MAA0B,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;EAE3C,KAAA,OAAO,MAA0B,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;EAC3C,KAAA,cAAc,MAAoB,QAAO,GAAA,YAAA,CAAA,EAAA,WAAA,cAAA,CAAA,+BAAA,CAAA,CAAA;EAEzC,KAAA,SAAS,MAA0B,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,SAAA,CAAA,+BAAA,CAAA,CAAA;EAC7C,KAAA,gBAAgB,MAAgC,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,gBAAA,CAAA,+BAAA,CAAA,CAAA;EAE1D,KAAA,YAAY,MAAyB,QAAO,GAAA,YAAA,CAAA,EA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core": ">=22.0.0",
@@ -9,7 +9,7 @@ export type CardListIcon = 'call' | 'email' | 'sms' | 'task' | 'doc' | 'money' |
9
9
  * Record row for the cards of a detail page (tasks, documents, deals, expenses, matches, surveys...). The layout is fixed;
10
10
  * pass inputs only:
11
11
  *
12
- * [dot | round icon] [title] [type badge] [status badge] [Edit] [View]
12
+ * [dot | round icon] [title] [edit] [view] [action] [delete] [type badge] [status badge]
13
13
  * [description] [inline link]
14
14
  * [calendar icon + date]
15
15
  *
@@ -22,16 +22,19 @@ export type CardListIcon = 'call' | 'email' | 'sms' | 'task' | 'doc' | 'money' |
22
22
  * Links: the library has no router, so a link is content you project and the app owns (`routerLink` etc.):
23
23
  * - `<a card-list-action class="cli-chip cli-chip--view" routerLink="/x">View</a>` at the row end (blue chip, like the View button);
24
24
  * - `<a card-list-inline class="cli-inline-link" routerLink="/x">View ...</a>` at the end of the description line.
25
- * Other projected content (default slot) shows after the chips at the row end; `[card-stats]` and `[card-detail]` add a footer row
25
+ * Other projected content (default slot) shows at the row end; `[card-stats]` and `[card-detail]` add a footer row
26
26
  * under the row (use the `.cli-stat`, `.cli-stat-label`, `.cli-stat-value`, `.cli-stat-divider` classes inside `[card-stats]`).
27
27
  *
28
- * Delete and a generic action (additive; unused = the row looks exactly as before). Row-end order: Edit, View, action, delete, then projected content.
29
- * - `[deletable]="true"` shows a red chip with a trash icon and the word Delete, like the Edit chip (44px high on touch) -> `(delete)`; name it with `deleteLabel` (default "Delete"), `deleteTestId` sets its `data-testid`.
30
- * The page owns the confirmation (the component never deletes anything itself).
31
- * - `actionLabel="Download"` shows a grey chip button with that text -> `(action)`; `actionIcon` (the `d` of a 24x24 stroke path) puts an icon before the text like every other chip; `actionTestId`, `actionAriaLabel` as for the other buttons.
28
+ * Actions are ICONS, never text buttons: Edit, View, a generic action and Delete are small icon buttons to the right of the title (in that order), each with a tooltip
29
+ * (the `uiTooltip` directive) that says what it is, so the icon alone is always clear on hover and keyboard focus. The tooltip text is also the accessible name.
30
+ * - `[editButton]="true"` -> `(editClick)`; `editAriaLabel` names it ("Edit task Call John"), default "Edit".
31
+ * - `[viewButton]="true"` -> `(viewClick)`; `viewAriaLabel`, default "View".
32
+ * - `actionLabel="Download"` -> `(action)`: the label is the tooltip and the accessible name (`actionAriaLabel` wins when given); `actionIcon` (the `d` of a 24x24 stroke path)
33
+ * is its icon (a right arrow when none is given: always pass one); `actionTestId` sets its `data-testid`.
34
+ * - `[deletable]="true"` -> `(delete)`; `deleteLabel` names it (default "Delete"), `deleteTestId` sets its `data-testid`. The page owns the confirmation (the component never deletes anything itself).
32
35
  *
33
- * Accessibility: the Edit / View buttons are real buttons; give them a longer name with `editAriaLabel` / `viewAriaLabel`
34
- * ("Edit task Call John") when the visible word alone is ambiguous in a list. The priority dot (`high`/`medium`/`low`) has a tooltip and an
36
+ * Accessibility: every icon is a real button with an accessible name; give it a longer one with `editAriaLabel` / `viewAriaLabel` / `deleteLabel`
37
+ * ("Edit task Call John") to tell the rows of a list apart. The priority dot (`high`/`medium`/`low`) has a tooltip and an
35
38
  * accessible name (`High priority`, ...), is focusable so the tooltip works by keyboard; `blue`/`green` dots are decorative. The icon circle is decorative.
36
39
  */
37
40
  export declare class CardListItemComponent {
@@ -71,8 +74,6 @@ export declare class CardListItemComponent {
71
74
  readonly actionIcon: import("@angular/core").InputSignal<string>;
72
75
  readonly actionTestId: import("@angular/core").InputSignal<string>;
73
76
  readonly actionAriaLabel: import("@angular/core").InputSignal<string>;
74
- /** A built-in Edit / View / action / delete button shows (the row then keeps a minimum height so a badge and a chip never overlap). */
75
- protected readonly hasBuiltInChip: import("@angular/core").Signal<boolean>;
76
77
  readonly editClick: import("@angular/core").OutputEmitterRef<void>;
77
78
  readonly viewClick: import("@angular/core").OutputEmitterRef<void>;
78
79
  readonly delete: import("@angular/core").OutputEmitterRef<void>;
@@ -80,6 +81,7 @@ export declare class CardListItemComponent {
80
81
  protected readonly calendarPath = "M5 4h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z M16 2v4 M8 2v4 M3 10h18";
81
82
  protected readonly editPath = "M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7 M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z";
82
83
  protected readonly eyePath = "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z M12 9a3 3 0 1 0 0 6 3 3 0 0 0 0-6z";
84
+ protected readonly actionFallbackPath = "M5 12h14 M12 5l7 7-7 7";
83
85
  protected readonly trashPath = "M3 6h18 M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2 M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6 M10 11v6 M14 11v6";
84
86
  protected readonly iconPath: import("@angular/core").Signal<string | null>;
85
87
  protected readonly indicatorLabel: import("@angular/core").Signal<string>;
@@ -122,7 +122,7 @@ export declare class TemplatePickerComponent {
122
122
  private readonly host;
123
123
  private readonly search$;
124
124
  /** Filter results to a specific channel: 'email', 'text', or omit for all. */
125
- readonly channel: import("@angular/core").InputSignal<"" | "email" | "text">;
125
+ readonly channel: import("@angular/core").InputSignal<"" | "text" | "email">;
126
126
  readonly selectedId: import("@angular/core").InputSignal<string | null>;
127
127
  readonly labelInput: import("@angular/core").InputSignal<string | null>;
128
128
  readonly label: import("@angular/core").Signal<string>;
@@ -553,7 +553,7 @@ export declare class DocumentSendOptionsComponent implements UiFieldValidity {
553
553
  /** API root from FORGEROUTE_CONFIG (e.g. a cross-origin prod API); falls back to same-origin `/api`. */
554
554
  private readonly apiBase;
555
555
  /** `email` → purpose select + attachment allowed; `text` → link only (purpose fixed to e-signature). */
556
- readonly channel: import("@angular/core").InputSignal<"email" | "text">;
556
+ readonly channel: import("@angular/core").InputSignal<"text" | "email">;
557
557
  readonly labelInput: import("@angular/core").InputSignal<string | null>;
558
558
  readonly label: import("@angular/core").Signal<string>;
559
559
  /** When true, at least one document must be chosen. The message forms leave it false: documents are optional there. */
@@ -2020,7 +2020,7 @@ export declare class SendMessagePanelComponent {
2020
2020
  * somebody can receive that channel; otherwise the usual default applies (email if anybody has an email, else text). null (default) = the usual default.
2021
2021
  * `textEnabled` must already be known when the panel opens for `'text'` to take effect (bind `[recipients]` after async settings loaded, or re-open).
2022
2022
  */
2023
- readonly initialChannel: import("@angular/core").InputSignal<"email" | "text" | null>;
2023
+ readonly initialChannel: import("@angular/core").InputSignal<"text" | "email" | null>;
2024
2024
  /** Bulk mode: the plural noun in "To: 12 residents" (default `recipients`, localized). */
2025
2025
  readonly recipientNoun: import("@angular/core").InputSignal<string>;
2026
2026
  /** Bulk mode: the singular noun used when exactly one is selected; empty = the plural without a trailing "s". */
@@ -2256,7 +2256,7 @@ export declare class SendMessagePanelComponent {
2256
2256
  readonly activeContact: import("@angular/core").WritableSignal<MessageContact | null>;
2257
2257
  /** What the sender should know about the picked contact before sending (why a channel is missing, what to add). */
2258
2258
  readonly contactNotices: import("@angular/core").Signal<string[]>;
2259
- readonly channel: import("@angular/core").WritableSignal<"email" | "text">;
2259
+ readonly channel: import("@angular/core").WritableSignal<"text" | "email">;
2260
2260
  readonly valid: import("@angular/core").WritableSignal<boolean>;
2261
2261
  /** A send is in flight in the active form: the Send button spins and stays disabled. */
2262
2262
  readonly busy: import("@angular/core").WritableSignal<boolean>;
@@ -751,7 +751,7 @@ export declare class PaymentSidePanelComponent {
751
751
  private readonly terminalAvailable;
752
752
  /** value -> label of every live method the rendered plugins contribute (the first plugin wins a duplicate value). */
753
753
  private readonly liveMethods;
754
- protected readonly kind: import("@angular/core").Signal<"terminal" | "none" | "manual" | "live">;
754
+ protected readonly kind: import("@angular/core").Signal<"terminal" | "manual" | "none" | "live">;
755
755
  private kindOf;
756
756
  /** The method list as shown: record-only built-ins (a plugin takes over its own values), plugin extras, and only manual ones while a split is being built. */
757
757
  readonly methodList: import("@angular/core").Signal<PaymentMethodOption[]>;