@forgeroute/ui 0.5.26 → 0.5.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/fesm2022/forgeroute-ui-card-list-item.mjs +30 -8
  2. package/fesm2022/forgeroute-ui-card-list-item.mjs.map +1 -1
  3. package/fesm2022/forgeroute-ui-checkbox.mjs +2 -2
  4. package/fesm2022/forgeroute-ui-checkbox.mjs.map +1 -1
  5. package/fesm2022/forgeroute-ui-color-input.mjs +2 -2
  6. package/fesm2022/forgeroute-ui-color-input.mjs.map +1 -1
  7. package/fesm2022/forgeroute-ui-combobox.mjs +2 -2
  8. package/fesm2022/forgeroute-ui-combobox.mjs.map +1 -1
  9. package/fesm2022/forgeroute-ui-contact-picker.mjs +4 -4
  10. package/fesm2022/forgeroute-ui-contact-picker.mjs.map +1 -1
  11. package/fesm2022/forgeroute-ui-conversations.mjs +2 -0
  12. package/fesm2022/forgeroute-ui-conversations.mjs.map +1 -1
  13. package/fesm2022/forgeroute-ui-data-table-core.mjs +2 -2
  14. package/fesm2022/forgeroute-ui-data-table-core.mjs.map +1 -1
  15. package/fesm2022/forgeroute-ui-date-input.mjs +2 -2
  16. package/fesm2022/forgeroute-ui-date-input.mjs.map +1 -1
  17. package/fesm2022/forgeroute-ui-datetime-input.mjs +2 -2
  18. package/fesm2022/forgeroute-ui-datetime-input.mjs.map +1 -1
  19. package/fesm2022/forgeroute-ui-detail-card.mjs +20 -4
  20. package/fesm2022/forgeroute-ui-detail-card.mjs.map +1 -1
  21. package/fesm2022/forgeroute-ui-dropdown.mjs +16 -2
  22. package/fesm2022/forgeroute-ui-dropdown.mjs.map +1 -1
  23. package/fesm2022/forgeroute-ui-file-input.mjs +7 -5
  24. package/fesm2022/forgeroute-ui-file-input.mjs.map +1 -1
  25. package/fesm2022/forgeroute-ui-icon-picker.mjs +2 -2
  26. package/fesm2022/forgeroute-ui-icon-picker.mjs.map +1 -1
  27. package/fesm2022/forgeroute-ui-media.mjs +67 -2
  28. package/fesm2022/forgeroute-ui-media.mjs.map +1 -1
  29. package/fesm2022/forgeroute-ui-messaging.mjs +3 -0
  30. package/fesm2022/forgeroute-ui-messaging.mjs.map +1 -1
  31. package/fesm2022/forgeroute-ui-multi-select.mjs +2 -2
  32. package/fesm2022/forgeroute-ui-multi-select.mjs.map +1 -1
  33. package/fesm2022/forgeroute-ui-notes.mjs +1 -0
  34. package/fesm2022/forgeroute-ui-notes.mjs.map +1 -1
  35. package/fesm2022/forgeroute-ui-option-card.mjs +1 -0
  36. package/fesm2022/forgeroute-ui-option-card.mjs.map +1 -1
  37. package/fesm2022/forgeroute-ui-payments.mjs +3 -0
  38. package/fesm2022/forgeroute-ui-payments.mjs.map +1 -1
  39. package/fesm2022/forgeroute-ui-pdf.mjs +1 -0
  40. package/fesm2022/forgeroute-ui-pdf.mjs.map +1 -1
  41. package/fesm2022/forgeroute-ui-quickbooks.mjs +1 -0
  42. package/fesm2022/forgeroute-ui-quickbooks.mjs.map +1 -1
  43. package/fesm2022/forgeroute-ui-radio-matrix.mjs +2 -2
  44. package/fesm2022/forgeroute-ui-radio-matrix.mjs.map +1 -1
  45. package/fesm2022/forgeroute-ui-radio.mjs +2 -2
  46. package/fesm2022/forgeroute-ui-radio.mjs.map +1 -1
  47. package/fesm2022/forgeroute-ui-select.mjs +2 -2
  48. package/fesm2022/forgeroute-ui-select.mjs.map +1 -1
  49. package/fesm2022/forgeroute-ui-setup.mjs +1 -0
  50. package/fesm2022/forgeroute-ui-setup.mjs.map +1 -1
  51. package/fesm2022/forgeroute-ui-square.mjs +1 -0
  52. package/fesm2022/forgeroute-ui-square.mjs.map +1 -1
  53. package/fesm2022/forgeroute-ui-star-rating.mjs +2 -2
  54. package/fesm2022/forgeroute-ui-star-rating.mjs.map +1 -1
  55. package/fesm2022/forgeroute-ui-stripe.mjs +1 -0
  56. package/fesm2022/forgeroute-ui-stripe.mjs.map +1 -1
  57. package/fesm2022/forgeroute-ui-swatch-picker.mjs +2 -2
  58. package/fesm2022/forgeroute-ui-swatch-picker.mjs.map +1 -1
  59. package/fesm2022/forgeroute-ui-table-toolbar.mjs +17 -5
  60. package/fesm2022/forgeroute-ui-table-toolbar.mjs.map +1 -1
  61. package/fesm2022/forgeroute-ui-text-input.mjs +2 -2
  62. package/fesm2022/forgeroute-ui-text-input.mjs.map +1 -1
  63. package/fesm2022/forgeroute-ui-textarea-input.mjs +23 -36
  64. package/fesm2022/forgeroute-ui-textarea-input.mjs.map +1 -1
  65. package/fesm2022/forgeroute-ui-time-input.mjs +2 -2
  66. package/fesm2022/forgeroute-ui-time-input.mjs.map +1 -1
  67. package/package.json +1 -1
  68. package/types/forgeroute-ui-card-list-item.d.ts +11 -3
  69. package/types/forgeroute-ui-detail-card.d.ts +7 -0
  70. package/types/forgeroute-ui-dropdown.d.ts +2 -0
  71. package/types/forgeroute-ui-media.d.ts +28 -0
  72. package/types/forgeroute-ui-messaging.d.ts +4 -4
  73. package/types/forgeroute-ui-payments.d.ts +1 -1
  74. package/types/forgeroute-ui-quickbooks.d.ts +1 -1
  75. package/types/forgeroute-ui-square.d.ts +4 -4
  76. package/types/forgeroute-ui-stripe.d.ts +4 -4
  77. package/types/forgeroute-ui-textarea-input.d.ts +9 -9
