@forgeroute/ui 0.5.25 → 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 +40 -6
  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-color-input.d.ts +7 -0
  70. package/types/forgeroute-ui-detail-card.d.ts +7 -0
  71. package/types/forgeroute-ui-dropdown.d.ts +2 -0
  72. package/types/forgeroute-ui-media.d.ts +28 -0
  73. package/types/forgeroute-ui-messaging.d.ts +1 -1
  74. package/types/forgeroute-ui-quickbooks.d.ts +1 -1
  75. package/types/forgeroute-ui-square.d.ts +2 -2
  76. package/types/forgeroute-ui-stripe.d.ts +1 -1
  77. package/types/forgeroute-ui-textarea-input.d.ts +9 -9
@@ -1 +1 @@
1
- {"version":3,"file":"forgeroute-ui-time-input.mjs","names":[],"sources":["../../../projects/forgeroute-ui/time-input/src/lib/time-input/time-input.component.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, input, output, signal, computed, effect, forwardRef, inject } from '@angular/core';\nimport { AbstractControl, ControlValueAccessor, NG_VALIDATORS, NG_VALUE_ACCESSOR, ValidationErrors, Validator } from '@angular/forms';\nimport { FieldIssue, UiFieldValidity, createFieldReveal, mergeDescribedBy, issueToErrors, requiredIssue, parseTime, formatTime } from '@forgeroute/ui/core';\nimport { UiLabelsService } from '@forgeroute/ui/core';\n\n@Component({\n selector: 'ui-time-input',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => TimeInputComponent),\n multi: true,\n }, {\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => TimeInputComponent),\n multi: true,\n }, {\n provide: UiFieldValidity,\n useExisting: forwardRef(() => TimeInputComponent),\n }],\n template: `\n <div class=\"tmi-field\" [class.tmi-error]=\"_activeError()\" [class.tmi-disabled]=\"disabled()\">\n @if (label()) {\n <label class=\"tmi-label\" [for]=\"_inputId\">\n {{ label() }}\n @if (required()) { <span class=\"tmi-required\" aria-hidden=\"true\">*</span> }\n </label>\n }\n <input\n class=\"tmi-input\"\n type=\"time\"\n [id]=\"_inputId\"\n [value]=\"_value()\"\n [disabled]=\"disabled()\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n [attr.min]=\"min() || null\"\n [attr.max]=\"max() || null\"\n [attr.required]=\"required() || null\"\n [attr.aria-label]=\"ariaLabel() || label() || null\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-invalid]=\"_activeError() ? 'true' : null\"\n [attr.aria-describedby]=\"_describedBy()\"\n (change)=\"onChange($event)\"\n (blur)=\"onBlur()\"\n />\n @if (_activeError()) {\n <p class=\"tmi-desc tmi-desc-error\" [id]=\"_inputId + '-desc'\" role=\"alert\">{{ _activeError() }}</p>\n } @else if (hint()) {\n <p class=\"tmi-desc\" [id]=\"_inputId + '-desc'\">{{ hint() }}</p>\n }\n </div>\n `,\n styles: [`\n :host { display: block; }\n\n .tmi-field { display: flex; flex-direction: column; gap: 6px; }\n\n .tmi-label {\n font-size: 0.8125rem; font-weight: 600; color: #374151; line-height: 1;\n }\n .tmi-required { color: #dc2626; margin-left: 2px; }\n\n .tmi-input {\n width: 100%; box-sizing: border-box;\n padding: 8px 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 appearance: none;\n &:focus {\n border-color: #3b82f6;\n box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);\n }\n }\n\n .tmi-error .tmi-input {\n border-color: #ef4444;\n &:focus { box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12); }\n }\n\n .tmi-disabled .tmi-input { opacity: 0.5; cursor: not-allowed; }\n\n .tmi-desc { margin: 0; font-size: 0.75rem; line-height: 1.4; color: #64748b; }\n .tmi-desc-error { color: #dc2626; }\n\n @media (pointer: coarse), (max-width: 480px) { .tmi-input { font-size: 1rem; } }\n @media (pointer: coarse), (max-width: 480px) { .tmi-input { min-height: 44px; } }\n `],\n})\n/**\n * Native time picker (ControlValueAccessor, `HH:mm` string value).\n * Accessible name: `ariaLabel`, falling back to `label` (set as aria-label on the real input).\n * Built-in validation: `required` -> \"<label> is required.\"; a value that is not a real time -> \"Please enter a valid time.\";\n * before `min` -> \"Must be at or after 9:00 AM\"; after `max` -> \"Must be at or before 5:00 PM\" (an unparsable `min`/`max` is\n * ignored; so are both bounds when `max` is earlier than `min`, a wrap-around range). A written value must be `HH:mm`\n * (`9:00` / `9:00 AM` -> \"Please enter a valid time.\"). Disabled fields are never invalid.\n *\n * Validity API (same on every ui input): Angular `Validator`, signals `invalid` + `errorMessage`, `invalidChange` output,\n * provides `UiFieldValidity`. Messages (built-in and a host `[error]`) show only after the user left the field; `[showErrors]=\"true\"` also reveals it on an untouched field.\n */\nexport class TimeInputComponent implements ControlValueAccessor, Validator, UiFieldValidity {\n protected readonly labels = inject(UiLabelsService);\n readonly label = input('');\n /** Accessible name when there is no visible `label` (falls back to `label`). */\n readonly ariaLabel = input('');\n readonly required = input(false);\n readonly min = input('');\n readonly max = input('');\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 readonly error = input('');\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 /** Public (like the other inputs) so `[disabled]` can be bound in a host template. */\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 protected readonly _inputId = `tmi-${Math.random().toString(36).slice(2, 8)}`;\n\n /** `aria-describedby`: the error / hint text, then the host's `ariaDescribedBy` id(s). */\n protected readonly _describedBy = computed(() => mergeDescribedBy((this._activeError() || this.hint()) ? this._inputId + '-desc' : null, this.ariaDescribedBy()));\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 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, min, max) 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 private _onChange = (_: string) => {};\n private _onTouched = () => {};\n\n writeValue(val: string) { 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 onChange(event: Event) {\n const val = (event.target as HTMLInputElement).value;\n this._value.set(val);\n this._onChange(val);\n }\n\n protected onBlur() { this._onTouched(); this._reveal.touched.set(true); }\n\n private _check(value: string): FieldIssue | null {\n if (this.disabled()) return null;\n const text = value.trim();\n if (!text) return this.required() ? requiredIssue(this.label() || this.ariaLabel()) : null;\n const t = parseTime(text);\n if (t == null) return { key: 'time', message: this.labels.t('validation.time') };\n let min = this.min() ? parseTime(this.min()) : null;\n let max = this.max() ? parseTime(this.max()) : null;\n // A wrap-around range (min 22:00, max 06:00) cannot be expressed as a simple before/after check, so neither bound is\n // enforced then (otherwise every value would be invalid). The native input's own min/max attributes still apply.\n if (min != null && max != null && max < min) { min = null; max = null; }\n if (min != null && t < min) return { key: 'min', message: this.labels.t('validation.atOrAfter', { value: formatTime(this.min(), this.labels.locale()) }), value: { min: this.min(), actual: text } };\n if (max != null && t > max) return { key: 'max', message: this.labels.t('validation.atOrBefore', { value: formatTime(this.max(), this.labels.locale()) }), value: { max: this.max(), actual: text } };\n return null;\n }\n}\n"],"mappings":";;;;AAqGA,IAAa,qBAAb,MAAa,mBAAkB;CAoC7B,cAAA;EAnCmB,KAAA,SAAS,OAAO,eAAe;EACzC,KAAA,QAAW,MAAM,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;EAEpB,KAAA,YAAY,MAAM,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,YAAA,CAAA,+BAAA,CAAA,CAAA;EACrB,KAAA,WAAW,MAAM,OAAM,GAAA,YAAA,CAAA,EAAA,WAAA,WAAA,CAAA,+BAAA,CAAA,CAAA;EACvB,KAAA,MAAW,MAAM,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,MAAA,CAAA,+BAAA,CAAA,CAAA;EACpB,KAAA,MAAW,MAAM,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,MAAA,CAAA,+BAAA,CAAA,CAAA;EACpB,KAAA,OAAW,MAAM,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;EAEpB,KAAA,kBAAk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;GAAI,iBACC,wBAAwB;GAAM,WACpC;IAAC;KACV,SAAS;KACT,aAAa,iBAAgB,kBAAmB;KAChD,OAAO;IACR;IAAE;KACD,SAAS;KACT,aAAa,iBAAgB,kBAAmB;KAChD,OAAO;IACR;IAAE;KACD,SAAS;KACT,aAAa,iBAAgB,kBAAmB;IACjD;GAAA;GAAC,UACQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BT,QAAA,CAAA,q4BAAA;EAAA,CAAA"}
1
+ {"version":3,"file":"forgeroute-ui-time-input.mjs","names":[],"sources":["../../../projects/forgeroute-ui/time-input/src/lib/time-input/time-input.component.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, input, output, signal, computed, effect, forwardRef, inject } from '@angular/core';\nimport { AbstractControl, ControlValueAccessor, NG_VALIDATORS, NG_VALUE_ACCESSOR, ValidationErrors, Validator } from '@angular/forms';\nimport { FieldIssue, UiFieldValidity, createFieldReveal, mergeDescribedBy, issueToErrors, requiredIssue, parseTime, formatTime } from '@forgeroute/ui/core';\nimport { UiLabelsService } from '@forgeroute/ui/core';\n\n@Component({\n selector: 'ui-time-input',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => TimeInputComponent),\n multi: true,\n }, {\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => TimeInputComponent),\n multi: true,\n }, {\n provide: UiFieldValidity,\n useExisting: forwardRef(() => TimeInputComponent),\n }],\n template: `\n <div class=\"tmi-field\" [class.tmi-error]=\"_activeError()\" [class.tmi-disabled]=\"disabled()\">\n @if (label()) {\n <label class=\"tmi-label\" [for]=\"_inputId\">\n {{ label() }}\n @if (required()) { <span class=\"tmi-required\" aria-hidden=\"true\">*</span> }\n </label>\n }\n <input\n class=\"tmi-input\"\n type=\"time\"\n [id]=\"_inputId\"\n [value]=\"_value()\"\n [disabled]=\"disabled()\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n [attr.min]=\"min() || null\"\n [attr.max]=\"max() || null\"\n [attr.required]=\"required() || null\"\n [attr.aria-label]=\"ariaLabel() || label() || null\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-invalid]=\"_activeError() ? 'true' : null\"\n [attr.aria-describedby]=\"_describedBy()\"\n (change)=\"onChange($event)\"\n (blur)=\"onBlur()\"\n />\n @if (_activeError()) {\n <p class=\"tmi-desc tmi-desc-error\" [id]=\"_inputId + '-desc'\" role=\"alert\">{{ _activeError() }}</p>\n } @else if (hint()) {\n <p class=\"tmi-desc\" [id]=\"_inputId + '-desc'\">{{ hint() }}</p>\n }\n </div>\n `,\n styles: [`\n :host { display: block; }\n\n .tmi-field { display: flex; flex-direction: column; gap: 6px; }\n\n .tmi-label {\n font-size: 0.8125rem; font-weight: 600; color: #374151; line-height: 1;\n }\n .tmi-required { color: #dc2626; margin-left: 2px; }\n\n .tmi-input {\n width: 100%; box-sizing: border-box;\n padding: 8px 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 appearance: none;\n &:focus {\n border-color: #3b82f6;\n box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);\n }\n }\n\n .tmi-error .tmi-input {\n border-color: #ef4444;\n &:focus { box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12); }\n }\n\n .tmi-disabled .tmi-input { opacity: 0.5; cursor: not-allowed; }\n\n .tmi-desc { margin: -6px 0 0; font-size: 0.75rem; line-height: 1.4; color: #64748b; }\n .tmi-desc-error { color: #dc2626; }\n\n @media (pointer: coarse), (max-width: 480px) { .tmi-input { font-size: 1rem; } }\n @media (pointer: coarse), (max-width: 480px) { .tmi-input { min-height: 44px; } }\n `],\n})\n/**\n * Native time picker (ControlValueAccessor, `HH:mm` string value).\n * Accessible name: `ariaLabel`, falling back to `label` (set as aria-label on the real input).\n * Built-in validation: `required` -> \"<label> is required.\"; a value that is not a real time -> \"Please enter a valid time.\";\n * before `min` -> \"Must be at or after 9:00 AM\"; after `max` -> \"Must be at or before 5:00 PM\" (an unparsable `min`/`max` is\n * ignored; so are both bounds when `max` is earlier than `min`, a wrap-around range). A written value must be `HH:mm`\n * (`9:00` / `9:00 AM` -> \"Please enter a valid time.\"). Disabled fields are never invalid.\n *\n * Validity API (same on every ui input): Angular `Validator`, signals `invalid` + `errorMessage`, `invalidChange` output,\n * provides `UiFieldValidity`. Messages (built-in and a host `[error]`) show only after the user left the field; `[showErrors]=\"true\"` also reveals it on an untouched field.\n */\nexport class TimeInputComponent implements ControlValueAccessor, Validator, UiFieldValidity {\n protected readonly labels = inject(UiLabelsService);\n readonly label = input('');\n /** Accessible name when there is no visible `label` (falls back to `label`). */\n readonly ariaLabel = input('');\n readonly required = input(false);\n readonly min = input('');\n readonly max = input('');\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 readonly error = input('');\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 /** Public (like the other inputs) so `[disabled]` can be bound in a host template. */\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 protected readonly _inputId = `tmi-${Math.random().toString(36).slice(2, 8)}`;\n\n /** `aria-describedby`: the error / hint text, then the host's `ariaDescribedBy` id(s). */\n protected readonly _describedBy = computed(() => mergeDescribedBy((this._activeError() || this.hint()) ? this._inputId + '-desc' : null, this.ariaDescribedBy()));\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 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, min, max) 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 private _onChange = (_: string) => {};\n private _onTouched = () => {};\n\n writeValue(val: string) { 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 onChange(event: Event) {\n const val = (event.target as HTMLInputElement).value;\n this._value.set(val);\n this._onChange(val);\n }\n\n protected onBlur() { this._onTouched(); this._reveal.touched.set(true); }\n\n private _check(value: string): FieldIssue | null {\n if (this.disabled()) return null;\n const text = value.trim();\n if (!text) return this.required() ? requiredIssue(this.label() || this.ariaLabel()) : null;\n const t = parseTime(text);\n if (t == null) return { key: 'time', message: this.labels.t('validation.time') };\n let min = this.min() ? parseTime(this.min()) : null;\n let max = this.max() ? parseTime(this.max()) : null;\n // A wrap-around range (min 22:00, max 06:00) cannot be expressed as a simple before/after check, so neither bound is\n // enforced then (otherwise every value would be invalid). The native input's own min/max attributes still apply.\n if (min != null && max != null && max < min) { min = null; max = null; }\n if (min != null && t < min) return { key: 'min', message: this.labels.t('validation.atOrAfter', { value: formatTime(this.min(), this.labels.locale()) }), value: { min: this.min(), actual: text } };\n if (max != null && t > max) return { key: 'max', message: this.labels.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YAAA;KAAA,UAAA;KAAA,YAAA;KAAA,mBAAA;IAAA;IAAA,YAAA;KAAA,mBAAA;KAAA,YAAA;KAAA,UAAA;KAAA,YAAA;KAAA,mBAAA;IAAA;IAAA,gBAAA;KAAA,mBAAA;KAAA,YAAA;KAAA,UAAA;KAAA,YAAA;KAAA,mBAAA;IAAA;GAAA;GAAA,SAAA,EAAA,eAAA,gBAAA;GAAA,WA5FlB;IAAC;KACV,SAAS;KACT,aAAa,iBAAiB,kBAAkB;KAChD,OAAO;IACR;IAAE;KACD,SAAS;KACT,aAAa,iBAAiB,kBAAkB;KAChD,OAAO;IACR;IAAE;KACD,SAAS;KACT,aAAa,iBAAiB,kBAAkB;IACjD;GAAA;GAAC,eAAA;GAAA,UAAA;GAAA,UACQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BT,UAAA;GAAA,QAAA,CAAA,44BAAA;GAAA,iBAAA,GAAA,wBAAA;EAAA,CAAA;CAAA;;AAiDU,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAkB,YAAA,CAAA;EAhG9B,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAe,YACb;GAAI,iBACC,wBAAwB;GAAM,WACpC;IAAC;KACV,SAAS;KACT,aAAa,iBAAgB,kBAAmB;KAChD,OAAO;IACR;IAAE;KACD,SAAS;KACT,aAAa,iBAAgB,kBAAmB;KAChD,OAAO;IACR;IAAE;KACD,SAAS;KACT,aAAa,iBAAgB,kBAAmB;IACjD;GAAA;GAAC,UACQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BT,QAAA,CAAA,44BAAA;EAAA,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forgeroute/ui",
3
- "version": "0.5.25",
3
+ "version": "0.5.27",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=22.0.0",
6
6
  "@angular/core": ">=22.0.0",
@@ -26,9 +26,9 @@ export type CardListIcon = 'call' | 'email' | 'sms' | 'task' | 'doc' | 'money' |
26
26
  * under the row (use the `.cli-stat`, `.cli-stat-label`, `.cli-stat-value`, `.cli-stat-divider` classes inside `[card-stats]`).
27
27
  *
28
28
  * Delete and a generic action (additive; unused = the row looks exactly as before). Row-end order: Edit, View, action, delete, then projected content.
29
- * - `[deletable]="true"` shows a red icon-only trash button (28px, 44px hit area on touch) -> `(delete)`; name it with `deleteLabel` (default "Delete"), `deleteTestId` sets its `data-testid`.
29
+ * - `[deletable]="true"` shows a red chip with a trash icon and the word Delete, like the Edit chip (44px high on touch) -> `(delete)`; name it with `deleteLabel` (default "Delete"), `deleteTestId` sets its `data-testid`.
30
30
  * The page owns the confirmation (the component never deletes anything itself).
31
- * - `actionLabel="Download"` shows a grey chip button with that text -> `(action)`; `actionTestId`, `actionAriaLabel` as for the other buttons.
31
+ * - `actionLabel="Download"` shows a grey chip button with that text -> `(action)`; `actionIcon` (the `d` of a 24x24 stroke path) puts an icon before the text like every other chip; `actionTestId`, `actionAriaLabel` as for the other buttons.
32
32
  *
33
33
  * Accessibility: the Edit / View buttons are real buttons; give them a longer name with `editAriaLabel` / `viewAriaLabel`
34
34
  * ("Edit task Call John") when the visible word alone is ambiguous in a list. The priority dot (`high`/`medium`/`low`) has a tooltip and an
@@ -59,7 +59,7 @@ export declare class CardListItemComponent {
59
59
  /** Accessible names for the buttons when the visible word is not enough ("Edit task Call John"). */
60
60
  readonly editAriaLabel: import("@angular/core").InputSignal<string>;
61
61
  readonly viewAriaLabel: import("@angular/core").InputSignal<string>;
62
- /** Built-in icon-only trash button -> `delete`. The accessible name comes from `deleteLabel` ("Delete task Call John"). */
62
+ /** Built-in red chip (trash icon + the word Delete, like the Edit chip) -> `delete`. The accessible name comes from `deleteLabel` ("Delete task Call John"). */
63
63
  readonly deletable: import("@angular/core").InputSignal<boolean>;
64
64
  readonly deleteLabelInput: import("@angular/core").InputSignal<string | null>;
65
65
  readonly deleteLabel: import("@angular/core").Signal<string>;
@@ -67,6 +67,8 @@ export declare class CardListItemComponent {
67
67
  readonly deleteTestId: import("@angular/core").InputSignal<string>;
68
68
  /** Built-in secondary chip button (text = `actionLabel`, e.g. "Download") -> `action`; shown only while `actionLabel` is not empty. */
69
69
  readonly actionLabel: import("@angular/core").InputSignal<string>;
70
+ /** Icon of the `actionLabel` chip: the `d` value of a 24x24 stroke path (like the Edit / View / delete chips, which always have one). Empty = no icon. */
71
+ readonly actionIcon: import("@angular/core").InputSignal<string>;
70
72
  readonly actionTestId: import("@angular/core").InputSignal<string>;
71
73
  readonly actionAriaLabel: import("@angular/core").InputSignal<string>;
72
74
  /** A built-in Edit / View / action / delete button shows (the row then keeps a minimum height so a badge and a chip never overlap). */
@@ -77,6 +79,7 @@ export declare class CardListItemComponent {
77
79
  readonly action: import("@angular/core").OutputEmitterRef<void>;
78
80
  protected readonly calendarPath = "M5 4h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z M16 2v4 M8 2v4 M3 10h18";
79
81
  protected readonly editPath = "M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7 M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z";
82
+ protected readonly eyePath = "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z M12 9a3 3 0 1 0 0 6 3 3 0 0 0 0-6z";
80
83
  protected readonly trashPath = "M3 6h18 M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2 M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6 M10 11v6 M14 11v6";
81
84
  protected readonly iconPath: import("@angular/core").Signal<string | null>;
82
85
  protected readonly indicatorLabel: import("@angular/core").Signal<string>;
@@ -167,6 +170,11 @@ export declare class CardListItemComponent {
167
170
  "required": false;
168
171
  "isSignal": true;
169
172
  };
173
+ "actionIcon": {
174
+ "alias": "actionIcon";
175
+ "required": false;
176
+ "isSignal": true;
177
+ };
170
178
  "actionTestId": {
171
179
  "alias": "actionTestId";
172
180
  "required": false;
@@ -52,6 +52,8 @@ export declare class ColorInputComponent implements ControlValueAccessor, Valida
52
52
  readonly showErrors: import("@angular/core").InputSignal<boolean>;
53
53
  /** Accept (and keep) 8-digit `#rrggbbaa` values. */
54
54
  readonly allowAlpha: import("@angular/core").InputSignal<boolean>;
55
+ /** Show the hex text box next to the swatch (default). `false` = the swatch alone, stretched to a full-width colour field with a palette icon: the user only clicks it and picks. */
56
+ readonly showText: import("@angular/core").InputSignal<boolean>;
55
57
  /** Optional row of preset swatches. */
56
58
  readonly presets: import("@angular/core").InputSignal<ColorPreset[]>;
57
59
  /** Emits whenever the field becomes invalid / valid. */
@@ -144,6 +146,11 @@ export declare class ColorInputComponent implements ControlValueAccessor, Valida
144
146
  "required": false;
145
147
  "isSignal": true;
146
148
  };
149
+ "showText": {
150
+ "alias": "showText";
151
+ "required": false;
152
+ "isSignal": true;
153
+ };
147
154
  "presets": {
148
155
  "alias": "presets";
149
156
  "required": false;
@@ -95,6 +95,8 @@ export declare class DetailCardComponent {
95
95
  readonly noPadding: import("@angular/core").InputSignal<boolean>;
96
96
  /** Max height of the card body (any CSS length, e.g. `360px`): a longer body scrolls inside the card so the card never gets crazy long. Empty = no limit (or the `--dc-body-max-height` custom property, which a page can set on the card or an ancestor). */
97
97
  readonly maxBodyHeight: import("@angular/core").InputSignal<string>;
98
+ /** true = content in the body (a ui-contact-picker result list, a dropdown menu) may extend beyond the card's edge instead of being clipped or scrolling inside the body. Ignored while the body is collapsed. Do not combine with `maxBodyHeight`, whose scrolling needs the clip. Default false: unchanged. */
99
+ readonly overflowVisible: import("@angular/core").InputSignal<boolean>;
98
100
  /** true = a click on the card (outside interactive controls and text selections) toggles `selected`. The card must contain its own checkbox for keyboard / screen-reader users. Default false: no handler, cursor or outline. */
99
101
  readonly selectable: import("@angular/core").InputSignal<boolean>;
100
102
  /** Two-way: whether the card is selected (only shown / toggled when `selectable`). */
@@ -224,6 +226,11 @@ export declare class DetailCardComponent {
224
226
  "required": false;
225
227
  "isSignal": true;
226
228
  };
229
+ "overflowVisible": {
230
+ "alias": "overflowVisible";
231
+ "required": false;
232
+ "isSignal": true;
233
+ };
227
234
  "selectable": {
228
235
  "alias": "selectable";
229
236
  "required": false;
@@ -88,6 +88,8 @@ export declare class DropdownComponent {
88
88
  * right edge instead of the left when that is the side with room (`align` = auto), opens above the trigger when there is more room there, and is capped to
89
89
  * the room left on that side (so it scrolls inside only when it truly does not fit). No layout APIs (server rendering) = the default placement.
90
90
  */
91
+ /** The visible vertical range for the menu: the screen narrowed by each ancestor that clips its overflow (auto / scroll / hidden / clip). */
92
+ private _verticalBounds;
91
93
  private _place;
92
94
  private _openAndFocus;
93
95
  /** Renders the menu synchronously, then focuses the pending first / last enabled item. */
@@ -725,6 +725,10 @@ export interface GalleryImage {
725
725
  * - `loop` (default true): Next after the last goes to the first, Previous before the first to the last. false disables
726
726
  * the button at either end.
727
727
  * - `showDots` / `showCounter` (default true), `aspectRatio` (default "4 / 3"), `maxHeight` (default "70vh"), `fit` (default contain).
728
+ * - `aspectRatioCompact` (default '' = same as `aspectRatio`): the ratio used while the screen is at most `compactBelow` px wide (default 640), e.g. a thin
729
+ * "16 / 6" strip on a desktop and "4 / 3" on a phone. Follows the screen live (rotating a phone switches it). Without it nothing changes.
730
+ * - `priority` (default false): the shown picture is above the fold (a listing's hero): it loads eagerly with high fetch priority, like `ui-image [priority]`.
731
+ * Only the shown picture is an `<img>`, so one request is prioritised; the others load when selected, as before.
728
732
  * - Keyboard: with focus inside the gallery, ArrowLeft / ArrowRight (and Home / End) change the picture. The picture
729
733
  * change is announced ("Image 2 of 5: <alt>") through an always-present live region.
730
734
  * - Accessibility: a labelled group (`ariaLabel`, default "Image gallery") described as a carousel; the buttons are named
@@ -739,6 +743,14 @@ export declare class ImageGalleryComponent {
739
743
  readonly showDots: import("@angular/core").InputSignal<boolean>;
740
744
  readonly showCounter: import("@angular/core").InputSignal<boolean>;
741
745
  readonly aspectRatio: import("@angular/core").InputSignal<string>;
746
+ /** The ratio on a narrow screen ('' = use `aspectRatio` everywhere). */
747
+ readonly aspectRatioCompact: import("@angular/core").InputSignal<string>;
748
+ /** Widest screen (px) that counts as narrow for `aspectRatioCompact`. */
749
+ readonly compactBelow: import("@angular/core").InputSignal<number>;
750
+ /** The shown picture loads eagerly with high fetch priority (above the fold). */
751
+ readonly priority: import("@angular/core").InputSignal<boolean>;
752
+ private readonly narrow;
753
+ protected readonly ratio: import("@angular/core").Signal<string>;
742
754
  readonly maxHeight: import("@angular/core").InputSignal<string>;
743
755
  readonly fit: import("@angular/core").InputSignal<"contain" | "cover">;
744
756
  readonly ariaLabelInput: import("@angular/core").InputSignal<string | null>;
@@ -749,6 +761,7 @@ export declare class ImageGalleryComponent {
749
761
  * no buttons, so the dialog keeps its normal initial focus. Default false: unchanged.
750
762
  */
751
763
  readonly autofocus: import("@angular/core").InputSignal<boolean>;
764
+ constructor();
752
765
  protected readonly count: import("@angular/core").Signal<number>;
753
766
  /** `index` clamped into the list. */
754
767
  protected readonly position: import("@angular/core").Signal<number>;
@@ -796,6 +809,21 @@ export declare class ImageGalleryComponent {
796
809
  "required": false;
797
810
  "isSignal": true;
798
811
  };
812
+ "aspectRatioCompact": {
813
+ "alias": "aspectRatioCompact";
814
+ "required": false;
815
+ "isSignal": true;
816
+ };
817
+ "compactBelow": {
818
+ "alias": "compactBelow";
819
+ "required": false;
820
+ "isSignal": true;
821
+ };
822
+ "priority": {
823
+ "alias": "priority";
824
+ "required": false;
825
+ "isSignal": true;
826
+ };
799
827
  "maxHeight": {
800
828
  "alias": "maxHeight";
801
829
  "required": false;
@@ -629,7 +629,7 @@ export declare class DocumentSendOptionsComponent implements UiFieldValidity {
629
629
  /** Roles of documents whose row had no `signerRoles` and that the host resolves (`signers().resolveRoles`). */
630
630
  readonly roleStates: import("@angular/core").WritableSignal<Record<string, RoleState>>;
631
631
  /** The envelope's documents: `loading` / `error` while the panel reads them (`loadDocuments`), `ready` once known. */
632
- readonly envelopeStatus: import("@angular/core").WritableSignal<"idle" | "loading" | "ready" | "error">;
632
+ readonly envelopeStatus: import("@angular/core").WritableSignal<"error" | "loading" | "ready" | "idle">;
633
633
  private envelopeSub;
634
634
  private readonly roleSubs;
635
635
  /** The sender opened the collapsed "Signing options" line. */
@@ -792,7 +792,7 @@ export declare class QboConnectComponent {
792
792
  readonly loading: import("@angular/core").ModelSignal<boolean>;
793
793
  protected readonly awaiting: import("@angular/core").WritableSignal<boolean>;
794
794
  protected readonly confirming: import("@angular/core").WritableSignal<boolean>;
795
- protected readonly state: import("@angular/core").Signal<"none" | "connected" | "reconnect">;
795
+ protected readonly state: import("@angular/core").Signal<"connected" | "none" | "reconnect">;
796
796
  protected readonly company: import("@angular/core").Signal<string>;
797
797
  protected readonly connectedOn: import("@angular/core").Signal<string>;
798
798
  /** What the persistent status region says: the current state, plus "Loading." while a request runs. */
@@ -362,7 +362,7 @@ export declare class SquarePaymentComponent {
362
362
  readonly applicationId: import("@angular/core").InputSignal<string | null>;
363
363
  readonly locationId: import("@angular/core").InputSignal<string | null>;
364
364
  /** `'production'` or `'sandbox'` (default: the provider's, else `'sandbox'`). Decides which Square host the SDK script comes from. */
365
- readonly environment: import("@angular/core").InputSignal<"sandbox" | "production" | null>;
365
+ readonly environment: import("@angular/core").InputSignal<"production" | "sandbox" | null>;
366
366
  /** The amount in major units (12.5 = $12.50), for buyer verification (SCA / 3-D Secure) of a card payment. */
367
367
  readonly amount: import("@angular/core").InputSignal<number | null>;
368
368
  readonly currency: import("@angular/core").InputSignal<string>;
@@ -1615,7 +1615,7 @@ export declare class SquarePaymentMethodComponent extends PaymentMethodPlugin {
1615
1615
  readonly estimateFees: import("@angular/core").InputSignal<((ctx: SquareFeeContext) => HostResult<SquareFees>) | null>;
1616
1616
  readonly applicationId: import("@angular/core").InputSignal<string | null>;
1617
1617
  readonly locationId: import("@angular/core").InputSignal<string | null>;
1618
- readonly environment: import("@angular/core").InputSignal<"sandbox" | "production" | null>;
1618
+ readonly environment: import("@angular/core").InputSignal<"production" | "sandbox" | null>;
1619
1619
  /** The buyer's billing contact: with it the card form runs buyer verification (SCA / 3-D Secure) before the token reaches your backend. */
1620
1620
  readonly billingContact: import("@angular/core").InputSignal<SquareBillingContact | null>;
1621
1621
  /** The account holder name offered for the bank account. */