@forgeroute/ui 0.5.40 → 0.5.41

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.
@@ -28,6 +28,7 @@ var CopyFieldComponent = class CopyFieldComponent {
28
28
  });
29
29
  this.failedMessage = computed(() => this.failedMessageInput() ?? this.labels.t("copyField.failedMessage"), ...ngDevMode ? [{ debugName: "failedMessage" }] : /* istanbul ignore next */ []);
30
30
  this.hint = input("", ...ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []);
31
+ this.iconOnly = input(false, ...ngDevMode ? [{ debugName: "iconOnly" }] : /* istanbul ignore next */ []);
31
32
  this.disabled = input(false, ...ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []);
32
33
  this.ariaDescribedBy = input("", ...ngDevMode ? [{ debugName: "ariaDescribedBy" }] : /* istanbul ignore next */ []);
33
34
  this.inputTestId = input("", ...ngDevMode ? [{ debugName: "inputTestId" }] : /* istanbul ignore next */ []);
@@ -169,6 +170,13 @@ var CopyFieldComponent = class CopyFieldComponent {
169
170
  isRequired: false,
170
171
  transformFunction: null
171
172
  },
173
+ iconOnly: {
174
+ classPropertyName: "iconOnly",
175
+ publicName: "iconOnly",
176
+ isSignal: true,
177
+ isRequired: false,
178
+ transformFunction: null
179
+ },
172
180
  disabled: {
173
181
  classPropertyName: "disabled",
174
182
  publicName: "disabled",
@@ -216,9 +224,17 @@ var CopyFieldComponent = class CopyFieldComponent {
216
224
  <div class="cf-row">
217
225
  <input #field class="cf-input" type="text" readonly [id]="_id" [value]="value()" [attr.aria-describedby]="_describedBy()"
218
226
  [attr.data-testid]="inputTestId() || null" (focus)="selectAll()" />
219
- <button type="button" class="cf-btn" [disabled]="disabled() || !value()" [attr.aria-label]="_buttonName()"
220
- [attr.data-testid]="buttonTestId() || null" (click)="copy()">
221
- {{ _state() === 'copied' ? copiedLabel() : copyLabel() }}
227
+ <button type="button" class="cf-btn" [class.cf-btn--icon]="iconOnly()" [disabled]="disabled() || !value()" [attr.aria-label]="_buttonName()"
228
+ [attr.title]="iconOnly() ? (_state() === 'copied' ? copiedLabel() : copyLabel()) : null" [attr.data-testid]="buttonTestId() || null" (click)="copy()">
229
+ @if (iconOnly()) {
230
+ @if (_state() === 'copied') {
231
+ <svg class="cf-icon" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M20 6L9 17l-5-5"/></svg>
232
+ } @else {
233
+ <svg class="cf-icon" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="9" y="9" width="13" height="13" rx="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/></svg>
234
+ }
235
+ } @else {
236
+ {{ _state() === 'copied' ? copiedLabel() : copyLabel() }}
237
+ }
222
238
  </button>
223
239
  </div>
224
240
  @if (hint()) { <p class="cf-hint" [id]="_id + '-hint'">{{ hint() }}</p> }
@@ -227,7 +243,7 @@ var CopyFieldComponent = class CopyFieldComponent {
227
243
  </div>
228
244
  `,
229
245
  isInline: true,
230
- styles: [":host{display:block}.cf-field{display:flex;flex-direction:column;gap:4px}.cf-label{font-size:.8125rem;font-weight:500;color:#334155}.cf-row{display:flex;gap:8px;align-items:stretch}.cf-input{flex:1 1 auto;min-width:0;box-sizing:border-box;min-height:40px;padding:8px 12px;font:inherit;font-size:.875rem;color:#0f172a;background:#f8fafc;border:1px solid #94a3b8;border-radius:8px;text-overflow:ellipsis}.cf-input:focus-visible{outline:2px solid #1d4ed8;outline-offset:1px}.cf-btn{flex:0 0 auto;min-height:40px;padding:0 16px;font:inherit;font-size:.875rem;font-weight:600;color:#0f172a;background:#fff;border:1px solid #94a3b8;border-radius:8px;cursor:pointer}.cf-btn:hover:not(:disabled){background:#f1f5f9}.cf-btn:focus-visible{outline:2px solid #1d4ed8;outline-offset:1px}.cf-btn:disabled{opacity:.55;cursor:not-allowed}.cf-hint{margin:0;font-size:.75rem;line-height:1.4;color:#64748b}.cf-fail{margin:0;font-size:.75rem;line-height:1.4;color:#b91c1c}.cf-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(pointer:coarse),(max-width:480px){.cf-input,.cf-btn{min-height:44px}}\n"],
246
+ styles: [":host{display:block}.cf-field{display:flex;flex-direction:column;gap:4px}.cf-label{font-size:.8125rem;font-weight:500;color:#334155}.cf-row{display:flex;gap:8px;align-items:stretch}.cf-input{flex:1 1 auto;min-width:0;box-sizing:border-box;min-height:40px;padding:8px 12px;font:inherit;font-size:.875rem;color:#0f172a;background:#f8fafc;border:1px solid #94a3b8;border-radius:8px;text-overflow:ellipsis}.cf-input:focus-visible{outline:2px solid #1d4ed8;outline-offset:1px}.cf-btn{flex:0 0 auto;min-height:40px;padding:0 16px;font:inherit;font-size:.875rem;font-weight:600;color:#0f172a;background:#fff;border:1px solid #94a3b8;border-radius:8px;cursor:pointer}.cf-btn--icon{display:inline-flex;align-items:center;justify-content:center;min-width:40px;padding:0}.cf-icon{display:block;flex:0 0 auto}.cf-btn:hover:not(:disabled){background:#f1f5f9}.cf-btn:focus-visible{outline:2px solid #1d4ed8;outline-offset:1px}.cf-btn:disabled{opacity:.55;cursor:not-allowed}.cf-hint{margin:0;font-size:.75rem;line-height:1.4;color:#64748b}.cf-fail{margin:0;font-size:.75rem;line-height:1.4;color:#b91c1c}.cf-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(pointer:coarse),(max-width:480px){.cf-input,.cf-btn{min-height:44px}}\n"],
231
247
  changeDetection: i0.ChangeDetectionStrategy.OnPush
232
248
  });
233
249
  }
@@ -249,9 +265,17 @@ i0.ɵɵngDeclareClassMetadata({
249
265
  <div class="cf-row">
250
266
  <input #field class="cf-input" type="text" readonly [id]="_id" [value]="value()" [attr.aria-describedby]="_describedBy()"
251
267
  [attr.data-testid]="inputTestId() || null" (focus)="selectAll()" />
252
- <button type="button" class="cf-btn" [disabled]="disabled() || !value()" [attr.aria-label]="_buttonName()"
253
- [attr.data-testid]="buttonTestId() || null" (click)="copy()">
254
- {{ _state() === 'copied' ? copiedLabel() : copyLabel() }}
268
+ <button type="button" class="cf-btn" [class.cf-btn--icon]="iconOnly()" [disabled]="disabled() || !value()" [attr.aria-label]="_buttonName()"
269
+ [attr.title]="iconOnly() ? (_state() === 'copied' ? copiedLabel() : copyLabel()) : null" [attr.data-testid]="buttonTestId() || null" (click)="copy()">
270
+ @if (iconOnly()) {
271
+ @if (_state() === 'copied') {
272
+ <svg class="cf-icon" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M20 6L9 17l-5-5"/></svg>
273
+ } @else {
274
+ <svg class="cf-icon" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="9" y="9" width="13" height="13" rx="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/></svg>
275
+ }
276
+ } @else {
277
+ {{ _state() === 'copied' ? copiedLabel() : copyLabel() }}
278
+ }
255
279
  </button>
256
280
  </div>
257
281
  @if (hint()) { <p class="cf-hint" [id]="_id + '-hint'">{{ hint() }}</p> }
@@ -259,7 +283,7 @@ i0.ɵɵngDeclareClassMetadata({
259
283
  @if (_state() === 'failed') { <p class="cf-fail" [id]="_id + '-fail'">{{ failedMessage() }}</p> }
260
284
  </div>
261
285
  `,
262
- styles: [":host{display:block}.cf-field{display:flex;flex-direction:column;gap:4px}.cf-label{font-size:.8125rem;font-weight:500;color:#334155}.cf-row{display:flex;gap:8px;align-items:stretch}.cf-input{flex:1 1 auto;min-width:0;box-sizing:border-box;min-height:40px;padding:8px 12px;font:inherit;font-size:.875rem;color:#0f172a;background:#f8fafc;border:1px solid #94a3b8;border-radius:8px;text-overflow:ellipsis}.cf-input:focus-visible{outline:2px solid #1d4ed8;outline-offset:1px}.cf-btn{flex:0 0 auto;min-height:40px;padding:0 16px;font:inherit;font-size:.875rem;font-weight:600;color:#0f172a;background:#fff;border:1px solid #94a3b8;border-radius:8px;cursor:pointer}.cf-btn:hover:not(:disabled){background:#f1f5f9}.cf-btn:focus-visible{outline:2px solid #1d4ed8;outline-offset:1px}.cf-btn:disabled{opacity:.55;cursor:not-allowed}.cf-hint{margin:0;font-size:.75rem;line-height:1.4;color:#64748b}.cf-fail{margin:0;font-size:.75rem;line-height:1.4;color:#b91c1c}.cf-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(pointer:coarse),(max-width:480px){.cf-input,.cf-btn{min-height:44px}}\n"]
286
+ styles: [":host{display:block}.cf-field{display:flex;flex-direction:column;gap:4px}.cf-label{font-size:.8125rem;font-weight:500;color:#334155}.cf-row{display:flex;gap:8px;align-items:stretch}.cf-input{flex:1 1 auto;min-width:0;box-sizing:border-box;min-height:40px;padding:8px 12px;font:inherit;font-size:.875rem;color:#0f172a;background:#f8fafc;border:1px solid #94a3b8;border-radius:8px;text-overflow:ellipsis}.cf-input:focus-visible{outline:2px solid #1d4ed8;outline-offset:1px}.cf-btn{flex:0 0 auto;min-height:40px;padding:0 16px;font:inherit;font-size:.875rem;font-weight:600;color:#0f172a;background:#fff;border:1px solid #94a3b8;border-radius:8px;cursor:pointer}.cf-btn--icon{display:inline-flex;align-items:center;justify-content:center;min-width:40px;padding:0}.cf-icon{display:block;flex:0 0 auto}.cf-btn:hover:not(:disabled){background:#f1f5f9}.cf-btn:focus-visible{outline:2px solid #1d4ed8;outline-offset:1px}.cf-btn:disabled{opacity:.55;cursor:not-allowed}.cf-hint{margin:0;font-size:.75rem;line-height:1.4;color:#64748b}.cf-fail{margin:0;font-size:.75rem;line-height:1.4;color:#b91c1c}.cf-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(pointer:coarse),(max-width:480px){.cf-input,.cf-btn{min-height:44px}}\n"]
263
287
  }]
264
288
  }],