@@ -1 +1 @@
1
- {"version":3,"file":"forgeroute-ui-text-input.mjs","names":[],"sources":["../../../projects/forgeroute-ui/text-input/src/lib/text-input/text-input.component.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, ElementRef, input, output, signal, computed, effect, forwardRef, isDevMode, viewChild, inject } from '@angular/core';\nimport { AbstractControl, ControlValueAccessor, NG_VALIDATORS, NG_VALUE_ACCESSOR, ValidationErrors, Validator } from '@angular/forms';\nimport { DEFAULT_PASSWORD_RULES, PasswordRequirementsComponent, PasswordRule } from '@forgeroute/ui/password-requirements';\nimport { iconPath } from '@forgeroute/ui/icon';\nimport { FieldIssue, UiFieldValidity, createFieldReveal, mergeDescribedBy, issueToErrors, maxLengthIssue, requiredIssue } from '@forgeroute/ui/core';\nimport { UiLabelsService, uiText } from '@forgeroute/ui/core';\n\n@Component({\n selector: 'ui-text-input',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [PasswordRequirementsComponent],\n providers: [{\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => TextInputComponent),\n multi: true,\n }, {\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => TextInputComponent),\n multi: true,\n }, {\n provide: UiFieldValidity,\n useExisting: forwardRef(() => TextInputComponent),\n }],\n template: `\n <div class=\"ti-field\" [class.ti-error]=\"_activeError()\" [class.ti-disabled]=\"disabled()\"\n [class.ti-prefixed]=\"!!prefix() || _revealable() || !!_leadingD()\" [style.--ti-input-row]=\"(prefix() || _revealable() || _leadingD()) ? (label() ? 2 : 1) : null\">\n @if (label()) {\n <div class=\"ti-label-row\">\n <label class=\"ti-label\" [for]=\"_inputId\">\n {{ label() }}\n @if (required()) { <span class=\"ti-required\" aria-hidden=\"true\">*</span> }\n </label>\n <ng-content select=\"[uiLabelEnd]\" />\n </div>\n }\n <input\n #field\n class=\"ti-input\"\n [style.padding-left]=\"_prefixPadding()\"\n [style.padding-right]=\"_revealable() ? '44px' : null\"\n [id]=\"_inputId\"\n [attr.data-testid]=\"inputTestId() || null\"\n [attr.name]=\"inputName() || null\"\n [type]=\"_inputType()\"\n [attr.inputmode]=\"inputmode() || (type() === 'tel' ? 'tel' : integer() ? 'numeric' : null)\"\n [placeholder]=\"placeholder()\"\n [value]=\"_value()\"\n [disabled]=\"disabled()\"\n [readOnly]=\"readonly()\"\n [attr.maxlength]=\"maxlength() ?? null\"\n [attr.step]=\"_stepAttr()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.required]=\"required() || null\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-invalid]=\"_activeError() || ariaInvalid() ? 'true' : null\"\n [attr.aria-describedby]=\"_describedBy()\"\n (input)=\"onInput($event)\"\n (focus)=\"onFocus()\"\n (blur)=\"onBlur()\"\n />\n @if (_leadingD(); as d) {\n <!-- Optional leading icon (library source 2026-11-04): decorative, laid over the input's left padding by the same grid as the prefix. -->\n <svg class=\"ti-leading-icon\" width=\"16\" height=\"16\" 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]=\"d\" /></svg>\n }\n @if (prefix()) {\n <!-- Optional leading mark (\"$\"): a sibling after the input, laid over it by the grid of .ti-prefixed, so toggling it never recreates the input (focus and caret stay). -->\n <span class=\"ti-prefix\" aria-hidden=\"true\" [style.margin-left]=\"_leadingD() ? '36px' : null\">{{ prefix() }}</span>\n }\n @if (_revealable()) {\n <!-- Show / hide toggle laid over the end of the input by the grid of .ti-prefixed. The name stays \"Show password\"; aria-pressed carries the state. -->\n <button type=\"button\" class=\"ti-reveal\" data-testid=\"ti-reveal\" [attr.aria-label]=\"labels.t('textInput.showPassword')\"\n [attr.aria-pressed]=\"_shown()\" [attr.aria-controls]=\"_inputId\" [disabled]=\"disabled()\" (click)=\"_shown.set(!_shown())\">\n <svg viewBox=\"0 0 24 24\" width=\"18\" height=\"18\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\" focusable=\"false\">\n <path [attr.d]=\"_shown() ? _eyeOffPath : _eyePath\" />\n </svg>\n </button>\n }\n @if (_showRequirements()) {\n <ui-password-requirements [attr.id]=\"_inputId + '-req'\" [value]=\"_value()\" [rules]=\"passwordRules() ?? _defaultRules\" />\n }\n @if (_activeError()) {\n <p class=\"ti-desc ti-desc-error\" [id]=\"_inputId + '-desc'\" role=\"alert\">{{ _activeError() }}</p>\n } @else if (hint()) {\n <p class=\"ti-desc\" [id]=\"_inputId + '-desc'\">{{ hint() }}</p>\n }\n </div>\n `,\n styles: [`\n :host { display: block; }\n\n .ti-field { display: flex; flex-direction: column; gap: 6px; }\n\n /* Label line: the label, plus an optional host element marked uiLabelEnd pushed to the far end (e.g. a \"Forgot password?\" link). */\n .ti-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }\n\n .ti-label {\n font-size: 0.8125rem; font-weight: 600; color: #374151; line-height: 1;\n }\n .ti-required { color: #dc2626; margin-left: 2px; }\n\n /* With a prefix the field becomes a one-column grid: the input and the mark share the input's row (--ti-input-row), the mark centred over the input's left padding. */\n .ti-prefixed { display: grid; grid-template-columns: minmax(0, 1fr); }\n .ti-prefixed .ti-input { grid-row: var(--ti-input-row); grid-column: 1; }\n .ti-prefix {\n grid-row: var(--ti-input-row); grid-column: 1; justify-self: start; align-self: center; margin-left: 12px;\n font-size: 0.875rem; line-height: 1; color: #64748b; pointer-events: none;\n }\n @media (pointer: coarse), (max-width: 480px) { .ti-prefix { font-size: 1rem; } }\n .ti-disabled .ti-prefix { opacity: 0.5; }\n /* Leading icon (leadingIcon): same grid cell as the prefix, 12px from the left, never takes clicks (the input gets them). */\n .ti-leading-icon {\n grid-row: var(--ti-input-row); grid-column: 1; justify-self: start; align-self: center; margin-left: 12px;\n color: #64748b; pointer-events: none;\n }\n .ti-disabled .ti-leading-icon { opacity: 0.5; }\n .ti-reveal {\n grid-row: var(--ti-input-row); grid-column: 1; justify-self: end; align-self: center; margin-right: 6px;\n position: relative; display: inline-flex; align-items: center; justify-content: center;\n width: 32px; height: 32px; padding: 0; border: 0; border-radius: 6px; background: transparent;\n color: #64748b; cursor: pointer;\n &:hover:not(:disabled) { color: #1e293b; background: #f1f5f9; }\n &:focus-visible { outline: 2px solid #3b82f6; outline-offset: 0; }\n &:disabled { opacity: 0.5; cursor: not-allowed; }\n /* touch devices / phones: the button is the full 44px height of the input */\n @media (pointer: coarse), (max-width: 480px) { width: 44px; height: 44px; margin-right: 0; }\n }\n\n .ti-input {\n width: 100%; box-sizing: border-box;\n padding: 9px 12px; font-size: 0.875rem; font-family: inherit;\n color: #1e293b; background: #fff;\n border: 1px solid #7c8ba1; border-radius: 8px;\n outline: none; transition: border-color 0.15s, box-shadow 0.15s;\n &::placeholder { color: #64748b; opacity: 1; }\n &:focus {\n border-color: #3b82f6;\n box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);\n }\n &:read-only { background: #f8fafc; cursor: default; }\n }\n\n .ti-error .ti-input {\n border-color: #ef4444;\n &:focus { box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12); }\n }\n\n .ti-disabled .ti-input { opacity: 0.5; cursor: not-allowed; }\n\n .ti-desc { margin: 0; font-size: 0.75rem; line-height: 1.4; color: #64748b; }\n .ti-desc-error { color: #dc2626; }\n\n @media (pointer: coarse), (max-width: 480px) { .ti-input { font-size: 1rem; } }\n @media (pointer: coarse), (max-width: 480px) { .ti-input { min-height: 44px; } }\n `],\n})\n/**\n * Text field. Works with `[(ngModel)]` and reactive forms (ControlValueAccessor).\n *\n * Built-in validation (all derived from the inputs below, no host code):\n * - `required` -> \"<label> is required.\" (or \"This field is required.\") when empty.\n * - `maxlength` -> \"Too long (max N characters).\" when the trimmed value is longer (typing is still capped natively,\n * but a value pasted or set programmatically from a loaded record is flagged).\n * - `type=\"email\"` -> \"Please enter a valid email address.\"\n * - `type=\"tel\"` -> formats as a US phone number (like `phoneFormat`) and requires 10 digits (optional leading 1);\n * a value starting with \"+\" is treated as international (8-15 digits). \"Please enter a valid phone number.\"\n * `phoneFormat` on its own (any other type) only formats, it does not validate.\n * - `type=\"number\"` with `min` / `max` / `maxDecimals` -> \"Must be at least X\" / \"Must be at most X\" /\n * \"Use at most N decimal places\"; text that is not a number -> \"Please enter a valid number.\"\n * An EMPTY `type=\"number\"` field with `required` is invalid with \"<label> is required.\" (`invalid()`, `errorMessage()`, the control's `required` error)\n * in both value modes and shows the message only after the user left the field (`showErrors` reveals it at once on an untouched field); the model value for an empty field is untouched by it (string mode '',\n * `valueType=\"number\"` null, a never-edited model keeps what the host wrote). 0 counts as a value.\n * `step` (`type=\"number\"` only) sets how far the spinner arrows / Up / Down keys move the value (`[step]=\"0.01\"` for money);\n * unset = the browser's default of 1. It does not restrict typing.\n * Empty values are valid unless `required`. Disabled / readonly fields are never invalid.\n *\n * Numeric value (opt-in): by default the control value is always the typed STRING, even for `type=\"number\"`.\n * Pass `valueType=\"number\"` together with `type=\"number\"` and the control value (ngModel / FormControl / what is emitted)\n * is `number | null` instead: a valid number -> a JS number ('200' -> 200, '1.5' -> 1.5, '-3' -> -3, '007' -> 7,\n * '1e3' -> 1000), empty -> `null`, text that is not a number -> `null` while the field shows \"Please enter a valid number.\".\n * The number is the parsed value even when it breaks min / max / maxDecimals (the control is then invalid; the host\n * still sees what was typed). `required` is satisfied by 0. `writeValue` accepts a number (shown as its decimal string),\n * null / undefined / NaN (shown empty) or a numeric string. `valueType=\"number\"` with any other `type` logs one dev-mode\n * warning and behaves as `valueType=\"string\"`.\n * Example: `<ui-text-input type=\"number\" valueType=\"number\" label=\"Rate\" [min]=\"0\" [(ngModel)]=\"rate\" />` (`rate: number | null`).\n *\n * Label line extras: project any element with the `uiLabelEnd` attribute to show it at the far end of the label line, e.g.\n * `<ui-text-input label=\"Password\"><a uiLabelEnd href=\"/forgot-password\">Forgot password?</a></ui-text-input>`. Shown only for a field that has a `label`.\n *\n * Validity API (same on every ui input):\n * - The component is an Angular `Validator`, so `ngModel` / `FormControl` report `.invalid` / `.errors`\n * (keys: required, maxlength, email, phone, number, min, max, decimals).\n * - Signals `invalid` and `errorMessage` plus the `invalidChange` output; the token `UiFieldValidity` lets a host collect\n * them with `viewChildren(UiFieldValidity)`.\n * - Messages (built-in and a host `[error]`) are only displayed after the user left THIS field (blur); `[showErrors]=\"true\"` also reveals it on an untouched field.\n * Setting `showErrors` back to false also clears the touched state. A host-provided `[error]` always wins.\n */\nexport class TextInputComponent implements ControlValueAccessor, Validator, UiFieldValidity {\n protected readonly labels = inject(UiLabelsService);\n readonly label = input('');\n /** Accessible name for a field with no visible label (e.g. an inline cell or title input). */\n readonly ariaLabel = input('');\n /**\n * `data-testid` placed on the inner `<input>` (the host `<ui-text-input>` keeps its own attributes). Lets e2e tests `fill()` / `blur()` the\n * field directly instead of `getByTestId('x').locator('input')`. Pass a different id than the host's, e.g. host `data-testid=\"email\"`\n * and `inputTestId=\"email-input\"`. Omitted = no attribute.\n */\n readonly inputTestId = input('');\n /** Native `name` attribute placed on the inner `<input>` (e2e `[name=x]` selectors, browser autofill). None when empty. */\n readonly inputName = input('');\n readonly placeholder = input('');\n /**\n * An optional leading mark shown inside the field, left of the text (e.g. `prefix=\"$\"` for a dollar amount). Hidden unless set; it is\n * decoration only (not part of the value, not read by screen readers), so say the unit in the label too when it matters (\"Amount (USD)\").\n * Meant for a short mark of 1-3 characters.\n */\n readonly prefix = input('');\n /**\n * Library source 2026-11-04, not yet published. An optional icon at the left inside the field: a `<ui-icon>` key, e.g. `leadingIcon=\"search\"` for a search field.\n * Decorative (`aria-hidden`, no pointer events, not part of the value), so give the field a `label` or `ariaLabel`. The input's left padding grows to\n * make room (36px; with a `prefix` the mark moves right of the icon). An unknown key or empty (default) draws nothing and changes nothing.\n */\n readonly leadingIcon = input('');\n /**\n * `type=\"password\"` only: puts an eye button inside the field, at its right end, that shows / hides the typed text (the eye with a slash\n * means \"hidden again\"). Per field, starts hidden; the button is a toggle (`aria-pressed`) named \"Show password\". Ignored for other types.\n */\n readonly revealable = input(false);\n /**\n * `type=\"password\"` only: shows the password requirements checklist under the field (`ui-password-requirements`) once the user has typed\n * (it hides again when the host clears the field, e.g. after a successful change). Each rule turns green with a check when satisfied. Off by default; ignored for other types.\n */\n readonly passwordRequirements = input(false);\n /** Rules for `passwordRequirements`; default = the library's five rules (8+ characters, upper, lower, digit, special). */\n readonly passwordRules = input<readonly PasswordRule[] | undefined>(undefined);\n readonly type = input<'text' | 'email' | 'password' | 'tel' | 'url' | 'number'>('text');\n readonly maxlength = input<number | undefined>(undefined);\n readonly required = input(false);\n readonly autocomplete = input('off');\n /**\n * Which on-screen keyboard a phone shows (`numeric` = digits only, e.g. ZIP / area code; `decimal`, `tel`, `email`, `url`,\n * `search`, `text`, `none`). Empty (default) = the browser's default for the field, except `type=\"tel\"`, which keeps `tel`.\n * It only picks the keyboard; it does not restrict what can be typed or pasted.\n */\n readonly inputmode = input<'' | 'none' | 'text' | 'decimal' | 'numeric' | 'tel' | 'search' | 'email' | 'url'>('');\n readonly readonly = input(false);\n readonly hint = input('');\n /** Id(s) of an external element that also describes this control (e.g. one shared error text for a group of fields). Space separated; MERGED after the control's own hint / error id in `aria-describedby`, never replacing it. Empty = unchanged. */\n readonly ariaDescribedBy = input('');\n /** Marks the control `aria-invalid` although no message is shown in the field itself (the host shows its error elsewhere, e.g. one alert for a group of fields; point `ariaDescribedBy` at it). Default false = unchanged. */\n readonly ariaInvalid = input(false);\n readonly error = input('');\n /** When true, automatically formats the value as a US phone number as the user types. */\n readonly phoneFormat = input(false);\n /** `type=\"number\"` only: smallest allowed value. */\n readonly min = input<number | undefined>(undefined);\n /** `type=\"number\"` only: largest allowed value. */\n readonly max = input<number | undefined>(undefined);\n /** `type=\"number\"` only: most digits allowed after the decimal point. */\n readonly maxDecimals = input<number | undefined>(undefined);\n /**\n * `type=\"number\"` only: how much the browser's spinner arrows and the Up / Down keys change the value (e.g. `0.01` for money).\n * Leave it unset for the browser's default step of 1. A value that is not a number above 0 is ignored (also the default step).\n * It only picks the increment; it does not restrict what can be typed (use `maxDecimals` for that).\n */\n readonly step = input<number | undefined>(undefined);\n /**\n * What the control value is. `'string'` (default) = the typed text. `'number'` = `number | null`; requires `type=\"number\"`\n * (otherwise a dev-mode warning is logged once and string behaviour is used).\n */\n readonly valueType = input<'string' | 'number'>('string');\n /**\n * Optional text filter/mask applied to every typed or pasted value: `(raw) => cleaned`, e.g. `v => v.replace(/\\D/g, '').slice(0, 9)`.\n * The result is what the box shows and what the model gets (the caret moves to the end when the text was changed). Unset (default)\n * = the typed text is used as is. Not applied to values the host writes (`writeValue`), and for `type=\"tel\"` / `phoneFormat` the\n * phone formatting runs first and the formatter then sees its result.\n */\n readonly formatter = input<((raw: string) => string) | undefined>(undefined);\n /**\n * Whole numbers only (default off). Every typed or pasted value is cut at its first `.`, `e` or `E` (`2.7` -> `2`, `1e1` -> `1`, `12` stays),\n * the same filter as cremo's `wholeNumber`. It runs after the phone formatting and before a host `formatter`. It also picks the numeric\n * on-screen keyboard (`inputmode=\"numeric\"`), the native `step` 1 and `maxDecimals` 0 for `type=\"number\"` - each only while the host has not\n * set `inputmode` / `step` / `maxDecimals` itself. Values the host writes (`writeValue`) are shown as they are (a decimal there still fails\n * the 0-decimals rule).\n */\n readonly integer = input(false);\n /** The host's \"tried to submit\" flag (e.g. after a failed Save click). `true` reveals the message of an untouched field at once (the field also shows it after the user left THIS field); switching it from true back to false forgets that the field was left. */\n readonly showErrors = input(false);\n\n /** Emits the new value when the USER changes it (typing, paste, autofill) - the same value the form control receives. Not emitted for values the host writes. */\n readonly valueChange = output<string | number | null>();\n readonly focused = output<void>();\n readonly blurred = output<void>();\n /** Emits whenever the field becomes invalid / valid. */\n readonly invalidChange = output<boolean>();\n\n /**\n * The `[disabled]` input. Public on purpose: a `protected` input makes `[disabled]=\"x\"` in a host template fail strict template\n * type-checking (TS2445: Angular checks the field the alias points at). The field is disabled when this OR the form control\n * (`setDisabledState`, e.g. `FormControl.disable()`) says so.\n */\n readonly _disabledInput = input(false, { alias: 'disabled' });\n private readonly _cvaDisabled = signal(false);\n protected readonly disabled = computed(() => this._disabledInput() || this._cvaDisabled());\n\n protected readonly _value = signal('');\n private readonly _reveal = createFieldReveal(this.showErrors);\n /** Path of the leading icon, or null when `leadingIcon` is empty or not a known icon key. */\n protected readonly _leadingD = computed((): string | null => {\n const key = this.leadingIcon().trim();\n return key ? iconPath(key) ?? null : null;\n });\n /**\n * Left padding that makes room for the prefix (its width in `ch` plus the field's own 12px and a 6px gap) and/or the leading icon (a 16px icon\n * plus an 8px gap, so 36px from the edge); none without either.\n */\n protected readonly _prefixPadding = computed(() => {\n const icon = !!this._leadingD();\n if (this.prefix()) return icon ? `calc(36px + ${this.prefix().length}ch + 6px)` : `calc(12px + ${this.prefix().length}ch + 6px)`;\n return icon ? '36px' : null;\n });\n private readonly _fieldEl = viewChild<ElementRef<HTMLInputElement>>('field');\n /** True when the control value is a number: `valueType=\"number\"` on a `type=\"number\"` field. */\n private readonly _numeric = computed(() => this.valueType() === 'number' && this.type() === 'number');\n /** The native `step` attribute: only for `type=\"number\"` and only for a finite number above 0; otherwise none (the browser's step of 1). */\n protected readonly _stepAttr = computed(() => {\n const step = this.step();\n if (this.type() === 'number' && typeof step === 'number' && Number.isFinite(step) && step > 0) return String(step);\n return this.type() === 'number' && this.integer() ? '1' : null;\n });\n protected readonly _revealable = computed(() => this.revealable() && this.type() === 'password');\n protected readonly _shown = signal(false);\n protected readonly _inputType = computed(() => this._revealable() && this._shown() ? 'text' : this.type());\n protected readonly _eyePath = iconPath('view')!;\n protected readonly _eyeOffPath = iconPath('view-off')!;\n protected readonly _showRequirements = computed(() => this.passwordRequirements() && this.type() === 'password' && this._typed());\n /** `aria-describedby`: the error / hint text and, while the requirements checklist is shown, the checklist (so a screen reader reads the rules with the field). */\n protected readonly _describedBy = computed(() => {\n const ids = [(this._activeError() || this.hint()) ? this._inputId + '-desc' : '', this._showRequirements() ? this._inputId + '-req' : ''].filter(Boolean);\n return mergeDescribedBy(ids.join(' '), this.ariaDescribedBy());\n });\n /** True once the user typed in the field; a host-written empty value (a form reset) puts it back to false. */\n private readonly _typed = signal(false);\n protected readonly _defaultRules = DEFAULT_PASSWORD_RULES;\n private _warned = false;\n private readonly _formatting = computed(() => this.phoneFormat() || this.type() === 'tel');\n /** A host-written phone text that formatting cut short (13 digits -> 10): validity is judged on what the host wrote, so the message matches the control's `phone` error. Cleared by typing. */\n private readonly _hostText = signal<string | null>(null);\n private readonly _issue = computed(() => this._check(this._hostText() ?? this._value()));\n /** True while the value breaks a built-in rule or the host passed an `[error]`. */\n readonly invalid = computed(() => !!this.error() || !!this._issue());\n /** Message of the first broken built-in rule ('' when valid), shown or not. */\n readonly errorMessage = computed(() => this._issue()?.message ?? '');\n protected readonly _activeError = computed(() => this._reveal.revealed() ? (this.error() || this.errorMessage()) : '');\n protected readonly _inputId = `ti-${Math.random().toString(36).slice(2, 8)}`;\n\n private static readonly _EMAIL_RE = /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/;\n\n /**\n * Library source 2026-11-04, not yet published. Puts the keyboard focus on the inner `<input>` (e.g. after a panel opens or a search is cleared):\n * `fieldRef.focus()` via `viewChild(TextInputComponent)`. Same options as the DOM method (`{ preventScroll: true }`). Safe at any time: before the\n * view exists, or on a disabled field, it does nothing and never throws.\n */\n focus(options?: FocusOptions): void {\n this._fieldEl()?.nativeElement.focus(options);\n }\n\n /**\n * Library source 2026-11-05, not yet published. Caret access for hosts (e.g. an \"insert variable at the cursor\" chip row), so a host never\n * queries the inner element. Reach it with `viewChild(TextInputComponent)`. All three methods are safe at any time: before the view exists, on a\n * disabled / read-only field, or for a type that has no selection API (email, number) they do nothing / return null and never throw.\n *\n * `getSelection()` -> `{ start, end }` of the selected text (equal when only a caret) or `null` when it cannot be read.\n */\n getSelection(): { start: number; end: number } | null {\n const el = this._fieldEl()?.nativeElement;\n if (!el) return null;\n try {\n if (el.selectionStart === null || el.selectionEnd === null) return null;\n return { start: el.selectionStart, end: el.selectionEnd };\n } catch { return null; }\n }\n\n /** Selects `start`..`end` (a caret when `end` is left out); values are clamped to the text. Does nothing where the selection API is unavailable. */\n setSelection(start: number, end: number = start): void {\n const el = this._fieldEl()?.nativeElement;\n if (!el) return;\n const max = el.value.length;\n const from = Math.min(Math.max(0, start), max);\n const to = Math.min(Math.max(from, end), max);\n try { el.setSelectionRange(from, to); } catch { /* type without a selection */ }\n }\n\n /**\n * Inserts `text` at the caret, replacing any selected text, and puts the caret right after it. The change goes through the normal typing path\n * (formatting, `ngModel` / form control, `valueChange`), exactly as if the user had typed it, and `maxlength` caps it like typing does (the\n * part that does not fit is not inserted). With no caret known (a type without a selection API) the text is appended. Does nothing on a\n * disabled or read-only field or for an empty `text`.\n */\n insertAtCaret(text: string): void {\n const el = this._fieldEl()?.nativeElement;\n if (!el || el.disabled || el.readOnly || !text) return;\n const value = el.value;\n let from = value.length;\n let to = value.length;\n try {\n if (el.selectionStart !== null && el.selectionEnd !== null) { from = el.selectionStart; to = el.selectionEnd; }\n } catch { /* type without a selection: append */ }\n const max = this.maxlength();\n const room = max === undefined ? text.length : max - (value.length - (to - from));\n const insert = text.slice(0, Math.max(0, room));\n if (!insert) return;\n el.value = value.slice(0, from) + insert + value.slice(to);\n const caret = from + insert.length;\n try { el.setSelectionRange(caret, caret); } catch { /* type without a selection */ }\n el.dispatchEvent(new Event('input', { bubbles: true }));\n }\n\n private _onChange = (_: string | number | null) => {};\n private _onTouched = () => {};\n private _onValidatorChange = () => {};\n\n constructor() {\n effect(() => { this.invalidChange.emit(this.invalid()); });\n effect(() => {\n if (this.valueType() === 'number' && this.type() !== 'number' && !this._warned && isDevMode()) {\n this._warned = true;\n console.warn('ui-text-input: valueType=\"number\" needs type=\"number\"');\n }\n });\n }\n\n /** Re-run the form control's validation when a rule input (required, maxlength, min, options, ...) changes. */\n ngOnChanges() { this._onValidatorChange(); }\n\n writeValue(val: string | number | null | undefined) {\n const text = val == null || (typeof val === 'number' && Number.isNaN(val)) && this._numeric() ? '' : String(val);\n const shown = this._formatting() ? TextInputComponent._formatPhone(text) : text;\n this._value.set(shown);\n this._hostText.set(this._formatting() && shown !== text && this.type() === 'tel' ? text : null);\n if (text === '') this._typed.set(false);\n }\n validate(control: AbstractControl): ValidationErrors | null {\n const v = control.value;\n let text = v == null ? '' : String(v);\n if (this._numeric()) {\n // Numeric mode validates the TYPED text (the same source as the displayed message), so '1.250' with maxDecimals=2 is\n // invalid in the field AND on the control even though the control holds the number 1.25. The typed text is used only\n // while it still describes the control value (it parses to it, or both are \"not a number\"); otherwise (a value set\n // without a view update, or no text yet) the control value itself is validated.\n const typed = this._value();\n if (typed.trim() && TextInputComponent._parse(typed) === (typeof v === 'number' && Number.isFinite(v) ? v : null)) text = typed;\n }\n return issueToErrors(this._check(text));\n }\n registerOnValidatorChange(fn: () => void) { this._onValidatorChange = fn; }\n registerOnChange(fn: (v: string | number | null) => void) { this._onChange = fn; }\n registerOnTouched(fn: () => void) { this._onTouched = fn; }\n setDisabledState(d: boolean) { this._cvaDisabled.set(d); }\n\n protected onInput(event: Event) {\n this._typed.set(true);\n const input = event.target as HTMLInputElement;\n const raw = input.value;\n // where the caret was before the value is rewritten (type=\"email\" / \"number\" inputs throw on the selection API)\n let caretBefore: number | null = null;\n try { caretBefore = input.selectionStart; } catch { /* type without a selection */ }\n let val = this._formatting() ? TextInputComponent._formatPhone(raw) : raw;\n if (this.integer()) val = val.replace(/[.eE].*$/, '');\n const format = this.formatter();\n if (format) val = format(val);\n this._hostText.set(null);\n this._value.set(val);\n const emitted = this._numeric() ? TextInputComponent._parse(val) : val;\n this._onChange(emitted);\n this.valueChange.emit(emitted);\n // A host may rewrite the value while it handles the change (a mask that drops letters calls writeValue). When the model lands on the\n // text this field showed BEFORE the keystroke, the `[value]` binding sees no change and the browser would keep the typed character.\n // The box always shows the model: write it back only when the two differ, so a plain keystroke is never touched.\n const shown = this._value();\n if (input.value !== shown) {\n input.value = shown;\n // Writing the value moves the caret to the end in every browser except some mobile ones: set it explicitly where the type allows it\n // (number / email inputs throw on setSelectionRange). A phone number edited in the middle keeps the caret after the same digit\n // (the formatting inserts or removes \"(\", \")\", \" \" and \"-\"); every other rewrite puts it at the end.\n const caret = this._formatting() && !format && caretBefore !== null && caretBefore < raw.length\n ? TextInputComponent._caretAfterDigits(raw, caretBefore, shown) : shown.length;\n try { input.setSelectionRange(caret, caret); } catch { /* type without a selection */ }\n }\n }\n\n /**\n * Position in `formatted` for a caret that was at `caret` in `raw`: right after the same number of digits (the leading country-code 1 of an\n * 11-digit number is dropped by the formatting). When the character before the caret was a separator, the caret also moves over the separators\n * that follow that digit, so deleting the first digit of a group does not throw the caret back in front of \") \".\n */\n private static _caretAfterDigits(raw: string, caret: number, formatted: string): number {\n let n = (raw.slice(0, caret).match(/\\d/g) ?? []).length;\n const all = raw.replace(/\\D/g, '');\n if (!raw.startsWith('+') && all.length === 11 && all.startsWith('1')) n = Math.max(0, n - 1);\n let pos = 0;\n if (n > 0) {\n let seen = 0;\n pos = formatted.length;\n for (let i = 0; i < formatted.length; i++) {\n if (/\\d/.test(formatted[i]) && ++seen === n) { pos = i + 1; break; }\n }\n }\n if (caret > 0 && !/\\d/.test(raw[caret - 1])) while (pos < formatted.length && !/\\d/.test(formatted[pos])) pos++;\n return pos;\n }\n\n /** Typed text -> number, or null when blank / not a finite number. */\n private static _parse(text: string): number | null {\n const t = text.trim();\n if (!t) return null;\n const n = Number(t);\n return Number.isFinite(n) ? n : null;\n }\n\n protected onFocus() { this.focused.emit(); }\n protected onBlur() {\n this._onTouched();\n this.blurred.emit();\n this._reveal.touched.set(true);\n }\n\n /** First broken built-in rule for `value`, or null. */\n private _check(value: string): FieldIssue | null {\n if (this.disabled() || this.readonly()) return null;\n const text = value.trim();\n if (!text) return this.required() ? requiredIssue(this.label()) : null;\n const tooLong = maxLengthIssue(text, this.maxlength());\n if (tooLong) return tooLong;\n switch (this.type()) {\n case 'email':\n return TextInputComponent._EMAIL_RE.test(text) ? null : { key: 'email', message: uiText('validation.email') };\n case 'tel':\n return TextInputComponent._validPhone(text) ? null : { key: 'phone', message: uiText('validation.phone') };\n case 'number':\n return this._checkNumber(text);\n default:\n return null;\n }\n }\n\n private _checkNumber(text: string): FieldIssue | null {\n const n = Number(text);\n if (!Number.isFinite(n)) return { key: 'number', message: uiText('validation.number') };\n const min = this.min(), max = this.max(), decimals = this.maxDecimals() ?? (this.integer() ? 0 : undefined);\n if (min != null && n < min) return { key: 'min', message: uiText('validation.min', { min }), value: { min, actual: n } };\n if (max != null && n > max) return { key: 'max', message: uiText('validation.max', { max }), value: { max, actual: n } };\n if (decimals != null && !/e/i.test(text) && (text.split('.')[1]?.length ?? 0) > decimals) {\n return { key: 'decimals', message: uiText(decimals === 1 ? 'validation.decimals_one' : 'validation.decimals_other', { count: decimals }), value: { maxDecimals: decimals } };\n }\n return null;\n }\n\n private static _validPhone(text: string): boolean {\n const digits = text.replace(/\\D/g, '');\n if (text.startsWith('+')) return digits.length >= 8 && digits.length <= 15;\n return digits.length === 10 || (digits.length === 11 && digits.startsWith('1'));\n }\n\n static _formatPhone(raw: string): string {\n if (!raw) return '';\n if (raw.startsWith('+')) return raw; // leave international numbers alone\n const digits = raw.replace(/\\D/g, '');\n const d = digits.startsWith('1') && digits.length === 11 ? digits.slice(1) : digits.slice(0, 10);\n if (d.length <= 3) return d;\n if (d.length <= 6) return `(${d.slice(0, 3)}) ${d.slice(3)}`;\n return `(${d.slice(0, 3)}) ${d.slice(3, 6)}-${d.slice(6)}`;\n }\n}\n"],"mappings":";;;;;;AAqMA,IAAa,qBAAb,MAAa,mBAAkB;CA+JL;EAAA,KAAA,YAAY;CAA6B;CAOjE,MAAM,SAAsB;EAC1B,KAAK,SAAQ,CAAE,EAAE,cAAc,MAAM,OAAO;CAC9C;CASA,eAAY;EACV,MAAM,KAAK,KAAK,SAAQ,CAAE,EAAE;EAC5B,IAAI,CAAC,IAAI,OAAO;EAChB,IAAI;GACF,IAAI,GAAG,mBAAmB,QAAQ,GAAG,iBAAiB,MAAM,OAAO;GACnE,OAAO;IAAE,OAAO,GAAG;IAAgB,KAAK,GAAG;GAAY;EACzD,QAAQ;GAAE,OAAO;EAAM;CACzB;CAGA,aAAa,OAAe,MAAc,OAAK;EAC7C,MAAM,KAAK,KAAK,SAAQ,CAAE,EAAE;EAC5B,IAAI,CAAC,IAAI;EACT,MAAM,MAAM,GAAG,MAAM;EACrB,MAAM,OAAO,KAAK,IAAI,KAAK,IAAI,GAAG,KAAK,GAAG,GAAG;EAC7C,MAAM,KAAK,KAAK,IAAI,KAAK,IAAI,MAAM,GAAG,GAAG,GAAG;EAC5C,IAAI;GAAE,GAAG,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MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,UAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,SAAO,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA"}
1
+ {"version":3,"file":"forgeroute-ui-text-input.mjs","names":[],"sources":["../../../projects/forgeroute-ui/text-input/src/lib/text-input/text-input.component.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, ElementRef, input, output, signal, computed, effect, forwardRef, isDevMode, viewChild, inject } from '@angular/core';\nimport { AbstractControl, ControlValueAccessor, NG_VALIDATORS, NG_VALUE_ACCESSOR, ValidationErrors, Validator } from '@angular/forms';\nimport { DEFAULT_PASSWORD_RULES, PasswordRequirementsComponent, PasswordRule } from '@forgeroute/ui/password-requirements';\nimport { iconPath } from '@forgeroute/ui/icon';\nimport { FieldIssue, UiFieldValidity, createFieldReveal, mergeDescribedBy, issueToErrors, maxLengthIssue, requiredIssue } from '@forgeroute/ui/core';\nimport { UiLabelsService, uiText } from '@forgeroute/ui/core';\n\n@Component({\n selector: 'ui-text-input',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [PasswordRequirementsComponent],\n providers: [{\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => TextInputComponent),\n multi: true,\n }, {\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => TextInputComponent),\n multi: true,\n }, {\n provide: UiFieldValidity,\n useExisting: forwardRef(() => TextInputComponent),\n }],\n template: `\n <div class=\"ti-field\" [class.ti-error]=\"_activeError()\" [class.ti-disabled]=\"disabled()\"\n [class.ti-prefixed]=\"!!prefix() || _revealable() || !!_leadingD()\" [style.--ti-input-row]=\"(prefix() || _revealable() || _leadingD()) ? (label() ? 2 : 1) : null\">\n @if (label()) {\n <div class=\"ti-label-row\">\n <label class=\"ti-label\" [for]=\"_inputId\">\n {{ label() }}\n @if (required()) { <span class=\"ti-required\" aria-hidden=\"true\">*</span> }\n </label>\n <ng-content select=\"[uiLabelEnd]\" />\n </div>\n }\n <input\n #field\n class=\"ti-input\"\n [style.padding-left]=\"_prefixPadding()\"\n [style.padding-right]=\"_revealable() ? '44px' : null\"\n [id]=\"_inputId\"\n [attr.data-testid]=\"inputTestId() || null\"\n [attr.name]=\"inputName() || null\"\n [type]=\"_inputType()\"\n [attr.inputmode]=\"inputmode() || (type() === 'tel' ? 'tel' : integer() ? 'numeric' : null)\"\n [placeholder]=\"placeholder()\"\n [value]=\"_value()\"\n [disabled]=\"disabled()\"\n [readOnly]=\"readonly()\"\n [attr.maxlength]=\"maxlength() ?? null\"\n [attr.step]=\"_stepAttr()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.required]=\"required() || null\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-invalid]=\"_activeError() || ariaInvalid() ? 'true' : null\"\n [attr.aria-describedby]=\"_describedBy()\"\n (input)=\"onInput($event)\"\n (focus)=\"onFocus()\"\n (blur)=\"onBlur()\"\n />\n @if (_leadingD(); as d) {\n <!-- Optional leading icon (library source 2026-11-04): decorative, laid over the input's left padding by the same grid as the prefix. -->\n <svg class=\"ti-leading-icon\" width=\"16\" height=\"16\" 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]=\"d\" /></svg>\n }\n @if (prefix()) {\n <!-- Optional leading mark (\"$\"): a sibling after the input, laid over it by the grid of .ti-prefixed, so toggling it never recreates the input (focus and caret stay). -->\n <span class=\"ti-prefix\" aria-hidden=\"true\" [style.margin-left]=\"_leadingD() ? '36px' : null\">{{ prefix() }}</span>\n }\n @if (_revealable()) {\n <!-- Show / hide toggle laid over the end of the input by the grid of .ti-prefixed. The name stays \"Show password\"; aria-pressed carries the state. -->\n <button type=\"button\" class=\"ti-reveal\" data-testid=\"ti-reveal\" [attr.aria-label]=\"labels.t('textInput.showPassword')\"\n [attr.aria-pressed]=\"_shown()\" [attr.aria-controls]=\"_inputId\" [disabled]=\"disabled()\" (click)=\"_shown.set(!_shown())\">\n <svg viewBox=\"0 0 24 24\" width=\"18\" height=\"18\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\" focusable=\"false\">\n <path [attr.d]=\"_shown() ? _eyeOffPath : _eyePath\" />\n </svg>\n </button>\n }\n @if (_showRequirements()) {\n <ui-password-requirements [attr.id]=\"_inputId + '-req'\" [value]=\"_value()\" [rules]=\"passwordRules() ?? _defaultRules\" />\n }\n @if (_activeError()) {\n <p class=\"ti-desc ti-desc-error\" [id]=\"_inputId + '-desc'\" role=\"alert\">{{ _activeError() }}</p>\n } @else if (hint()) {\n <p class=\"ti-desc\" [id]=\"_inputId + '-desc'\">{{ hint() }}</p>\n }\n </div>\n `,\n styles: [`\n :host { display: block; }\n\n .ti-field { display: flex; flex-direction: column; gap: 6px; }\n\n /* Label line: the label, plus an optional host element marked uiLabelEnd pushed to the far end (e.g. a \"Forgot password?\" link). */\n .ti-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }\n\n .ti-label {\n font-size: 0.8125rem; font-weight: 600; color: #374151; line-height: 1;\n }\n .ti-required { color: #dc2626; margin-left: 2px; }\n\n /* With a prefix the field becomes a one-column grid: the input and the mark share the input's row (--ti-input-row), the mark centred over the input's left padding. */\n .ti-prefixed { display: grid; grid-template-columns: minmax(0, 1fr); }\n .ti-prefixed .ti-input { grid-row: var(--ti-input-row); grid-column: 1; }\n .ti-prefix {\n grid-row: var(--ti-input-row); grid-column: 1; justify-self: start; align-self: center; margin-left: 12px;\n font-size: 0.875rem; line-height: 1; color: #64748b; pointer-events: none;\n }\n @media (pointer: coarse), (max-width: 480px) { .ti-prefix { font-size: 1rem; } }\n .ti-disabled .ti-prefix { opacity: 0.5; }\n /* Leading icon (leadingIcon): same grid cell as the prefix, 12px from the left, never takes clicks (the input gets them). */\n .ti-leading-icon {\n grid-row: var(--ti-input-row); grid-column: 1; justify-self: start; align-self: center; margin-left: 12px;\n color: #64748b; pointer-events: none;\n }\n .ti-disabled .ti-leading-icon { opacity: 0.5; }\n .ti-reveal {\n grid-row: var(--ti-input-row); grid-column: 1; justify-self: end; align-self: center; margin-right: 6px;\n position: relative; display: inline-flex; align-items: center; justify-content: center;\n width: 32px; height: 32px; padding: 0; border: 0; border-radius: 6px; background: transparent;\n color: #64748b; cursor: pointer;\n &:hover:not(:disabled) { color: #1e293b; background: #f1f5f9; }\n &:focus-visible { outline: 2px solid #3b82f6; outline-offset: 0; }\n &:disabled { opacity: 0.5; cursor: not-allowed; }\n /* touch devices / phones: the button is the full 44px height of the input */\n @media (pointer: coarse), (max-width: 480px) { width: 44px; height: 44px; margin-right: 0; }\n }\n\n .ti-input {\n width: 100%; box-sizing: border-box;\n padding: 9px 12px; font-size: 0.875rem; font-family: inherit;\n color: #1e293b; background: #fff;\n border: 1px solid #7c8ba1; border-radius: 8px;\n outline: none; transition: border-color 0.15s, box-shadow 0.15s;\n &::placeholder { color: #64748b; opacity: 1; }\n &:focus {\n border-color: #3b82f6;\n box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);\n }\n &:read-only { background: #f8fafc; cursor: default; }\n }\n\n .ti-error .ti-input {\n border-color: #ef4444;\n &:focus { box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12); }\n }\n\n .ti-disabled .ti-input { opacity: 0.5; cursor: not-allowed; }\n\n .ti-desc { margin: -6px 0 0; font-size: 0.75rem; line-height: 1.4; color: #64748b; }\n .ti-desc-error { color: #dc2626; }\n\n @media (pointer: coarse), (max-width: 480px) { .ti-input { font-size: 1rem; } }\n @media (pointer: coarse), (max-width: 480px) { .ti-input { min-height: 44px; } }\n `],\n})\n/**\n * Text field. Works with `[(ngModel)]` and reactive forms (ControlValueAccessor).\n *\n * Built-in validation (all derived from the inputs below, no host code):\n * - `required` -> \"<label> is required.\" (or \"This field is required.\") when empty.\n * - `maxlength` -> \"Too long (max N characters).\" when the trimmed value is longer (typing is still capped natively,\n * but a value pasted or set programmatically from a loaded record is flagged).\n * - `type=\"email\"` -> \"Please enter a valid email address.\"\n * - `type=\"tel\"` -> formats as a US phone number (like `phoneFormat`) and requires 10 digits (optional leading 1);\n * a value starting with \"+\" is treated as international (8-15 digits). \"Please enter a valid phone number.\"\n * `phoneFormat` on its own (any other type) only formats, it does not validate.\n * - `type=\"number\"` with `min` / `max` / `maxDecimals` -> \"Must be at least X\" / \"Must be at most X\" /\n * \"Use at most N decimal places\"; text that is not a number -> \"Please enter a valid number.\"\n * An EMPTY `type=\"number\"` field with `required` is invalid with \"<label> is required.\" (`invalid()`, `errorMessage()`, the control's `required` error)\n * in both value modes and shows the message only after the user left the field (`showErrors` reveals it at once on an untouched field); the model value for an empty field is untouched by it (string mode '',\n * `valueType=\"number\"` null, a never-edited model keeps what the host wrote). 0 counts as a value.\n * `step` (`type=\"number\"` only) sets how far the spinner arrows / Up / Down keys move the value (`[step]=\"0.01\"` for money);\n * unset = the browser's default of 1. It does not restrict typing.\n * Empty values are valid unless `required`. Disabled / readonly fields are never invalid.\n *\n * Numeric value (opt-in): by default the control value is always the typed STRING, even for `type=\"number\"`.\n * Pass `valueType=\"number\"` together with `type=\"number\"` and the control value (ngModel / FormControl / what is emitted)\n * is `number | null` instead: a valid number -> a JS number ('200' -> 200, '1.5' -> 1.5, '-3' -> -3, '007' -> 7,\n * '1e3' -> 1000), empty -> `null`, text that is not a number -> `null` while the field shows \"Please enter a valid number.\".\n * The number is the parsed value even when it breaks min / max / maxDecimals (the control is then invalid; the host\n * still sees what was typed). `required` is satisfied by 0. `writeValue` accepts a number (shown as its decimal string),\n * null / undefined / NaN (shown empty) or a numeric string. `valueType=\"number\"` with any other `type` logs one dev-mode\n * warning and behaves as `valueType=\"string\"`.\n * Example: `<ui-text-input type=\"number\" valueType=\"number\" label=\"Rate\" [min]=\"0\" [(ngModel)]=\"rate\" />` (`rate: number | null`).\n *\n * Label line extras: project any element with the `uiLabelEnd` attribute to show it at the far end of the label line, e.g.\n * `<ui-text-input label=\"Password\"><a uiLabelEnd href=\"/forgot-password\">Forgot password?</a></ui-text-input>`. Shown only for a field that has a `label`.\n *\n * Validity API (same on every ui input):\n * - The component is an Angular `Validator`, so `ngModel` / `FormControl` report `.invalid` / `.errors`\n * (keys: required, maxlength, email, phone, number, min, max, decimals).\n * - Signals `invalid` and `errorMessage` plus the `invalidChange` output; the token `UiFieldValidity` lets a host collect\n * them with `viewChildren(UiFieldValidity)`.\n * - Messages (built-in and a host `[error]`) are only displayed after the user left THIS field (blur); `[showErrors]=\"true\"` also reveals it on an untouched field.\n * Setting `showErrors` back to false also clears the touched state. A host-provided `[error]` always wins.\n */\nexport class TextInputComponent implements ControlValueAccessor, Validator, UiFieldValidity {\n protected readonly labels = inject(UiLabelsService);\n readonly label = input('');\n /** Accessible name for a field with no visible label (e.g. an inline cell or title input). */\n readonly ariaLabel = input('');\n /**\n * `data-testid` placed on the inner `<input>` (the host `<ui-text-input>` keeps its own attributes). Lets e2e tests `fill()` / `blur()` the\n * field directly instead of `getByTestId('x').locator('input')`. Pass a different id than the host's, e.g. host `data-testid=\"email\"`\n * and `inputTestId=\"email-input\"`. Omitted = no attribute.\n */\n readonly inputTestId = input('');\n /** Native `name` attribute placed on the inner `<input>` (e2e `[name=x]` selectors, browser autofill). None when empty. */\n readonly inputName = input('');\n readonly placeholder = input('');\n /**\n * An optional leading mark shown inside the field, left of the text (e.g. `prefix=\"$\"` for a dollar amount). Hidden unless set; it is\n * decoration only (not part of the value, not read by screen readers), so say the unit in the label too when it matters (\"Amount (USD)\").\n * Meant for a short mark of 1-3 characters.\n */\n readonly prefix = input('');\n /**\n * Library source 2026-11-04, not yet published. An optional icon at the left inside the field: a `<ui-icon>` key, e.g. `leadingIcon=\"search\"` for a search field.\n * Decorative (`aria-hidden`, no pointer events, not part of the value), so give the field a `label` or `ariaLabel`. The input's left padding grows to\n * make room (36px; with a `prefix` the mark moves right of the icon). An unknown key or empty (default) draws nothing and changes nothing.\n */\n readonly leadingIcon = input('');\n /**\n * `type=\"password\"` only: puts an eye button inside the field, at its right end, that shows / hides the typed text (the eye with a slash\n * means \"hidden again\"). Per field, starts hidden; the button is a toggle (`aria-pressed`) named \"Show password\". Ignored for other types.\n */\n readonly revealable = input(false);\n /**\n * `type=\"password\"` only: shows the password requirements checklist under the field (`ui-password-requirements`) once the user has typed\n * (it hides again when the host clears the field, e.g. after a successful change). Each rule turns green with a check when satisfied. Off by default; ignored for other types.\n */\n readonly passwordRequirements = input(false);\n /** Rules for `passwordRequirements`; default = the library's five rules (8+ characters, upper, lower, digit, special). */\n readonly passwordRules = input<readonly PasswordRule[] | undefined>(undefined);\n readonly type = input<'text' | 'email' | 'password' | 'tel' | 'url' | 'number'>('text');\n readonly maxlength = input<number | undefined>(undefined);\n readonly required = input(false);\n readonly autocomplete = input('off');\n /**\n * Which on-screen keyboard a phone shows (`numeric` = digits only, e.g. ZIP / area code; `decimal`, `tel`, `email`, `url`,\n * `search`, `text`, `none`). Empty (default) = the browser's default for the field, except `type=\"tel\"`, which keeps `tel`.\n * It only picks the keyboard; it does not restrict what can be typed or pasted.\n */\n readonly inputmode = input<'' | 'none' | 'text' | 'decimal' | 'numeric' | 'tel' | 'search' | 'email' | 'url'>('');\n readonly readonly = input(false);\n readonly hint = input('');\n /** Id(s) of an external element that also describes this control (e.g. one shared error text for a group of fields). Space separated; MERGED after the control's own hint / error id in `aria-describedby`, never replacing it. Empty = unchanged. */\n readonly ariaDescribedBy = input('');\n /** Marks the control `aria-invalid` although no message is shown in the field itself (the host shows its error elsewhere, e.g. one alert for a group of fields; point `ariaDescribedBy` at it). Default false = unchanged. */\n readonly ariaInvalid = input(false);\n readonly error = input('');\n /** When true, automatically formats the value as a US phone number as the user types. */\n readonly phoneFormat = input(false);\n /** `type=\"number\"` only: smallest allowed value. */\n readonly min = input<number | undefined>(undefined);\n /** `type=\"number\"` only: largest allowed value. */\n readonly max = input<number | undefined>(undefined);\n /** `type=\"number\"` only: most digits allowed after the decimal point. */\n readonly maxDecimals = input<number | undefined>(undefined);\n /**\n * `type=\"number\"` only: how much the browser's spinner arrows and the Up / Down keys change the value (e.g. `0.01` for money).\n * Leave it unset for the browser's default step of 1. A value that is not a number above 0 is ignored (also the default step).\n * It only picks the increment; it does not restrict what can be typed (use `maxDecimals` for that).\n */\n readonly step = input<number | undefined>(undefined);\n /**\n * What the control value is. `'string'` (default) = the typed text. `'number'` = `number | null`; requires `type=\"number\"`\n * (otherwise a dev-mode warning is logged once and string behaviour is used).\n */\n readonly valueType = input<'string' | 'number'>('string');\n /**\n * Optional text filter/mask applied to every typed or pasted value: `(raw) => cleaned`, e.g. `v => v.replace(/\\D/g, '').slice(0, 9)`.\n * The result is what the box shows and what the model gets (the caret moves to the end when the text was changed). Unset (default)\n * = the typed text is used as is. Not applied to values the host writes (`writeValue`), and for `type=\"tel\"` / `phoneFormat` the\n * phone formatting runs first and the formatter then sees its result.\n */\n readonly formatter = input<((raw: string) => string) | undefined>(undefined);\n /**\n * Whole numbers only (default off). Every typed or pasted value is cut at its first `.`, `e` or `E` (`2.7` -> `2`, `1e1` -> `1`, `12` stays),\n * the same filter as cremo's `wholeNumber`. It runs after the phone formatting and before a host `formatter`. It also picks the numeric\n * on-screen keyboard (`inputmode=\"numeric\"`), the native `step` 1 and `maxDecimals` 0 for `type=\"number\"` - each only while the host has not\n * set `inputmode` / `step` / `maxDecimals` itself. Values the host writes (`writeValue`) are shown as they are (a decimal there still fails\n * the 0-decimals rule).\n */\n readonly integer = input(false);\n /** The host's \"tried to submit\" flag (e.g. after a failed Save click). `true` reveals the message of an untouched field at once (the field also shows it after the user left THIS field); switching it from true back to false forgets that the field was left. */\n readonly showErrors = input(false);\n\n /** Emits the new value when the USER changes it (typing, paste, autofill) - the same value the form control receives. Not emitted for values the host writes. */\n readonly valueChange = output<string | number | null>();\n readonly focused = output<void>();\n readonly blurred = output<void>();\n /** Emits whenever the field becomes invalid / valid. */\n readonly invalidChange = output<boolean>();\n\n /**\n * The `[disabled]` input. Public on purpose: a `protected` input makes `[disabled]=\"x\"` in a host template fail strict template\n * type-checking (TS2445: Angular checks the field the alias points at). The field is disabled when this OR the form control\n * (`setDisabledState`, e.g. `FormControl.disable()`) says so.\n */\n readonly _disabledInput = input(false, { alias: 'disabled' });\n private readonly _cvaDisabled = signal(false);\n protected readonly disabled = computed(() => this._disabledInput() || this._cvaDisabled());\n\n protected readonly _value = signal('');\n private readonly _reveal = createFieldReveal(this.showErrors);\n /** Path of the leading icon, or null when `leadingIcon` is empty or not a known icon key. */\n protected readonly _leadingD = computed((): string | null => {\n const key = this.leadingIcon().trim();\n return key ? iconPath(key) ?? null : null;\n });\n /**\n * Left padding that makes room for the prefix (its width in `ch` plus the field's own 12px and a 6px gap) and/or the leading icon (a 16px icon\n * plus an 8px gap, so 36px from the edge); none without either.\n */\n protected readonly _prefixPadding = computed(() => {\n const icon = !!this._leadingD();\n if (this.prefix()) return icon ? `calc(36px + ${this.prefix().length}ch + 6px)` : `calc(12px + ${this.prefix().length}ch + 6px)`;\n return icon ? '36px' : null;\n });\n private readonly _fieldEl = viewChild<ElementRef<HTMLInputElement>>('field');\n /** True when the control value is a number: `valueType=\"number\"` on a `type=\"number\"` field. */\n private readonly _numeric = computed(() => this.valueType() === 'number' && this.type() === 'number');\n /** The native `step` attribute: only for `type=\"number\"` and only for a finite number above 0; otherwise none (the browser's step of 1). */\n protected readonly _stepAttr = computed(() => {\n const step = this.step();\n if (this.type() === 'number' && typeof step === 'number' && Number.isFinite(step) && step > 0) return String(step);\n return this.type() === 'number' && this.integer() ? '1' : null;\n });\n protected readonly _revealable = computed(() => this.revealable() && this.type() === 'password');\n protected readonly _shown = signal(false);\n protected readonly _inputType = computed(() => this._revealable() && this._shown() ? 'text' : this.type());\n protected readonly _eyePath = iconPath('view')!;\n protected readonly _eyeOffPath = iconPath('view-off')!;\n protected readonly _showRequirements = computed(() => this.passwordRequirements() && this.type() === 'password' && this._typed());\n /** `aria-describedby`: the error / hint text and, while the requirements checklist is shown, the checklist (so a screen reader reads the rules with the field). */\n protected readonly _describedBy = computed(() => {\n const ids = [(this._activeError() || this.hint()) ? this._inputId + '-desc' : '', this._showRequirements() ? this._inputId + '-req' : ''].filter(Boolean);\n return mergeDescribedBy(ids.join(' '), this.ariaDescribedBy());\n });\n /** True once the user typed in the field; a host-written empty value (a form reset) puts it back to false. */\n private readonly _typed = signal(false);\n protected readonly _defaultRules = DEFAULT_PASSWORD_RULES;\n private _warned = false;\n private readonly _formatting = computed(() => this.phoneFormat() || this.type() === 'tel');\n /** A host-written phone text that formatting cut short (13 digits -> 10): validity is judged on what the host wrote, so the message matches the control's `phone` error. Cleared by typing. */\n private readonly _hostText = signal<string | null>(null);\n private readonly _issue = computed(() => this._check(this._hostText() ?? this._value()));\n /** True while the value breaks a built-in rule or the host passed an `[error]`. */\n readonly invalid = computed(() => !!this.error() || !!this._issue());\n /** Message of the first broken built-in rule ('' when valid), shown or not. */\n readonly errorMessage = computed(() => this._issue()?.message ?? '');\n protected readonly _activeError = computed(() => this._reveal.revealed() ? (this.error() || this.errorMessage()) : '');\n protected readonly _inputId = `ti-${Math.random().toString(36).slice(2, 8)}`;\n\n private static readonly _EMAIL_RE = /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/;\n\n /**\n * Library source 2026-11-04, not yet published. Puts the keyboard focus on the inner `<input>` (e.g. after a panel opens or a search is cleared):\n * `fieldRef.focus()` via `viewChild(TextInputComponent)`. Same options as the DOM method (`{ preventScroll: true }`). Safe at any time: before the\n * view exists, or on a disabled field, it does nothing and never throws.\n */\n focus(options?: FocusOptions): void {\n this._fieldEl()?.nativeElement.focus(options);\n }\n\n /**\n * Library source 2026-11-05, not yet published. Caret access for hosts (e.g. an \"insert variable at the cursor\" chip row), so a host never\n * queries the inner element. Reach it with `viewChild(TextInputComponent)`. All three methods are safe at any time: before the view exists, on a\n * disabled / read-only field, or for a type that has no selection API (email, number) they do nothing / return null and never throw.\n *\n * `getSelection()` -> `{ start, end }` of the selected text (equal when only a caret) or `null` when it cannot be read.\n */\n getSelection(): { start: number; end: number } | null {\n const el = this._fieldEl()?.nativeElement;\n if (!el) return null;\n try {\n if (el.selectionStart === null || el.selectionEnd === null) return null;\n return { start: el.selectionStart, end: el.selectionEnd };\n } catch { return null; }\n }\n\n /** Selects `start`..`end` (a caret when `end` is left out); values are clamped to the text. Does nothing where the selection API is unavailable. */\n setSelection(start: number, end: number = start): void {\n const el = this._fieldEl()?.nativeElement;\n if (!el) return;\n const max = el.value.length;\n const from = Math.min(Math.max(0, start), max);\n const to = Math.min(Math.max(from, end), max);\n try { el.setSelectionRange(from, to); } catch { /* type without a selection */ }\n }\n\n /**\n * Inserts `text` at the caret, replacing any selected text, and puts the caret right after it. The change goes through the normal typing path\n * (formatting, `ngModel` / form control, `valueChange`), exactly as if the user had typed it, and `maxlength` caps it like typing does (the\n * part that does not fit is not inserted). With no caret known (a type without a selection API) the text is appended. Does nothing on a\n * disabled or read-only field or for an empty `text`.\n */\n insertAtCaret(text: string): void {\n const el = this._fieldEl()?.nativeElement;\n if (!el || el.disabled || el.readOnly || !text) return;\n const value = el.value;\n let from = value.length;\n let to = value.length;\n try {\n if (el.selectionStart !== null && el.selectionEnd !== null) { from = el.selectionStart; to = el.selectionEnd; }\n } catch { /* type without a selection: append */ }\n const max = this.maxlength();\n const room = max === undefined ? text.length : max - (value.length - (to - from));\n const insert = text.slice(0, Math.max(0, room));\n if (!insert) return;\n el.value = value.slice(0, from) + insert + value.slice(to);\n const caret = from + insert.length;\n try { el.setSelectionRange(caret, caret); } catch { /* type without a selection */ }\n el.dispatchEvent(new Event('input', { bubbles: true }));\n }\n\n private _onChange = (_: string | number | null) => {};\n private _onTouched = () => {};\n private _onValidatorChange = () => {};\n\n constructor() {\n effect(() => { this.invalidChange.emit(this.invalid()); });\n effect(() => {\n if (this.valueType() === 'number' && this.type() !== 'number' && !this._warned && isDevMode()) {\n this._warned = true;\n console.warn('ui-text-input: valueType=\"number\" needs type=\"number\"');\n }\n });\n }\n\n /** Re-run the form control's validation when a rule input (required, maxlength, min, options, ...) changes. */\n ngOnChanges() { this._onValidatorChange(); }\n\n writeValue(val: string | number | null | undefined) {\n const text = val == null || (typeof val === 'number' && Number.isNaN(val)) && this._numeric() ? '' : String(val);\n const shown = this._formatting() ? TextInputComponent._formatPhone(text) : text;\n this._value.set(shown);\n this._hostText.set(this._formatting() && shown !== text && this.type() === 'tel' ? text : null);\n if (text === '') this._typed.set(false);\n }\n validate(control: AbstractControl): ValidationErrors | null {\n const v = control.value;\n let text = v == null ? '' : String(v);\n if (this._numeric()) {\n // Numeric mode validates the TYPED text (the same source as the displayed message), so '1.250' with maxDecimals=2 is\n // invalid in the field AND on the control even though the control holds the number 1.25. The typed text is used only\n // while it still describes the control value (it parses to it, or both are \"not a number\"); otherwise (a value set\n // without a view update, or no text yet) the control value itself is validated.\n const typed = this._value();\n if (typed.trim() && TextInputComponent._parse(typed) === (typeof v === 'number' && Number.isFinite(v) ? v : null)) text = typed;\n }\n return issueToErrors(this._check(text));\n }\n registerOnValidatorChange(fn: () => void) { this._onValidatorChange = fn; }\n registerOnChange(fn: (v: string | number | null) => void) { this._onChange = fn; }\n registerOnTouched(fn: () => void) { this._onTouched = fn; }\n setDisabledState(d: boolean) { this._cvaDisabled.set(d); }\n\n protected onInput(event: Event) {\n this._typed.set(true);\n const input = event.target as HTMLInputElement;\n const raw = input.value;\n // where the caret was before the value is rewritten (type=\"email\" / \"number\" inputs throw on the selection API)\n let caretBefore: number | null = null;\n try { caretBefore = input.selectionStart; } catch { /* type without a selection */ }\n let val = this._formatting() ? TextInputComponent._formatPhone(raw) : raw;\n if (this.integer()) val = val.replace(/[.eE].*$/, '');\n const format = this.formatter();\n if (format) val = format(val);\n this._hostText.set(null);\n this._value.set(val);\n const emitted = this._numeric() ? TextInputComponent._parse(val) : val;\n this._onChange(emitted);\n this.valueChange.emit(emitted);\n // A host may rewrite the value while it handles the change (a mask that drops letters calls writeValue). When the model lands on the\n // text this field showed BEFORE the keystroke, the `[value]` binding sees no change and the browser would keep the typed character.\n // The box always shows the model: write it back only when the two differ, so a plain keystroke is never touched.\n const shown = this._value();\n if (input.value !== shown) {\n input.value = shown;\n // Writing the value moves the caret to the end in every browser except some mobile ones: set it explicitly where the type allows it\n // (number / email inputs throw on setSelectionRange). A phone number edited in the middle keeps the caret after the same digit\n // (the formatting inserts or removes \"(\", \")\", \" \" and \"-\"); every other rewrite puts it at the end.\n const caret = this._formatting() && !format && caretBefore !== null && caretBefore < raw.length\n ? TextInputComponent._caretAfterDigits(raw, caretBefore, shown) : shown.length;\n try { input.setSelectionRange(caret, caret); } catch { /* type without a selection */ }\n }\n }\n\n /**\n * Position in `formatted` for a caret that was at `caret` in `raw`: right after the same number of digits (the leading country-code 1 of an\n * 11-digit number is dropped by the formatting). When the character before the caret was a separator, the caret also moves over the separators\n * that follow that digit, so deleting the first digit of a group does not throw the caret back in front of \") \".\n */\n private static _caretAfterDigits(raw: string, caret: number, formatted: string): number {\n let n = (raw.slice(0, caret).match(/\\d/g) ?? []).length;\n const all = raw.replace(/\\D/g, '');\n if (!raw.startsWith('+') && all.length === 11 && all.startsWith('1')) n = Math.max(0, n - 1);\n let pos = 0;\n if (n > 0) {\n let seen = 0;\n pos = formatted.length;\n for (let i = 0; i < formatted.length; i++) {\n if (/\\d/.test(formatted[i]) && ++seen === n) { pos = i + 1; break; }\n }\n }\n if (caret > 0 && !/\\d/.test(raw[caret - 1])) while (pos < formatted.length && !/\\d/.test(formatted[pos])) pos++;\n return pos;\n }\n\n /** Typed text -> number, or null when blank / not a finite number. */\n private static _parse(text: string): number | null {\n const t = text.trim();\n if (!t) return null;\n const n = Number(t);\n return Number.isFinite(n) ? n : null;\n }\n\n protected onFocus() { this.focused.emit(); }\n protected onBlur() {\n this._onTouched();\n this.blurred.emit();\n this._reveal.touched.set(true);\n }\n\n /** First broken built-in rule for `value`, or null. */\n private _check(value: string): FieldIssue | null {\n if (this.disabled() || this.readonly()) return null;\n const text = value.trim();\n if (!text) return this.required() ? requiredIssue(this.label()) : null;\n const tooLong = maxLengthIssue(text, this.maxlength());\n if (tooLong) return tooLong;\n switch (this.type()) {\n case 'email':\n return TextInputComponent._EMAIL_RE.test(text) ? null : { key: 'email', message: uiText('validation.email') };\n case 'tel':\n return TextInputComponent._validPhone(text) ? null : { key: 'phone', message: uiText('validation.phone') };\n case 'number':\n return this._checkNumber(text);\n default:\n return null;\n }\n }\n\n private _checkNumber(text: string): FieldIssue | null {\n const n = Number(text);\n if (!Number.isFinite(n)) return { key: 'number', message: uiText('validation.number') };\n const min = this.min(), max = this.max(), decimals = this.maxDecimals() ?? (this.integer() ? 0 : undefined);\n if (min != null && n < min) return { key: 'min', message: uiText('validation.min', { min }), value: { min, actual: n } };\n if (max != null && n > max) return { key: 'max', message: uiText('validation.max', { max }), value: { max, actual: n } };\n if (decimals != null && !/e/i.test(text) && (text.split('.')[1]?.length ?? 0) > decimals) {\n return { key: 'decimals', message: uiText(decimals === 1 ? 'validation.decimals_one' : 'validation.decimals_other', { count: decimals }), value: { maxDecimals: decimals } };\n }\n return null;\n }\n\n private static _validPhone(text: string): boolean {\n const digits = text.replace(/\\D/g, '');\n if (text.startsWith('+')) return digits.length >= 8 && digits.length <= 15;\n return digits.length === 10 || (digits.length === 11 && digits.startsWith('1'));\n }\n\n static _formatPhone(raw: string): string {\n if (!raw) return '';\n if (raw.startsWith('+')) return raw; // leave international numbers alone\n const digits = raw.replace(/\\D/g, '');\n const d = digits.startsWith('1') && digits.length === 11 ? digits.slice(1) : digits.slice(0, 10);\n if (d.length <= 3) return d;\n if (d.length <= 6) return `(${d.slice(0, 3)}) ${d.slice(3)}`;\n return `(${d.slice(0, 3)}) ${d.slice(3, 6)}-${d.slice(6)}`;\n }\n}\n"],"mappings":";;;;;;AAqMA,IAAa,qBAAb,MAAa,mBAAkB;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AAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,SAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,YAAA,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,aAAA;EAAA,CAAA;EAAA,SAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,SAAA;EAAA,CAAA;EAAA,SAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,SAAA;EAAA,CAAA;EAAA,eAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,eAAA;EAAA,CAAA;EAAA,gBAAA,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,SAAO,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA"}
@@ -14,6 +14,7 @@ var TextareaInputComponent = class TextareaInputComponent {
14
14
  this.hint = input("", ...ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []);
15
15
  this.ariaDescribedBy = input("", ...ngDevMode ? [{ debugName: "ariaDescribedBy" }] : /* istanbul ignore next */ []);
16
16
  this.hintAsDescription = input(false, ...ngDevMode ? [{ debugName: "hintAsDescription" }] : /* istanbul ignore next */ []);
17
+ this.hintBelow = input(false, ...ngDevMode ? [{ debugName: "hintBelow" }] : /* istanbul ignore next */ []);
17
18
  this.error = input("", ...ngDevMode ? [{ debugName: "error" }] : /* istanbul ignore next */ []);
18
19
  this.monospace = input(false, ...ngDevMode ? [{ debugName: "monospace" }] : /* istanbul ignore next */ []);
19
20
  this.showErrors = input(false, ...ngDevMode ? [{ debugName: "showErrors" }] : /* istanbul ignore next */ []);
@@ -24,15 +25,8 @@ var TextareaInputComponent = class TextareaInputComponent {
24
25
  this._cvaDisabled = signal(false, ...ngDevMode ? [{ debugName: "_cvaDisabled" }] : /* istanbul ignore next */ []);
25
26
  this.disabled = computed(() => this._disabledInput() || this._cvaDisabled(), ...ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []);
26
27
  this._value = signal("", ...ngDevMode ? [{ debugName: "_value" }] : /* istanbul ignore next */ []);
27
- this._unlabelledHint = computed(() => !this.label() && !!this.hint(), ...ngDevMode ? [{ debugName: "_unlabelledHint" }] : /* istanbul ignore next */ []);
28
28
  this._describedBy = computed(() => mergeDescribedBy(this._ownDescribedBy(), this.ariaDescribedBy()), ...ngDevMode ? [{ debugName: "_describedBy" }] : /* istanbul ignore next */ []);
29
- this._ownDescribedBy = computed(() => {
30
- if (!this.hintAsDescription()) return this._activeError() ? this._inputId + "-desc" : this._unlabelledHint() ? this._inputId + "-hint" : null;
31
- const ids = [];
32
- if (this.hint() && (this.label() || !this._activeError())) ids.push(this._inputId + "-hint");
33
- if (this._activeError()) ids.push(this._inputId + "-desc");
34
- return ids.length ? ids.join(" ") : null;
35
- }, ...ngDevMode ? [{ debugName: "_ownDescribedBy" }] : /* istanbul ignore next */ []);
29
+ this._ownDescribedBy = computed(() => this._activeError() ? this._inputId + "-desc" : this.hint() ? this._inputId + "-hint" : null, ...ngDevMode ? [{ debugName: "_ownDescribedBy" }] : /* istanbul ignore next */ []);
36
30
  this._reveal = createFieldReveal(this.showErrors);
37
31
  this._issue = computed(() => this._check(this._value()), ...ngDevMode ? [{ debugName: "_issue" }] : /* istanbul ignore next */ []);
38
32
  this.invalid = computed(() => !!this.error() || !!this._issue(), ...ngDevMode ? [{ debugName: "invalid" }] : /* istanbul ignore next */ []);
@@ -231,6 +225,13 @@ var TextareaInputComponent = class TextareaInputComponent {
231
225
  isRequired: false,
232
226
  transformFunction: null
233
227
  },
228
+ hintBelow: {
229
+ classPropertyName: "hintBelow",
230
+ publicName: "hintBelow",
231
+ isSignal: true,
232
+ isRequired: false,
233
+ transformFunction: null
234
+ },
234
235
  error: {
235
236
  classPropertyName: "error",
236
237
  publicName: "error",
@@ -287,18 +288,7 @@ var TextareaInputComponent = class TextareaInputComponent {
287
288
  <div class="ta-field" [class.ta-error]="_activeError()" [class.ta-disabled]="disabled()">
288
289
  @if (label()) {
289
290
  <div class="ta-label-row">
290
- @if (hintAsDescription()) {
291
- <div class="ta-head">
292
- <label class="ta-label" [for]="_inputId">{{ label() }}@if (required()) { <span class="ta-required" aria-hidden="true">*</span> }</label>
293
- @if (hint()) { <span class="ta-hint-inline" [id]="_inputId + '-hint'">({{ hint() }})</span> }
294
- </div>
295
- } @else {
296
- <label class="ta-label" [for]="_inputId">
297
- {{ label() }}
298
- @if (required()) { <span class="ta-required" aria-hidden="true">*</span> }
299
- @if (hint()) { <span class="ta-hint-inline">({{ hint() }})</span> }
300
- </label>
301
- }
291
+ <label class="ta-label" [for]="_inputId">{{ label() }}@if (required()) { <span class="ta-required" aria-hidden="true">*</span> }</label>
302
292
  <ng-content select="[uiLabelEnd]" />
303
293
  </div>
304
294
  }
@@ -320,7 +310,7 @@ var TextareaInputComponent = class TextareaInputComponent {
320
310
  (focus)="onFocus()"
321
311
  (blur)="onBlur()"
322
312
  ></textarea>
323
- @if (!_activeError() && _unlabelledHint()) {
313
+ @if (!_activeError() && hint()) {
324
314
  <p class="ta-desc" [id]="_inputId + '-hint'">{{ hint() }}</p>
325
315
  }
326
316
  @if (_activeError()) {
@@ -329,7 +319,7 @@ var TextareaInputComponent = class TextareaInputComponent {
329
319
  </div>
330
320
  `,
331
321
  isInline: true,
332
- styles: [":host{display:block}.ta-field{display:flex;flex-direction:column;gap:6px}.ta-label-row{display:flex;align-items:center;justify-content:space-between;gap:8px}.ta-head{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:4px;row-gap:2px}.ta-label{font-size:.8125rem;font-weight:600;color:#374151;line-height:1}.ta-required{color:#dc2626;margin-left:2px}.ta-hint-inline{font-size:.75rem;color:#64748b;font-weight:400;margin-left:4px}.ta-head .ta-hint-inline{margin-left:0;line-height:1}.ta-input{width:100%;box-sizing:border-box;padding:9px 12px;font-size:.875rem;font-family:inherit;color:#1e293b;background:#fff;border:1px solid #7c8ba1;border-radius:8px;outline:none;resize:vertical;transition:border-color .15s,box-shadow .15s}.ta-input::placeholder{color:#64748b;opacity:1}.ta-input:focus{border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61f}.ta-input:read-only{background:#f8fafc;cursor:default}.ta-input.ta-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,Liberation Mono,monospace}@media(min-width:481px)and (pointer:fine){.ta-input.ta-mono{font-size:.8125rem}}.ta-error .ta-input{border-color:#ef4444}.ta-error .ta-input:focus{box-shadow:0 0 0 3px #ef44441f}.ta-disabled .ta-input{opacity:.5;cursor:not-allowed}.ta-desc{margin:0;font-size:.75rem;line-height:1.4;color:#64748b}.ta-desc-error{color:#dc2626}@media(pointer:coarse),(max-width:480px){.ta-input{font-size:1rem}}\n"],
322
+ styles: [":host{display:block}.ta-field{display:flex;flex-direction:column;gap:6px}.ta-label-row{display:flex;align-items:center;justify-content:space-between;gap:8px}.ta-label{font-size:.8125rem;font-weight:600;color:#374151;line-height:1}.ta-required{color:#dc2626;margin-left:2px}.ta-input{width:100%;box-sizing:border-box;padding:9px 12px;font-size:.875rem;font-family:inherit;color:#1e293b;background:#fff;border:1px solid #7c8ba1;border-radius:8px;outline:none;resize:vertical;transition:border-color .15s,box-shadow .15s}.ta-input::placeholder{color:#64748b;opacity:1}.ta-input:focus{border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61f}.ta-input:read-only{background:#f8fafc;cursor:default}.ta-input.ta-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,Liberation Mono,monospace}@media(min-width:481px)and (pointer:fine){.ta-input.ta-mono{font-size:.8125rem}}.ta-error .ta-input{border-color:#ef4444}.ta-error .ta-input:focus{box-shadow:0 0 0 3px #ef44441f}.ta-disabled .ta-input{opacity:.5;cursor:not-allowed}.ta-desc{margin:-6px 0 0;font-size:.75rem;line-height:1.4;color:#64748b}.ta-desc-error{color:#dc2626}@media(pointer:coarse),(max-width:480px){.ta-input{font-size:1rem}}\n"],
333
323
  changeDetection: i0.ChangeDetectionStrategy.OnPush
334
324
  });
335
325
  }
@@ -365,18 +355,7 @@ i0.ɵɵngDeclareClassMetadata({
365
355
  <div class="ta-field" [class.ta-error]="_activeError()" [class.ta-disabled]="disabled()">
366
356
  @if (label()) {
367
357
  <div class="ta-label-row">
368
- @if (hintAsDescription()) {
369
- <div class="ta-head">
370
- <label class="ta-label" [for]="_inputId">{{ label() }}@if (required()) { <span class="ta-required" aria-hidden="true">*</span> }</label>
371
- @if (hint()) { <span class="ta-hint-inline" [id]="_inputId + '-hint'">({{ hint() }})</span> }
372
- </div>
373
- } @else {
374
- <label class="ta-label" [for]="_inputId">
375
- {{ label() }}
376
- @if (required()) { <span class="ta-required" aria-hidden="true">*</span> }
377
- @if (hint()) { <span class="ta-hint-inline">({{ hint() }})</span> }
378
- </label>
379
- }
358
+ <label class="ta-label" [for]="_inputId">{{ label() }}@if (required()) { <span class="ta-required" aria-hidden="true">*</span> }</label>
380
359
  <ng-content select="[uiLabelEnd]" />
381
360
  </div>
382
361
  }
@@ -398,7 +377,7 @@ i0.ɵɵngDeclareClassMetadata({
398
377
  (focus)="onFocus()"
399
378
  (blur)="onBlur()"
400
379
  ></textarea>
401
- @if (!_activeError() && _unlabelledHint()) {
380
+ @if (!_activeError() && hint()) {
402
381
  <p class="ta-desc" [id]="_inputId + '-hint'">{{ hint() }}</p>
403
382
  }
404
383
  @if (_activeError()) {
@@ -406,7 +385,7 @@ i0.ɵɵngDeclareClassMetadata({
406
385
  }
407
386
  </div>
408
387
  `,
409
- styles: [":host{display:block}.ta-field{display:flex;flex-direction:column;gap:6px}.ta-label-row{display:flex;align-items:center;justify-content:space-between;gap:8px}.ta-head{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:4px;row-gap:2px}.ta-label{font-size:.8125rem;font-weight:600;color:#374151;line-height:1}.ta-required{color:#dc2626;margin-left:2px}.ta-hint-inline{font-size:.75rem;color:#64748b;font-weight:400;margin-left:4px}.ta-head .ta-hint-inline{margin-left:0;line-height:1}.ta-input{width:100%;box-sizing:border-box;padding:9px 12px;font-size:.875rem;font-family:inherit;color:#1e293b;background:#fff;border:1px solid #7c8ba1;border-radius:8px;outline:none;resize:vertical;transition:border-color .15s,box-shadow .15s}.ta-input::placeholder{color:#64748b;opacity:1}.ta-input:focus{border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61f}.ta-input:read-only{background:#f8fafc;cursor:default}.ta-input.ta-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,Liberation Mono,monospace}@media(min-width:481px)and (pointer:fine){.ta-input.ta-mono{font-size:.8125rem}}.ta-error .ta-input{border-color:#ef4444}.ta-error .ta-input:focus{box-shadow:0 0 0 3px #ef44441f}.ta-disabled .ta-input{opacity:.5;cursor:not-allowed}.ta-desc{margin:0;font-size:.75rem;line-height:1.4;color:#64748b}.ta-desc-error{color:#dc2626}@media(pointer:coarse),(max-width:480px){.ta-input{font-size:1rem}}\n"]
388
+ styles: [":host{display:block}.ta-field{display:flex;flex-direction:column;gap:6px}.ta-label-row{display:flex;align-items:center;justify-content:space-between;gap:8px}.ta-label{font-size:.8125rem;font-weight:600;color:#374151;line-height:1}.ta-required{color:#dc2626;margin-left:2px}.ta-input{width:100%;box-sizing:border-box;padding:9px 12px;font-size:.875rem;font-family:inherit;color:#1e293b;background:#fff;border:1px solid #7c8ba1;border-radius:8px;outline:none;resize:vertical;transition:border-color .15s,box-shadow .15s}.ta-input::placeholder{color:#64748b;opacity:1}.ta-input:focus{border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61f}.ta-input:read-only{background:#f8fafc;cursor:default}.ta-input.ta-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,Liberation Mono,monospace}@media(min-width:481px)and (pointer:fine){.ta-input.ta-mono{font-size:.8125rem}}.ta-error .ta-input{border-color:#ef4444}.ta-error .ta-input:focus{box-shadow:0 0 0 3px #ef44441f}.ta-disabled .ta-input{opacity:.5;cursor:not-allowed}.ta-desc{margin:-6px 0 0;font-size:.75rem;line-height:1.4;color:#64748b}.ta-desc-error{color:#dc2626}@media(pointer:coarse),(max-width:480px){.ta-input{font-size:1rem}}\n"]
410
389
  }]
411
390
  }],
412
391
  ctorParameters: () => [],
@@ -491,6 +470,14 @@ i0.ɵɵngDeclareClassMetadata({
491
470
  required: false
492
471
  }]
493
472
  }],
473
+ hintBelow: [{
474
+ type: i0.Input,
475
+ args: [{
476
+ isSignal: true,
477
+ alias: "hintBelow",
478
+ required: false
479
+ }]
480
+ }],
494
481
  error: [{
495
482
  type: i0.Input,
496
483
  args: [{
@@ -1 +1 @@
1
- {"version":3,"file":"forgeroute-ui-textarea-input.mjs","names":[],"sources":["../../../projects/forgeroute-ui/textarea-input/src/lib/textarea-input/textarea-input.component.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, ElementRef, inject, input, output, signal, computed, effect, forwardRef } from '@angular/core';\nimport { AbstractControl, ControlValueAccessor, NG_VALIDATORS, NG_VALUE_ACCESSOR, ValidationErrors, Validator } from '@angular/forms';\nimport { FieldIssue, UiFieldValidity, createFieldReveal, mergeDescribedBy, issueToErrors, maxLengthIssue, requiredIssue } from '@forgeroute/ui/core';\n\n@Component({\n selector: 'ui-textarea-input',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => TextareaInputComponent),\n multi: true,\n }, {\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => TextareaInputComponent),\n multi: true,\n }, {\n provide: UiFieldValidity,\n useExisting: forwardRef(() => TextareaInputComponent),\n }],\n template: `\n <div class=\"ta-field\" [class.ta-error]=\"_activeError()\" [class.ta-disabled]=\"disabled()\">\n @if (label()) {\n <div class=\"ta-label-row\">\n @if (hintAsDescription()) {\n <div class=\"ta-head\">\n <label class=\"ta-label\" [for]=\"_inputId\">{{ label() }}@if (required()) { <span class=\"ta-required\" aria-hidden=\"true\">*</span> }</label>\n @if (hint()) { <span class=\"ta-hint-inline\" [id]=\"_inputId + '-hint'\">({{ hint() }})</span> }\n </div>\n } @else {\n <label class=\"ta-label\" [for]=\"_inputId\">\n {{ label() }}\n @if (required()) { <span class=\"ta-required\" aria-hidden=\"true\">*</span> }\n @if (hint()) { <span class=\"ta-hint-inline\">({{ hint() }})</span> }\n </label>\n }\n <ng-content select=\"[uiLabelEnd]\" />\n </div>\n }\n <textarea\n class=\"ta-input\"\n [class.ta-mono]=\"monospace()\"\n [id]=\"_inputId\"\n [placeholder]=\"placeholder()\"\n [value]=\"_value()\"\n [disabled]=\"disabled()\"\n [readOnly]=\"readonly()\"\n [rows]=\"rows()\"\n [attr.maxlength]=\"maxlength() ?? null\"\n [attr.required]=\"required() || null\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-invalid]=\"_activeError() ? 'true' : null\"\n [attr.aria-describedby]=\"_describedBy()\"\n (input)=\"onInput($event)\"\n (focus)=\"onFocus()\"\n (blur)=\"onBlur()\"\n ></textarea>\n @if (!_activeError() && _unlabelledHint()) {\n <p class=\"ta-desc\" [id]=\"_inputId + '-hint'\">{{ hint() }}</p>\n }\n @if (_activeError()) {\n <p class=\"ta-desc ta-desc-error\" [id]=\"_inputId + '-desc'\" role=\"alert\">{{ _activeError() }}</p>\n }\n </div>\n `,\n styles: [`\n :host { display: block; }\n\n .ta-field { display: flex; flex-direction: column; gap: 6px; }\n\n /* Label line: the label, plus an optional host element marked uiLabelEnd pushed to the far end (e.g. an \"Insert variable\" button). */\n .ta-label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }\n\n .ta-head { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 4px; row-gap: 2px; }\n .ta-label {\n font-size: 0.8125rem; font-weight: 600; color: #374151; line-height: 1;\n }\n .ta-required { color: #dc2626; margin-left: 2px; }\n .ta-hint-inline { font-size: 0.75rem; color: #64748b; font-weight: 400; margin-left: 4px; }\n .ta-head .ta-hint-inline { margin-left: 0; line-height: 1; }\n\n .ta-input {\n width: 100%; box-sizing: border-box;\n padding: 9px 12px; font-size: 0.875rem; font-family: inherit;\n color: #1e293b; background: #fff;\n border: 1px solid #7c8ba1; border-radius: 8px;\n outline: none; resize: vertical;\n transition: border-color 0.15s, box-shadow 0.15s;\n &::placeholder { color: #64748b; opacity: 1; }\n &:focus {\n border-color: #3b82f6;\n box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);\n }\n &:read-only { background: #f8fafc; cursor: default; }\n }\n\n /* Opt-in code/markup look. System monospace stack (ui-monospace = Safari/iOS, Menlo = macOS, Consolas = Windows). The size\n tweak is desktop-only so phones keep the 16px field size that stops iOS from zooming into the field. */\n .ta-input.ta-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace; }\n @media (min-width: 481px) and (pointer: fine) { .ta-input.ta-mono { font-size: 0.8125rem; } }\n\n .ta-error .ta-input {\n border-color: #ef4444;\n &:focus { box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12); }\n }\n\n .ta-disabled .ta-input { opacity: 0.5; cursor: not-allowed; }\n\n .ta-desc { margin: 0; font-size: 0.75rem; line-height: 1.4; color: #64748b; }\n .ta-desc-error { color: #dc2626; }\n\n @media (pointer: coarse), (max-width: 480px) { .ta-input { font-size: 1rem; } }\n `],\n})\n/**\n * Multi-line text field (ControlValueAccessor).\n * Built-in validation: `required` -> \"<label> is required.\"; `maxlength` -> \"Too long (max N characters).\" (also for a\n * loaded value longer than the limit; trimmed length). Empty is valid unless `required`; disabled / readonly never invalid.\n *\n * Validity API (same on every ui input): the component is an Angular `Validator` (`ngModel` / `FormControl` report\n * `.invalid` / `.errors`), exposes the signals `invalid` + `errorMessage` and the `invalidChange` output, and provides\n * `UiFieldValidity` so a host can use `viewChildren(UiFieldValidity)`. Messages (built-in and a host `[error]`) are displayed only after the user left THIS field (blur); `[showErrors]=\"true\"` reveals the message of an untouched field at once, and setting it back to false clears the touched state.\n */\nexport class TextareaInputComponent implements ControlValueAccessor, Validator, UiFieldValidity {\n readonly label = input('');\n /** Accessible name for a field with no visible label. */\n readonly ariaLabel = input('');\n readonly placeholder = input('');\n readonly rows = input(3);\n readonly maxlength = input<number | undefined>(undefined);\n readonly required = input(false);\n readonly readonly = input(false);\n readonly hint = input('');\n /** Id(s) of an external element that also describes this control (e.g. one shared error text for a group of fields). Space separated; MERGED after the control's own hint / error id in `aria-describedby`, never replacing it. Empty = unchanged. */\n readonly ariaDescribedBy = input('');\n /**\n * Opt-in. `false` (default) = unchanged: a labelled field's hint renders INSIDE the `<label>` (\"Label (hint)\" is the accessible name,\n * no aria-describedby for it). `true` = the hint is a sibling of the label (`.ta-head` row, id `<textarea id>-hint`), the accessible\n * name is the label only and the hint is the description (`aria-describedby`, then the error). See docs/textarea-input.md.\n */\n readonly hintAsDescription = input(false);\n readonly error = input('');\n /** Opt-in. `true` shows the text in a monospace font (HTML / code / merge-tag fields). Default `false` = unchanged. */\n readonly monospace = input(false);\n /** The host's \"tried to submit\" flag (e.g. after a failed Save click). `true` reveals the message of an untouched field at once (the field also shows it after the user left THIS field); switching it from true back to false forgets that the field was left. */\n readonly showErrors = input(false);\n\n readonly _disabledInput = input(false, { alias: 'disabled' });\n private readonly _cvaDisabled = signal(false);\n protected readonly disabled = computed(() => this._disabledInput() || this._cvaDisabled());\n\n protected readonly _value = signal('');\n /** The hint is shown inline after the label; with no label there is nothing to hang it on, so it renders under the field. */\n protected readonly _unlabelledHint = computed(() => !this.label() && !!this.hint());\n\n /**\n * aria-describedby: the hint (inline after the label, or under the field when there is no label; the under-field\n * hint is replaced by the error) followed by the error. The label is the accessible NAME; the hint is the DESCRIPTION.\n */\n protected readonly _describedBy = computed(() => mergeDescribedBy(this._ownDescribedBy(), this.ariaDescribedBy()));\n private readonly _ownDescribedBy = computed(() => {\n if (!this.hintAsDescription()) return this._activeError() ? this._inputId + '-desc' : (this._unlabelledHint() ? this._inputId + '-hint' : null);\n const ids: string[] = [];\n if (this.hint() && (this.label() || !this._activeError())) ids.push(this._inputId + '-hint');\n if (this._activeError()) ids.push(this._inputId + '-desc');\n return ids.length ? ids.join(' ') : null;\n });\n\n private readonly _reveal = createFieldReveal(this.showErrors);\n private readonly _issue = computed(() => this._check(this._value()));\n /** True while the value breaks a built-in rule or the host passed an `[error]`. */\n readonly invalid = computed(() => !!this.error() || !!this._issue());\n /** Message of the first broken built-in rule ('' when valid), shown or not. */\n readonly errorMessage = computed(() => this._issue()?.message ?? '');\n /** Emits whenever the field becomes invalid / valid. */\n readonly invalidChange = output<boolean>();\n /** Library source 2026-11-05, not yet published. Emits when the inner `<textarea>` gains focus (same as `ui-text-input`). */\n readonly focused = output<void>();\n /** Library source 2026-11-05, not yet published. Emits when the inner `<textarea>` loses focus (same as `ui-text-input`); the form control is marked touched and the built-in error reveal still happens. */\n readonly blurred = output<void>();\n protected readonly _activeError = computed(() => this._reveal.revealed() ? (this.error() || this.errorMessage()) : '');\n private _onValidatorChange = () => {};\n\n constructor() {\n effect(() => { this.invalidChange.emit(this.invalid()); });\n }\n\n /** Re-run the form control's validation when a rule input (required, maxlength, min, options, ...) changes. */\n ngOnChanges() { this._onValidatorChange(); }\n\n validate(control: AbstractControl): ValidationErrors | null {\n const v = control.value;\n return issueToErrors(this._check(v == null ? '' : String(v)));\n }\n registerOnValidatorChange(fn: () => void) { this._onValidatorChange = fn; }\n\n protected readonly _inputId = `ta-${Math.random().toString(36).slice(2, 8)}`;\n\n private readonly _hostEl = inject<ElementRef<HTMLElement>>(ElementRef);\n\n /**\n * Library source 2026-11-04, not yet published. Puts the keyboard focus on the inner native `<textarea>` (`ref.focus()` via `viewChild`).\n * Same options as the DOM method (`{ preventScroll: true }`). Safe at any time: before the view exists, or on a disabled field, it does\n * nothing and never throws.\n */\n focus(options?: FocusOptions): void {\n this._hostEl.nativeElement.querySelector<HTMLElement>('textarea')?.focus(options);\n }\n\n /**\n * Library source 2026-11-05, not yet published. Caret access for hosts (e.g. an \"insert variable at the cursor\" chip row), so a host never\n * queries the inner element. Reach it with `viewChild(TextareaInputComponent)`. All three methods are safe at any time: before the view exists, on a\n * disabled / read-only field they do nothing / return null and never throw.\n *\n * `getSelection()` -> `{ start, end }` of the selected text (equal when only a caret) or `null` when it cannot be read.\n */\n getSelection(): { start: number; end: number } | null {\n const el = this._textarea();\n if (!el) return null;\n try {\n if (el.selectionStart === null || el.selectionEnd === null) return null;\n return { start: el.selectionStart, end: el.selectionEnd };\n } catch { return null; }\n }\n\n /** Selects `start`..`end` (a caret when `end` is left out); values are clamped to the text. Does nothing where the selection API is unavailable. */\n setSelection(start: number, end: number = start): void {\n const el = this._textarea();\n if (!el) return;\n const max = el.value.length;\n const from = Math.min(Math.max(0, start), max);\n const to = Math.min(Math.max(from, end), max);\n try { el.setSelectionRange(from, to); } catch { /* type without a selection */ }\n }\n\n /**\n * Inserts `text` at the caret, replacing any selected text, and puts the caret right after it. The change goes through the normal typing path\n * (`ngModel` / form control), exactly as if the user had typed it, and `maxlength` caps it like typing does (the\n * part that does not fit is not inserted). With no caret known the text is appended. Does nothing on a\n * disabled or read-only field or for an empty `text`.\n */\n insertAtCaret(text: string): void {\n const el = this._textarea();\n if (!el || el.disabled || el.readOnly || !text) return;\n const value = el.value;\n let from = value.length;\n let to = value.length;\n try {\n if (el.selectionStart !== null && el.selectionEnd !== null) { from = el.selectionStart; to = el.selectionEnd; }\n } catch { /* type without a selection: append */ }\n const max = this.maxlength();\n const room = max === undefined ? text.length : max - (value.length - (to - from));\n const insert = text.slice(0, Math.max(0, room));\n if (!insert) return;\n el.value = value.slice(0, from) + insert + value.slice(to);\n const caret = from + insert.length;\n try { el.setSelectionRange(caret, caret); } catch { /* type without a selection */ }\n el.dispatchEvent(new Event('input', { bubbles: true }));\n }\n\n private _textarea(): HTMLTextAreaElement | null {\n return this._hostEl.nativeElement.querySelector<HTMLTextAreaElement>('textarea');\n }\n\n private _onChange = (_: string) => {};\n private _onTouched = () => {};\n\n writeValue(val: string | null) { this._value.set(val ?? ''); }\n registerOnChange(fn: (v: string) => void) { this._onChange = fn; }\n registerOnTouched(fn: () => void) { this._onTouched = fn; }\n setDisabledState(d: boolean) { this._cvaDisabled.set(d); }\n\n protected onInput(event: Event) {\n const val = (event.target as HTMLTextAreaElement).value;\n this._value.set(val);\n this._onChange(val);\n }\n\n protected onFocus() { this.focused.emit(); }\n protected onBlur() { this._onTouched(); this._reveal.touched.set(true); this.blurred.emit(); }\n\n private _check(value: string): FieldIssue | null {\n if (this.disabled() || this.readonly()) return null;\n const text = value.trim();\n if (!text) return this.required() ? requiredIssue(this.label()) : null;\n return maxLengthIssue(text, this.maxlength());\n }\n}\n"],"mappings":";;;;AA2HA,IAAa,yBAAb,MAAa,uBAAsB;CA4DjC,cAAA;EA3DS,KAAA,QAAc,MAAM,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;EAEvB,KAAA,YAAc,MAAM,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,YAAA,CAAA,+BAAA,CAAA,CAAA;EACvB,KAAA,cAAc,MAAM,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,cAAA,CAAA,+BAAA,CAAA,CAAA;EACvB,KAAA,OAAc,MAAM,GAAE,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;EACtB,KAAA,YAAc,MAA0B,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,YAAA,CAAA,+BAAA,CAAA,CAAA;EAClD,KAAA,WAAc,MAAM,OAAM,GAAA,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;;;;;;;;;;;;;;;;;;;;;;;;;GA4CT,QAAA,CAAA,u3CAAA;EAAA,CAAA"}
1
+ {"version":3,"file":"forgeroute-ui-textarea-input.mjs","names":[],"sources":["../../../projects/forgeroute-ui/textarea-input/src/lib/textarea-input/textarea-input.component.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, ElementRef, inject, input, output, signal, computed, effect, forwardRef } from '@angular/core';\nimport { AbstractControl, ControlValueAccessor, NG_VALIDATORS, NG_VALUE_ACCESSOR, ValidationErrors, Validator } from '@angular/forms';\nimport { FieldIssue, UiFieldValidity, createFieldReveal, mergeDescribedBy, issueToErrors, maxLengthIssue, requiredIssue } from '@forgeroute/ui/core';\n\n@Component({\n selector: 'ui-textarea-input',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => TextareaInputComponent),\n multi: true,\n }, {\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => TextareaInputComponent),\n multi: true,\n }, {\n provide: UiFieldValidity,\n useExisting: forwardRef(() => TextareaInputComponent),\n }],\n template: `\n <div class=\"ta-field\" [class.ta-error]=\"_activeError()\" [class.ta-disabled]=\"disabled()\">\n @if (label()) {\n <div class=\"ta-label-row\">\n <label class=\"ta-label\" [for]=\"_inputId\">{{ label() }}@if (required()) { <span class=\"ta-required\" aria-hidden=\"true\">*</span> }</label>\n <ng-content select=\"[uiLabelEnd]\" />\n </div>\n }\n <textarea\n class=\"ta-input\"\n [class.ta-mono]=\"monospace()\"\n [id]=\"_inputId\"\n [placeholder]=\"placeholder()\"\n [value]=\"_value()\"\n [disabled]=\"disabled()\"\n [readOnly]=\"readonly()\"\n [rows]=\"rows()\"\n [attr.maxlength]=\"maxlength() ?? null\"\n [attr.required]=\"required() || null\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-invalid]=\"_activeError() ? 'true' : null\"\n [attr.aria-describedby]=\"_describedBy()\"\n (input)=\"onInput($event)\"\n (focus)=\"onFocus()\"\n (blur)=\"onBlur()\"\n ></textarea>\n @if (!_activeError() && hint()) {\n <p class=\"ta-desc\" [id]=\"_inputId + '-hint'\">{{ hint() }}</p>\n }\n @if (_activeError()) {\n <p class=\"ta-desc ta-desc-error\" [id]=\"_inputId + '-desc'\" role=\"alert\">{{ _activeError() }}</p>\n }\n </div>\n `,\n styles: [`\n :host { display: block; }\n\n .ta-field { display: flex; flex-direction: column; gap: 6px; }\n\n /* Label line: the label, plus an optional host element marked uiLabelEnd pushed to the far end (e.g. an \"Insert variable\" button). */\n .ta-label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }\n\n .ta-label {\n font-size: 0.8125rem; font-weight: 600; color: #374151; line-height: 1;\n }\n .ta-required { color: #dc2626; margin-left: 2px; }\n\n .ta-input {\n width: 100%; box-sizing: border-box;\n padding: 9px 12px; font-size: 0.875rem; font-family: inherit;\n color: #1e293b; background: #fff;\n border: 1px solid #7c8ba1; border-radius: 8px;\n outline: none; resize: vertical;\n transition: border-color 0.15s, box-shadow 0.15s;\n &::placeholder { color: #64748b; opacity: 1; }\n &:focus {\n border-color: #3b82f6;\n box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);\n }\n &:read-only { background: #f8fafc; cursor: default; }\n }\n\n /* Opt-in code/markup look. System monospace stack (ui-monospace = Safari/iOS, Menlo = macOS, Consolas = Windows). The size\n tweak is desktop-only so phones keep the 16px field size that stops iOS from zooming into the field. */\n .ta-input.ta-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace; }\n @media (min-width: 481px) and (pointer: fine) { .ta-input.ta-mono { font-size: 0.8125rem; } }\n\n .ta-error .ta-input {\n border-color: #ef4444;\n &:focus { box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12); }\n }\n\n .ta-disabled .ta-input { opacity: 0.5; cursor: not-allowed; }\n\n .ta-desc { margin: -6px 0 0; font-size: 0.75rem; line-height: 1.4; color: #64748b; }\n .ta-desc-error { color: #dc2626; }\n\n @media (pointer: coarse), (max-width: 480px) { .ta-input { font-size: 1rem; } }\n `],\n})\n/**\n * Multi-line text field (ControlValueAccessor).\n * Built-in validation: `required` -> \"<label> is required.\"; `maxlength` -> \"Too long (max N characters).\" (also for a\n * loaded value longer than the limit; trimmed length). Empty is valid unless `required`; disabled / readonly never invalid.\n *\n * Validity API (same on every ui input): the component is an Angular `Validator` (`ngModel` / `FormControl` report\n * `.invalid` / `.errors`), exposes the signals `invalid` + `errorMessage` and the `invalidChange` output, and provides\n * `UiFieldValidity` so a host can use `viewChildren(UiFieldValidity)`. Messages (built-in and a host `[error]`) are displayed only after the user left THIS field (blur); `[showErrors]=\"true\"` reveals the message of an untouched field at once, and setting it back to false clears the touched state.\n */\nexport class TextareaInputComponent implements ControlValueAccessor, Validator, UiFieldValidity {\n readonly label = input('');\n /** Accessible name for a field with no visible label. */\n readonly ariaLabel = input('');\n readonly placeholder = input('');\n readonly rows = input(3);\n readonly maxlength = input<number | undefined>(undefined);\n readonly required = input(false);\n readonly readonly = input(false);\n readonly hint = input('');\n /** Id(s) of an external element that also describes this control (e.g. one shared error text for a group of fields). Space separated; MERGED after the control's own hint / error id in `aria-describedby`, never replacing it. Empty = unchanged. */\n readonly ariaDescribedBy = input('');\n /** Deprecated, no effect: the hint is ALWAYS shown under the textarea now (never next to the label). Kept so existing templates still compile. */\n readonly hintAsDescription = input(false);\n /** Deprecated, no effect (the hint is always under the field). */\n readonly hintBelow = input(false);\n readonly error = input('');\n /** Opt-in. `true` shows the text in a monospace font (HTML / code / merge-tag fields). Default `false` = unchanged. */\n readonly monospace = input(false);\n /** The host's \"tried to submit\" flag (e.g. after a failed Save click). `true` reveals the message of an untouched field at once (the field also shows it after the user left THIS field); switching it from true back to false forgets that the field was left. */\n readonly showErrors = input(false);\n\n readonly _disabledInput = input(false, { alias: 'disabled' });\n private readonly _cvaDisabled = signal(false);\n protected readonly disabled = computed(() => this._disabledInput() || this._cvaDisabled());\n\n protected readonly _value = signal('');\n /**\n * aria-describedby: the hint under the field (replaced by the error message while one shows). The label is the accessible NAME; the hint is the DESCRIPTION.\n */\n protected readonly _describedBy = computed(() => mergeDescribedBy(this._ownDescribedBy(), this.ariaDescribedBy()));\n private readonly _ownDescribedBy = computed(() => this._activeError() ? this._inputId + '-desc' : (this.hint() ? this._inputId + '-hint' : null));\n\n private readonly _reveal = createFieldReveal(this.showErrors);\n private readonly _issue = computed(() => this._check(this._value()));\n /** True while the value breaks a built-in rule or the host passed an `[error]`. */\n readonly invalid = computed(() => !!this.error() || !!this._issue());\n /** Message of the first broken built-in rule ('' when valid), shown or not. */\n readonly errorMessage = computed(() => this._issue()?.message ?? '');\n /** Emits whenever the field becomes invalid / valid. */\n readonly invalidChange = output<boolean>();\n /** Library source 2026-11-05, not yet published. Emits when the inner `<textarea>` gains focus (same as `ui-text-input`). */\n readonly focused = output<void>();\n /** Library source 2026-11-05, not yet published. Emits when the inner `<textarea>` loses focus (same as `ui-text-input`); the form control is marked touched and the built-in error reveal still happens. */\n readonly blurred = output<void>();\n protected readonly _activeError = computed(() => this._reveal.revealed() ? (this.error() || this.errorMessage()) : '');\n private _onValidatorChange = () => {};\n\n constructor() {\n effect(() => { this.invalidChange.emit(this.invalid()); });\n }\n\n /** Re-run the form control's validation when a rule input (required, maxlength, min, options, ...) changes. */\n ngOnChanges() { this._onValidatorChange(); }\n\n validate(control: AbstractControl): ValidationErrors | null {\n const v = control.value;\n return issueToErrors(this._check(v == null ? '' : String(v)));\n }\n registerOnValidatorChange(fn: () => void) { this._onValidatorChange = fn; }\n\n protected readonly _inputId = `ta-${Math.random().toString(36).slice(2, 8)}`;\n\n private readonly _hostEl = inject<ElementRef<HTMLElement>>(ElementRef);\n\n /**\n * Library source 2026-11-04, not yet published. Puts the keyboard focus on the inner native `<textarea>` (`ref.focus()` via `viewChild`).\n * Same options as the DOM method (`{ preventScroll: true }`). Safe at any time: before the view exists, or on a disabled field, it does\n * nothing and never throws.\n */\n focus(options?: FocusOptions): void {\n this._hostEl.nativeElement.querySelector<HTMLElement>('textarea')?.focus(options);\n }\n\n /**\n * Library source 2026-11-05, not yet published. Caret access for hosts (e.g. an \"insert variable at the cursor\" chip row), so a host never\n * queries the inner element. Reach it with `viewChild(TextareaInputComponent)`. All three methods are safe at any time: before the view exists, on a\n * disabled / read-only field they do nothing / return null and never throw.\n *\n * `getSelection()` -> `{ start, end }` of the selected text (equal when only a caret) or `null` when it cannot be read.\n */\n getSelection(): { start: number; end: number } | null {\n const el = this._textarea();\n if (!el) return null;\n try {\n if (el.selectionStart === null || el.selectionEnd === null) return null;\n return { start: el.selectionStart, end: el.selectionEnd };\n } catch { return null; }\n }\n\n /** Selects `start`..`end` (a caret when `end` is left out); values are clamped to the text. Does nothing where the selection API is unavailable. */\n setSelection(start: number, end: number = start): void {\n const el = this._textarea();\n if (!el) return;\n const max = el.value.length;\n const from = Math.min(Math.max(0, start), max);\n const to = Math.min(Math.max(from, end), max);\n try { el.setSelectionRange(from, to); } catch { /* type without a selection */ }\n }\n\n /**\n * Inserts `text` at the caret, replacing any selected text, and puts the caret right after it. The change goes through the normal typing path\n * (`ngModel` / form control), exactly as if the user had typed it, and `maxlength` caps it like typing does (the\n * part that does not fit is not inserted). With no caret known the text is appended. Does nothing on a\n * disabled or read-only field or for an empty `text`.\n */\n insertAtCaret(text: string): void {\n const el = this._textarea();\n if (!el || el.disabled || el.readOnly || !text) return;\n const value = el.value;\n let from = value.length;\n let to = value.length;\n try {\n if (el.selectionStart !== null && el.selectionEnd !== null) { from = el.selectionStart; to = el.selectionEnd; }\n } catch { /* type without a selection: append */ }\n const max = this.maxlength();\n const room = max === undefined ? text.length : max - (value.length - (to - from));\n const insert = text.slice(0, Math.max(0, room));\n if (!insert) return;\n el.value = value.slice(0, from) + insert + value.slice(to);\n const caret = from + insert.length;\n try { el.setSelectionRange(caret, caret); } catch { /* type without a selection */ }\n el.dispatchEvent(new Event('input', { bubbles: true }));\n }\n\n private _textarea(): HTMLTextAreaElement | null {\n return this._hostEl.nativeElement.querySelector<HTMLTextAreaElement>('textarea');\n }\n\n private _onChange = (_: string) => {};\n private _onTouched = () => {};\n\n writeValue(val: string | null) { this._value.set(val ?? ''); }\n registerOnChange(fn: (v: string) => void) { this._onChange = fn; }\n registerOnTouched(fn: () => void) { this._onTouched = fn; }\n setDisabledState(d: boolean) { this._cvaDisabled.set(d); }\n\n protected onInput(event: Event) {\n const val = (event.target as HTMLTextAreaElement).value;\n this._value.set(val);\n this._onChange(val);\n }\n\n protected onFocus() { this.focused.emit(); }\n protected onBlur() { this._onTouched(); this._reveal.touched.set(true); this.blurred.emit(); }\n\n private _check(value: string): FieldIssue | null {\n if (this.disabled() || this.readonly()) return null;\n const text = value.trim();\n if (!text) return this.required() ? requiredIssue(this.label()) : null;\n return maxLengthIssue(text, this.maxlength());\n }\n}\n"],"mappings":";;;;AA6GA,IAAa,yBAAb,MAAa,uBAAsB;CAgDjC,cAAA;EA/CS,KAAA,QAAc,MAAM,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;EAEvB,KAAA,YAAc,MAAM,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,YAAA,CAAA,+BAAA,CAAA,CAAA;EACvB,KAAA,cAAc,MAAM,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,cAAA,CAAA,+BAAA,CAAA,CAAA;EACvB,KAAA,OAAc,MAAM,GAAE,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;EACtB,KAAA,YAAc,MAA0B,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,YAAA,CAAA,+BAAA,CAAA,CAAA;EAClD,KAAA,WAAc,MAAM,OAAM,GAAA,YAAA,CAAA,EAAA,WAAA,WAAA,CAAA,+BAAA,CAAA,CAAA;EAC1B,KAAA,WAAc,MAAM,OAAM,GAAA,YAAA,CAAA,EAAA,WAAA,WAAA,CAAA,+BAAA,CAAA,CAAA;EAC1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GAAA;GAAA,SAAA;IAAA,eAAA;IAAA,SAAA;IAAA,SAAA;GAAA;GAAA,WArGtB;IAAC;KACV,SAAS;KACT,aAAa,iBAAiB,sBAAsB;KACpD,OAAO;IACR;IAAE;KACD,SAAS;KACT,aAAa,iBAAiB,sBAAsB;KACpD,OAAO;IACR;IAAE;KACD,SAAS;KACT,aAAa,iBAAiB,sBAAsB;IACrD;GAAA;GAAC,eAAA;GAAA,UAAA;GAAA,UACQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCT,UAAA;GAAA,QAAA,CAAA,qqCAAA;GAAA,iBAAA,GAAA,wBAAA;EAAA,CAAA;CAAA;;AAwDU,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAsB,YAAA,CAAA;EAzGlC,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAmB,YACjB;GAAI,iBACC,wBAAwB;GAAM,WACpC;IAAC;KACV,SAAS;KACT,aAAa,iBAAgB,sBAAuB;KACpD,OAAO;IACR;IAAE;KACD,SAAS;KACT,aAAa,iBAAgB,sBAAuB;KACpD,OAAO;IACR;IAAE;KACD,SAAS;KACT,aAAa,iBAAgB,sBAAuB;IACrD;GAAA;GAAC,UACQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCT,QAAA,CAAA,qqCAAA;EAAA,CAAA"}
@@ -241,7 +241,7 @@ var TimeInputComponent = class TimeInputComponent {
241
241
  </div>
242
242
  `,
243
243
  isInline: true,
244
- styles: [":host{display:block}.tmi-field{display:flex;flex-direction:column;gap:6px}.tmi-label{font-size:.8125rem;font-weight:600;color:#374151;line-height:1}.tmi-required{color:#dc2626;margin-left:2px}.tmi-input{width:100%;box-sizing:border-box;padding:8px 12px;font-size:.875rem;font-family:inherit;color:#1e293b;background:#fff;border:1px solid #7c8ba1;border-radius:8px;outline:none;transition:border-color .15s,box-shadow .15s;appearance:none}.tmi-input:focus{border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61f}.tmi-error .tmi-input{border-color:#ef4444}.tmi-error .tmi-input:focus{box-shadow:0 0 0 3px #ef44441f}.tmi-disabled .tmi-input{opacity:.5;cursor:not-allowed}.tmi-desc{margin:0;font-size:.75rem;line-height:1.4;color:#64748b}.tmi-desc-error{color:#dc2626}@media(pointer:coarse),(max-width:480px){.tmi-input{font-size:1rem}}@media(pointer:coarse),(max-width:480px){.tmi-input{min-height:44px}}\n"],
244
+ styles: [":host{display:block}.tmi-field{display:flex;flex-direction:column;gap:6px}.tmi-label{font-size:.8125rem;font-weight:600;color:#374151;line-height:1}.tmi-required{color:#dc2626;margin-left:2px}.tmi-input{width:100%;box-sizing:border-box;padding:8px 12px;font-size:.875rem;font-family:inherit;color:#1e293b;background:#fff;border:1px solid #7c8ba1;border-radius:8px;outline:none;transition:border-color .15s,box-shadow .15s;appearance:none}.tmi-input:focus{border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61f}.tmi-error .tmi-input{border-color:#ef4444}.tmi-error .tmi-input:focus{box-shadow:0 0 0 3px #ef44441f}.tmi-disabled .tmi-input{opacity:.5;cursor:not-allowed}.tmi-desc{margin:-6px 0 0;font-size:.75rem;line-height:1.4;color:#64748b}.tmi-desc-error{color:#dc2626}@media(pointer:coarse),(max-width:480px){.tmi-input{font-size:1rem}}@media(pointer:coarse),(max-width:480px){.tmi-input{min-height:44px}}\n"],
245
245
  changeDetection: i0.ChangeDetectionStrategy.OnPush
246
246
  });
247
247
  }
@@ -305,7 +305,7 @@ i0.ɵɵngDeclareClassMetadata({
305
305
  }
306
306
  </div>
307
307
  `,
308
- styles: [":host{display:block}.tmi-field{display:flex;flex-direction:column;gap:6px}.tmi-label{font-size:.8125rem;font-weight:600;color:#374151;line-height:1}.tmi-required{color:#dc2626;margin-left:2px}.tmi-input{width:100%;box-sizing:border-box;padding:8px 12px;font-size:.875rem;font-family:inherit;color:#1e293b;background:#fff;border:1px solid #7c8ba1;border-radius:8px;outline:none;transition:border-color .15s,box-shadow .15s;appearance:none}.tmi-input:focus{border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61f}.tmi-error .tmi-input{border-color:#ef4444}.tmi-error .tmi-input:focus{box-shadow:0 0 0 3px #ef44441f}.tmi-disabled .tmi-input{opacity:.5;cursor:not-allowed}.tmi-desc{margin:0;font-size:.75rem;line-height:1.4;color:#64748b}.tmi-desc-error{color:#dc2626}@media(pointer:coarse),(max-width:480px){.tmi-input{font-size:1rem}}@media(pointer:coarse),(max-width:480px){.tmi-input{min-height:44px}}\n"]
308
+ styles: [":host{display:block}.tmi-field{display:flex;flex-direction:column;gap:6px}.tmi-label{font-size:.8125rem;font-weight:600;color:#374151;line-height:1}.tmi-required{color:#dc2626;margin-left:2px}.tmi-input{width:100%;box-sizing:border-box;padding:8px 12px;font-size:.875rem;font-family:inherit;color:#1e293b;background:#fff;border:1px solid #7c8ba1;border-radius:8px;outline:none;transition:border-color .15s,box-shadow .15s;appearance:none}.tmi-input:focus{border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61f}.tmi-error .tmi-input{border-color:#ef4444}.tmi-error .tmi-input:focus{box-shadow:0 0 0 3px #ef44441f}.tmi-disabled .tmi-input{opacity:.5;cursor:not-allowed}.tmi-desc{margin:-6px 0 0;font-size:.75rem;line-height:1.4;color:#64748b}.tmi-desc-error{color:#dc2626}@media(pointer:coarse),(max-width:480px){.tmi-input{font-size:1rem}}@media(pointer:coarse),(max-width:480px){.tmi-input{min-height:44px}}\n"]
309
309
  }]
310
310
  }],
311
311
  ctorParameters: () => [],