265
289
  propDecorators: {
@@ -327,6 +351,14 @@ i0.ɵɵngDeclareClassMetadata({
327
351
  required: false
328
352
  }]
329
353
  }],
354
+ iconOnly: [{
355
+ type: i0.Input,
356
+ args: [{
357
+ isSignal: true,
358
+ alias: "iconOnly",
359
+ required: false
360
+ }]
361
+ }],
330
362
  disabled: [{
331
363
  type: i0.Input,
332
364
  args: [{
@@ -1 +1 @@
1
- {"version":3,"file":"forgeroute-ui-copy-field.mjs","names":[],"sources":["../../../projects/forgeroute-ui/copy-field/src/lib/copy-field/copy-field.component.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, ElementRef, OnDestroy, input, output, signal, viewChild, computed, inject } from '@angular/core';\nimport { UiLabelsService } from '@forgeroute/ui/core';\n\n/**\n * A read-only text field with a Copy button (a feed address, an API URL, an invite link).\n *\n * <ui-copy-field label=\"Feed address\" [value]=\"feedUrl()\" (copied)=\"toast.success('Address copied')\" />\n *\n * The button copies `value` with the Clipboard API; where that is missing or refused (older Safari / Firefox settings, an insecure page) it\n * selects the text and uses `document.execCommand('copy')`. If that fails too, the text stays selected and a status line asks the user to\n * press Ctrl/Cmd + C, and `(copyFailed)` is emitted. A polite live region announces the result. The button's accessible name contains its\n * visible text (WCAG 2.5.3). The field shows the full value (it scrolls inside the field); it never changes `value`.\n */\n@Component({\n selector: 'ui-copy-field',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <div class=\"cf-field\">\n @if (label()) { <label class=\"cf-label\" [for]=\"_id\">{{ label() }}</label> }\n <div class=\"cf-row\">\n <input #field class=\"cf-input\" type=\"text\" readonly [id]=\"_id\" [value]=\"value()\" [attr.aria-describedby]=\"_describedBy()\"\n [attr.data-testid]=\"inputTestId() || null\" (focus)=\"selectAll()\" />\n <button type=\"button\" class=\"cf-btn\" [disabled]=\"disabled() || !value()\" [attr.aria-label]=\"_buttonName()\"\n [attr.data-testid]=\"buttonTestId() || null\" (click)=\"copy()\">\n {{ _state() === 'copied' ? copiedLabel() : copyLabel() }}\n </button>\n </div>\n @if (hint()) { <p class=\"cf-hint\" [id]=\"_id + '-hint'\">{{ hint() }}</p> }\n <span class=\"cf-sr\" role=\"status\" aria-live=\"polite\" aria-atomic=\"true\">{{ _announcement() }}</span>\n @if (_state() === 'failed') { <p class=\"cf-fail\" [id]=\"_id + '-fail'\">{{ failedMessage() }}</p> }\n </div>\n `,\n styles: [`\n :host { display: block; }\n .cf-field { display: flex; flex-direction: column; gap: 4px; }\n .cf-label { font-size: 0.8125rem; font-weight: 500; color: #334155; }\n .cf-row { display: flex; gap: 8px; align-items: stretch; }\n .cf-input { flex: 1 1 auto; min-width: 0; box-sizing: border-box; min-height: 40px; padding: 8px 12px; font: inherit; font-size: 0.875rem;\n color: #0f172a; background: #f8fafc; border: 1px solid #94a3b8; border-radius: 8px; text-overflow: ellipsis; }\n .cf-input:focus-visible { outline: 2px solid #1d4ed8; outline-offset: 1px; }\n .cf-btn { flex: 0 0 auto; min-height: 40px; padding: 0 16px; font: inherit; font-size: 0.875rem; font-weight: 600; color: #0f172a; background: #fff;\n border: 1px solid #94a3b8; border-radius: 8px; cursor: pointer; }\n .cf-btn:hover:not(:disabled) { background: #f1f5f9; }\n .cf-btn:focus-visible { outline: 2px solid #1d4ed8; outline-offset: 1px; }\n .cf-btn:disabled { opacity: 0.55; cursor: not-allowed; }\n .cf-hint { margin: 0; font-size: 0.75rem; line-height: 1.4; color: #64748b; }\n .cf-fail { margin: 0; font-size: 0.75rem; line-height: 1.4; color: #b91c1c; }\n .cf-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }\n @media (pointer: coarse), (max-width: 480px) { .cf-input, .cf-btn { min-height: 44px; } }\n `],\n})\nexport class CopyFieldComponent implements OnDestroy {\n protected readonly labels = inject(UiLabelsService);\n /** The text shown and copied. */\n readonly value = input('');\n readonly label = input('');\n /** Visible button text (default \"Copy\"). */\n readonly copyLabelInput = input<string | null>(null, { alias: 'copyLabel' });\n readonly copyLabel = computed(() => this.copyLabelInput() ?? this.labels.t('copyField.copyLabel'));\n /** Visible button text for 2 seconds after a successful copy (default \"Copied\"). */\n readonly copiedLabelInput = input<string | null>(null, { alias: 'copiedLabel' });\n readonly copiedLabel = computed(() => this.copiedLabelInput() ?? this.labels.t('copyField.copiedLabel'));\n /** Accessible name of the button; default `<copyLabel> <label>`. Keep the visible text inside it. */\n readonly buttonAriaLabel = input('');\n /** Announced after a successful copy (default \"Copied to clipboard\"). */\n readonly copiedMessageInput = input<string | null>(null, { alias: 'copiedMessage' });\n readonly copiedMessage = computed(() => this.copiedMessageInput() ?? this.labels.t('copyField.copiedMessage'));\n /** Shown and announced when copying was refused (default asks for Ctrl/Cmd + C). */\n readonly failedMessageInput = input<string | null>(null, { alias: 'failedMessage' });\n readonly failedMessage = computed(() => this.failedMessageInput() ?? this.labels.t('copyField.failedMessage'));\n readonly hint = input('');\n readonly disabled = input(false);\n /** Id(s) of host elements that also describe the field (space-separated). */\n readonly ariaDescribedBy = input('');\n readonly inputTestId = input('');\n readonly buttonTestId = input('');\n\n /** The text was copied. */\n readonly copied = output<string>();\n /** Neither the Clipboard API nor the fallback could copy. */\n readonly copyFailed = output<void>();\n\n protected readonly _id = `cf-${Math.random().toString(36).slice(2, 8)}`;\n protected readonly _state = signal<'idle' | 'copied' | 'failed'>('idle');\n protected readonly _announcement = computed(() => this._state() === 'copied' ? this.copiedMessage() : this._state() === 'failed' ? this.failedMessage() : '');\n protected readonly _buttonName = computed(() => this.buttonAriaLabel() || [this.copyLabel(), this.label()].filter(Boolean).join(' '));\n protected readonly _describedBy = computed(() => {\n const ids = `${this.hint() ? this._id + '-hint' : ''} ${this._state() === 'failed' ? this._id + '-fail' : ''} ${this.ariaDescribedBy()}`.split(/\\s+/).filter(Boolean);\n const unique = ids.filter((id, i) => ids.indexOf(id) === i);\n return unique.length ? unique.join(' ') : null;\n });\n private readonly fieldEl = viewChild<ElementRef<HTMLInputElement>>('field');\n private _timer: ReturnType<typeof setTimeout> | null = null;\n\n ngOnDestroy(): void { if (this._timer) clearTimeout(this._timer); }\n\n /** Selects the whole text (also done on focus, so a manual copy is one keystroke away). */\n selectAll(): void { this.fieldEl()?.nativeElement.select(); }\n\n /** Copies `value`; the button calls this. Resolves to true when the text reached the clipboard. */\n async copy(): Promise<boolean> {\n const text = this.value();\n if (!text || this.disabled()) return false;\n let ok = false;\n try {\n if (typeof navigator !== 'undefined' && navigator.clipboard?.writeText) {\n await navigator.clipboard.writeText(text);\n ok = true;\n }\n } catch { ok = false; }\n if (!ok) ok = this.legacyCopy();\n if (this._timer) { clearTimeout(this._timer); this._timer = null; }\n if (ok) {\n this._state.set('copied');\n this.copied.emit(text);\n this._timer = setTimeout(() => { this._state.set('idle'); this._timer = null; }, 2000);\n } else {\n this.selectAll();\n this._state.set('failed');\n this.copyFailed.emit();\n }\n return ok;\n }\n\n private legacyCopy(): boolean {\n const el = this.fieldEl()?.nativeElement;\n if (!el || typeof document === 'undefined' || typeof document.execCommand !== 'function') return false;\n try {\n el.focus();\n el.select();\n el.setSelectionRange(0, el.value.length);\n return document.execCommand('copy');\n } catch { return false; }\n }\n}\n"],"mappings":";;;AAoDA,IAAa,qBAAb,MAAa,mBAAkB;CAvC/B,cAAA;EAwCqB,KAAA,SAAS,OAAO,eAAe;EAEzC,KAAA,QAAQ,MAAM,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;EACjB,KAAA,QAAQ,MAAM,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAA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,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,oBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,MAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,UAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,iBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,aAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,cAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,QAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,QAAA;EAAA,CAAA;EAAA,YAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,YAAA;EAAA,CAAA;EAAA,SAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,SAAO,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA"}
1
+ {"version":3,"file":"forgeroute-ui-copy-field.mjs","names":[],"sources":["../../../projects/forgeroute-ui/copy-field/src/lib/copy-field/copy-field.component.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, ElementRef, OnDestroy, input, output, signal, viewChild, computed, inject } from '@angular/core';\nimport { UiLabelsService } from '@forgeroute/ui/core';\n\n/**\n * A read-only text field with a Copy button (a feed address, an API URL, an invite link).\n *\n * <ui-copy-field label=\"Feed address\" [value]=\"feedUrl()\" (copied)=\"toast.success('Address copied')\" />\n *\n * The button copies `value` with the Clipboard API; where that is missing or refused (older Safari / Firefox settings, an insecure page) it\n * selects the text and uses `document.execCommand('copy')`. If that fails too, the text stays selected and a status line asks the user to\n * press Ctrl/Cmd + C, and `(copyFailed)` is emitted. A polite live region announces the result. The button's accessible name contains its\n * visible text (WCAG 2.5.3). The field shows the full value (it scrolls inside the field); it never changes `value`.\n */\n@Component({\n selector: 'ui-copy-field',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <div class=\"cf-field\">\n @if (label()) { <label class=\"cf-label\" [for]=\"_id\">{{ label() }}</label> }\n <div class=\"cf-row\">\n <input #field class=\"cf-input\" type=\"text\" readonly [id]=\"_id\" [value]=\"value()\" [attr.aria-describedby]=\"_describedBy()\"\n [attr.data-testid]=\"inputTestId() || null\" (focus)=\"selectAll()\" />\n <button type=\"button\" class=\"cf-btn\" [class.cf-btn--icon]=\"iconOnly()\" [disabled]=\"disabled() || !value()\" [attr.aria-label]=\"_buttonName()\"\n [attr.title]=\"iconOnly() ? (_state() === 'copied' ? copiedLabel() : copyLabel()) : null\" [attr.data-testid]=\"buttonTestId() || null\" (click)=\"copy()\">\n @if (iconOnly()) {\n @if (_state() === 'copied') {\n <svg class=\"cf-icon\" width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M20 6L9 17l-5-5\"/></svg>\n } @else {\n <svg class=\"cf-icon\" width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><rect x=\"9\" y=\"9\" width=\"13\" height=\"13\" rx=\"2\"/><path d=\"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1\"/></svg>\n }\n } @else {\n {{ _state() === 'copied' ? copiedLabel() : copyLabel() }}\n }\n </button>\n </div>\n @if (hint()) { <p class=\"cf-hint\" [id]=\"_id + '-hint'\">{{ hint() }}</p> }\n <span class=\"cf-sr\" role=\"status\" aria-live=\"polite\" aria-atomic=\"true\">{{ _announcement() }}</span>\n @if (_state() === 'failed') { <p class=\"cf-fail\" [id]=\"_id + '-fail'\">{{ failedMessage() }}</p> }\n </div>\n `,\n styles: [`\n :host { display: block; }\n .cf-field { display: flex; flex-direction: column; gap: 4px; }\n .cf-label { font-size: 0.8125rem; font-weight: 500; color: #334155; }\n .cf-row { display: flex; gap: 8px; align-items: stretch; }\n .cf-input { flex: 1 1 auto; min-width: 0; box-sizing: border-box; min-height: 40px; padding: 8px 12px; font: inherit; font-size: 0.875rem;\n color: #0f172a; background: #f8fafc; border: 1px solid #94a3b8; border-radius: 8px; text-overflow: ellipsis; }\n .cf-input:focus-visible { outline: 2px solid #1d4ed8; outline-offset: 1px; }\n .cf-btn { flex: 0 0 auto; min-height: 40px; padding: 0 16px; font: inherit; font-size: 0.875rem; font-weight: 600; color: #0f172a; background: #fff;\n border: 1px solid #94a3b8; border-radius: 8px; cursor: pointer; }\n /* iconOnly: a square button with the copy icon (the check icon for 2 seconds after a copy); the accessible name and the tooltip are the Copy / Copied text */\n .cf-btn--icon { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; padding: 0; }\n .cf-icon { display: block; flex: 0 0 auto; }\n .cf-btn:hover:not(:disabled) { background: #f1f5f9; }\n .cf-btn:focus-visible { outline: 2px solid #1d4ed8; outline-offset: 1px; }\n .cf-btn:disabled { opacity: 0.55; cursor: not-allowed; }\n .cf-hint { margin: 0; font-size: 0.75rem; line-height: 1.4; color: #64748b; }\n .cf-fail { margin: 0; font-size: 0.75rem; line-height: 1.4; color: #b91c1c; }\n .cf-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }\n @media (pointer: coarse), (max-width: 480px) { .cf-input, .cf-btn { min-height: 44px; } }\n `],\n})\nexport class CopyFieldComponent implements OnDestroy {\n protected readonly labels = inject(UiLabelsService);\n /** The text shown and copied. */\n readonly value = input('');\n readonly label = input('');\n /** Visible button text (default \"Copy\"). */\n readonly copyLabelInput = input<string | null>(null, { alias: 'copyLabel' });\n readonly copyLabel = computed(() => this.copyLabelInput() ?? this.labels.t('copyField.copyLabel'));\n /** Visible button text for 2 seconds after a successful copy (default \"Copied\"). */\n readonly copiedLabelInput = input<string | null>(null, { alias: 'copiedLabel' });\n readonly copiedLabel = computed(() => this.copiedLabelInput() ?? this.labels.t('copyField.copiedLabel'));\n /** Accessible name of the button; default `<copyLabel> <label>`. Keep the visible text inside it. */\n readonly buttonAriaLabel = input('');\n /** Announced after a successful copy (default \"Copied to clipboard\"). */\n readonly copiedMessageInput = input<string | null>(null, { alias: 'copiedMessage' });\n readonly copiedMessage = computed(() => this.copiedMessageInput() ?? this.labels.t('copyField.copiedMessage'));\n /** Shown and announced when copying was refused (default asks for Ctrl/Cmd + C). */\n readonly failedMessageInput = input<string | null>(null, { alias: 'failedMessage' });\n readonly failedMessage = computed(() => this.failedMessageInput() ?? this.labels.t('copyField.failedMessage'));\n readonly hint = input('');\n /** Show the copy icon instead of the \"Copy\" text (library source 2026-11-26, not yet published): a square icon button named and titled by the Copy / Copied text. Default `false` = unchanged. */\n readonly iconOnly = input(false);\n readonly disabled = input(false);\n /** Id(s) of host elements that also describe the field (space-separated). */\n readonly ariaDescribedBy = input('');\n readonly inputTestId = input('');\n readonly buttonTestId = input('');\n\n /** The text was copied. */\n readonly copied = output<string>();\n /** Neither the Clipboard API nor the fallback could copy. */\n readonly copyFailed = output<void>();\n\n protected readonly _id = `cf-${Math.random().toString(36).slice(2, 8)}`;\n protected readonly _state = signal<'idle' | 'copied' | 'failed'>('idle');\n protected readonly _announcement = computed(() => this._state() === 'copied' ? this.copiedMessage() : this._state() === 'failed' ? this.failedMessage() : '');\n protected readonly _buttonName = computed(() => this.buttonAriaLabel() || [this.copyLabel(), this.label()].filter(Boolean).join(' '));\n protected readonly _describedBy = computed(() => {\n const ids = `${this.hint() ? this._id + '-hint' : ''} ${this._state() === 'failed' ? this._id + '-fail' : ''} ${this.ariaDescribedBy()}`.split(/\\s+/).filter(Boolean);\n const unique = ids.filter((id, i) => ids.indexOf(id) === i);\n return unique.length ? unique.join(' ') : null;\n });\n private readonly fieldEl = viewChild<ElementRef<HTMLInputElement>>('field');\n private _timer: ReturnType<typeof setTimeout> | null = null;\n\n ngOnDestroy(): void { if (this._timer) clearTimeout(this._timer); }\n\n /** Selects the whole text (also done on focus, so a manual copy is one keystroke away). */\n selectAll(): void { this.fieldEl()?.nativeElement.select(); }\n\n /** Copies `value`; the button calls this. Resolves to true when the text reached the clipboard. */\n async copy(): Promise<boolean> {\n const text = this.value();\n if (!text || this.disabled()) return false;\n let ok = false;\n try {\n if (typeof navigator !== 'undefined' && navigator.clipboard?.writeText) {\n await navigator.clipboard.writeText(text);\n ok = true;\n }\n } catch { ok = false; }\n if (!ok) ok = this.legacyCopy();\n if (this._timer) { clearTimeout(this._timer); this._timer = null; }\n if (ok) {\n this._state.set('copied');\n this.copied.emit(text);\n this._timer = setTimeout(() => { this._state.set('idle'); this._timer = null; }, 2000);\n } else {\n this.selectAll();\n this._state.set('failed');\n this.copyFailed.emit();\n }\n return ok;\n }\n\n private legacyCopy(): boolean {\n const el = this.fieldEl()?.nativeElement;\n if (!el || typeof document === 'undefined' || typeof document.execCommand !== 'function') return false;\n try {\n el.focus();\n el.select();\n el.setSelectionRange(0, el.value.length);\n return document.execCommand('copy');\n } catch { return false; }\n }\n}\n"],"mappings":";;;AA+DA,IAAa,qBAAb,MAAa,mBAAkB;CAlD/B,cAAA;EAmDqB,KAAA,SAAS,OAAO,eAAe;EAEzC,KAAA,QAAQ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AA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,QAAA;EAAA,CAAA;EAAA,YAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,YAAA;EAAA,CAAA;EAAA,SAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,SAAO,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA"}
@@ -1430,6 +1430,28 @@ const UI_LABELS_ES = {
1430
1430
  "emailTemplateEditor.sendTest": "Enviar prueba",
1431
1431
  "emailTemplateEditor.emoji": "Insertar emoji",
1432
1432
  "emailTemplateEditor.tipEmoji": "Emoji",
1433
+ "emailTemplateEditor.colorName.black": "Negro",
1434
+ "emailTemplateEditor.colorName.charcoal": "Carbón",
1435
+ "emailTemplateEditor.colorName.darkSlate": "Pizarra oscuro",
1436
+ "emailTemplateEditor.colorName.slate": "Pizarra",
1437
+ "emailTemplateEditor.colorName.lightSlate": "Pizarra claro",
1438
+ "emailTemplateEditor.colorName.silver": "Plata",
1439
+ "emailTemplateEditor.colorName.lightGrey": "Gris claro",
1440
+ "emailTemplateEditor.colorName.paleGrey": "Gris muy claro",
1441
+ "emailTemplateEditor.colorName.offWhite": "Blanco roto",
1442
+ "emailTemplateEditor.colorName.white": "Blanco",
1443
+ "emailTemplateEditor.colorName.red": "Rojo",
1444
+ "emailTemplateEditor.colorName.orange": "Naranja",
1445
+ "emailTemplateEditor.colorName.amber": "Ámbar",
1446
+ "emailTemplateEditor.colorName.yellow": "Amarillo",
1447
+ "emailTemplateEditor.colorName.green": "Verde",
1448
+ "emailTemplateEditor.colorName.teal": "Verde azulado",
1449
+ "emailTemplateEditor.colorName.skyBlue": "Celeste",
1450
+ "emailTemplateEditor.colorName.blue": "Azul",
1451
+ "emailTemplateEditor.colorName.violet": "Violeta",
1452
+ "emailTemplateEditor.colorName.magenta": "Magenta",
1453
+ "emailTemplateEditor.colorLight": "{{ color }} claro",
1454
+ "emailTemplateEditor.colorDark": "{{ color }} oscuro",
1433
1455
  "emailTemplateEditor.customColor": "Color personalizado…",
1434
1456
  "emailTemplateEditor.removeColor": "Quitar color",
1435
1457
  "emailTemplateEditor.emojiClose": "Cerrar",
@@ -2444,4 +2466,4 @@ const UI_LABELS_ES = {
2444
2466
  };
2445
2467
  export { UI_LABELS_ES };
2446
2468
 
2447
- //# sourceMappingURL=forgeroute-ui-core-ui-labels.es-CZOL2U-t.mjs.map
2469
+ //# sourceMappingURL=forgeroute-ui-core-ui-labels.es-Co-rBvSY.mjs.map