@forgeroute/ui 0.4.91 → 0.4.93

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.
@@ -385,6 +385,27 @@ export type BulkUpdateOption<T = any> = string | {
385
385
  * { field: 'status', allowedFrom: { SENT: ['DRAFT'] }, canChange: (row, target) => target !== 'SENT' || canSend(row) }
386
386
  */
387
387
  canChange?: (row: T, target: string) => boolean;
388
+ /**
389
+ * Field changes (`{ field, canApply }`): a rule on the WHOLE selection, in addition to the per-row `allowedFrom` / `canChange`. Called with every
390
+ * selected row of the loaded page and the target value; return `true` to allow, `false` (generic reason) or a string (the reason shown to the
391
+ * user) to refuse. Use it for a rule no single row can express ("an Archived invoice batch must all belong to one customer", "all rows must
392
+ * share the same status"). Keep it identical to the backend rule. A target it refuses is listed in the select but disabled, with a visible
393
+ * "<option>: <reason>" hint, and Apply re-checks it (a refused target is never confirmed or sent; the reason is shown as an error toast). A function that throws counts as
394
+ * refused. It only sees rows on the loaded page. Ignored for Delete and direct actions. Omit it and nothing changes.
395
+ *
396
+ * { field: 'status', canApply: (rows, target) => target !== 'MERGED' || new Set(rows.map(r => r.customerId)).size === 1 || 'Rows must belong to one customer.' }
397
+ */
398
+ canApply?: (rows: T[], target: string) => boolean | string;
399
+ /**
400
+ * Field changes (`{ field, listAll }`): list the FULL set of values in the "Change <column>" select instead of only the values the
401
+ * /filter-counts response currently carries (which omits values no row has yet). `true` = the filter-count values plus every target of
402
+ * `allowedFrom` that is not already listed; a list of values = exactly that set, in that order (labelled through the column's `badgeFn`). The
403
+ * `exclude`, `allowedFrom`, `canChange` and `canApply` rules and the "not already held by every selected row" rule still apply, so listing a
404
+ * value never offers a change the table knows the server refuses. An empty list is ignored. Omit it and nothing changes.
405
+ *
406
+ * { field: 'status', listAll: ['DRAFT', 'SENT', 'SIGNED', 'VOIDED'], allowedFrom: { SENT: ['DRAFT'], SIGNED: ['SENT'], VOIDED: ['DRAFT', 'SENT'] } }
407
+ */
408
+ listAll?: true | readonly string[];
388
409
  /**
389
410
  * Direct bulk action (`{ field: 'resend', action: true, label: 'Resend' }`): a bulk-bar button that is neither a field change nor
390
411
  * Delete. `field` is the action key (no column needed), the button type is `action-<field>` and there is no inline select.
@@ -501,6 +522,10 @@ export interface BulkActionDef {
501
522
  deletable?: (row: any) => boolean;
502
523
  /** Field changes: per-row check that the server will accept the move to a target (from `{ field, canChange }`). */
503
524
  canChange?: (row: any, target: string) => boolean;
525
+ /** Field changes: rule on the whole selection (from `{ field, canApply }`): true = allowed, false / a string = refused (the string is the reason). */
526
+ canApply?: (rows: any[], target: string) => boolean | string;
527
+ /** Field changes: list the full value set (from `{ field, listAll }`): `true` or the exact list of values. */
528
+ listAll?: true | readonly string[];
504
529
  /** True for a direct bulk action (from `{ field, action: true, label }`); `type` is `action-<key>` and `field` is not set (no inline select). */
505
530
  action?: boolean;
506
531
  /** Direct action: which rows the server will accept (from `{ field, action: true, eligible }`). */
@@ -2105,6 +2130,8 @@ export declare const UI_DEFAULT_LABELS: {
2105
2130
  readonly 'dataTable.skipAlreadyHas_other': "{{ count }} selected rows already have this value and will be skipped.";
2106
2131
  readonly 'dataTable.noChangesBlocked': "No changes — the selected rows can't be changed to {{ option }}.";
2107
2132
  readonly 'dataTable.noChangesAlready': "No changes — all selected {{ item }} already have {{ option }}.";
2133
+ readonly 'dataTable.bulkCannotApply': "The selected rows can't all be changed to {{ option }} together.";
2134
+ readonly 'dataTable.bulkOptionBlocked': "{{ option }}: {{ reason }}";
2108
2135
  readonly 'dataTable.doneUpdated': "updated";
2109
2136
  readonly 'dataTable.doneDeleted': "deleted";
2110
2137
  readonly 'dataTable.doneDownloaded': "downloaded";
@@ -3034,8 +3061,8 @@ export declare function requiredIssue(label: string): FieldIssue;
3034
3061
  /** "Too long (max N characters)." when the trimmed text is longer than `max`. */
3035
3062
  export declare function maxLengthIssue(text: string, max: number | undefined | null): FieldIssue | null;
3036
3063
  /**
3037
- * Touched / reveal bookkeeping shared by the inputs. Internal messages are shown only once the field was blurred or the
3038
- * host sets `showErrors`. Switching `showErrors` from true back to false (the host re-initialising its form) clears the
3064
+ * Touched / reveal bookkeeping shared by the inputs. Messages (built-in AND a host `[error]`) are shown only once the user
3065
+ * interacted with the field itself (blurred it); `showErrors` never reveals an untouched field. Switching `showErrors` from true back to false (the host re-initialising its form) clears the
3039
3066
  * touched state again. Must be called from an injection context.
3040
3067
  */
3041
3068
  export declare function createFieldReveal(showErrors: Signal<boolean>): {
@@ -3119,9 +3146,9 @@ export declare class SelectComponent implements ControlValueAccessor, Validator,
3119
3146
  /** 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. */
3120
3147
  readonly ariaDescribedBy: import("@angular/core").InputSignal<string>;
3121
3148
  readonly error: import("@angular/core").InputSignal<string>;
3122
- /** Reveal the built-in error messages now (e.g. after a failed Save click), without waiting for blur. */
3149
+ /** The host's "tried to submit" flag (e.g. after a failed Save click). It never reveals a message on a field the user has not left (messages show only after the user left THIS field); switching it from true back to false forgets that the field was left. */
3123
3150
  readonly showErrors: import("@angular/core").InputSignal<boolean>;
3124
- readonly size: import("@angular/core").InputSignal<"default" | "sm">;
3151
+ readonly size: import("@angular/core").InputSignal<"sm" | "default">;
3125
3152
  readonly _disabledInput: import("@angular/core").InputSignal<boolean>;
3126
3153
  private readonly _cvaDisabled;
3127
3154
  protected readonly disabled: import("@angular/core").Signal<boolean>;
@@ -3521,6 +3548,12 @@ export declare class DataTableComponent<T extends Record<string, any>> implement
3521
3548
  * are unaffected. The table still hides the menu by itself when it is empty and unfiltered.
3522
3549
  */
3523
3550
  readonly showMoreActions: import("@angular/core").InputSignal<boolean>;
3551
+ /**
3552
+ * Words a quick-filter tab. Called with the tab's key (a key of `/counts`, e.g. `no-deals`); the text it returns is the tab's label. Return `null`, `undefined` or `''` for a key the host does not
3553
+ * word and the table reads it as before (the label of a column with a `badgeFn` that has that value, else the key split into capitalised words: `no-deals` → "No Deals"). Use it when a tab has no
3554
+ * column to take its text from, e.g. a Spanish app wording `no-deals` → "Sin negocios". The tab's `value` (the key sent to the backend) never changes. Default: none (every label as before).
3555
+ */
3556
+ readonly quickTabLabelFn: import("@angular/core").InputSignal<((key: string) => string | null | undefined) | null>;
3524
3557
  /**
3525
3558
  * Show the search box above the table. Defaults true. Set false for small fixed tables where searching is meaningless
3526
3559
  * (a handful of summary rows). Quick-filter tabs and the toolbar are unaffected; when the search box, the tabs and the
@@ -3861,8 +3894,17 @@ export declare class DataTableComponent<T extends Record<string, any>> implement
3861
3894
  private _actionKeyLabel;
3862
3895
  /** Runs a direct action's `eligible` predicate; a predicate that throws counts as "row not eligible". */
3863
3896
  private _isActionEligible;
3864
- /** Options for a field-based bulk action: the field's options minus the entry's `exclude` values. */
3897
+ /** Options for a field-based bulk action: the field's options (or, with `listAll`, its full value set) minus the entry's `exclude` values. */
3865
3898
  private _bulkOptionsFor;
3899
+ /**
3900
+ * `listAll` options: a list of values = exactly that set in that order; `true` = the usual options (filter counts, or the page's distinct values)
3901
+ * plus every `allowedFrom` target not yet listed. Labels go through the column's `badgeFn`, like the usual options. Blank and repeated values are dropped.
3902
+ */
3903
+ private _listAllOptions;
3904
+ /** The loaded-page rows the user has selected. */
3905
+ private _selectedRows;
3906
+ /** The `canApply` verdict of a bulk change for the whole selection: allowed, or the reason it is refused (a throwing rule refuses). */
3907
+ private _applyVerdict;
3866
3908
  /** True when a row whose field currently holds `current` may be moved to `target` by this action. */
3867
3909
  private _canBulkMove;
3868
3910
  /** True when `value` is in the action's `exclude` list (ignoring case, spaces, dashes and underscores). */
@@ -3878,10 +3920,16 @@ export declare class DataTableComponent<T extends Record<string, any>> implement
3878
3920
  protected _bulkSelectStr: string;
3879
3921
  /** Options for the active bulk action's inline select, filtered to exclude no-ops. */
3880
3922
  protected readonly _eligibleBulkOptions: Signal<{
3881
- [key: string]: any;
3882
3923
  value: string;
3883
3924
  label: string;
3925
+ disabled?: boolean;
3884
3926
  }[]>;
3927
+ /** Id prefix of the reason hints beside the inline select (the select is linked to them with aria-describedby). */
3928
+ protected readonly _bulkHintId: string;
3929
+ /** Space-separated ids of the reason hints, for the select's `aria-describedby` ('' = none, no attribute). */
3930
+ protected readonly _bulkOptionHintIds: Signal<string>;
3931
+ /** "<option>: <reason>" for each target the whole-selection rule (`canApply`) refuses right now; shown as visible text beside the inline select. */
3932
+ protected readonly _bulkOptionHints: Signal<string[]>;
3885
3933
  protected readonly _allSelected: Signal<boolean>;
3886
3934
  protected readonly _someSelected: Signal<boolean>;
3887
3935
  /**
@@ -4194,6 +4242,11 @@ export declare class DataTableComponent<T extends Record<string, any>> implement
4194
4242
  "required": false;
4195
4243
  "isSignal": true;
4196
4244
  };
4245
+ "quickTabLabelFn": {
4246
+ "alias": "quickTabLabelFn";
4247
+ "required": false;
4248
+ "isSignal": true;
4249
+ };
4197
4250
  "showSearch": {
4198
4251
  "alias": "showSearch";
4199
4252
  "required": false;
@@ -4482,7 +4535,7 @@ export declare class ModalComponent implements OnInit, OnDestroy {
4482
4535
  */
4483
4536
  readonly describedBy: import("@angular/core").InputSignal<string | null>;
4484
4537
  readonly maxWidth: import("@angular/core").InputSignal<string>;
4485
- readonly bodyOverflow: import("@angular/core").InputSignal<"auto" | "hidden" | "visible">;
4538
+ readonly bodyOverflow: import("@angular/core").InputSignal<"hidden" | "auto" | "visible">;
4486
4539
  /** `data-testid` of the dialog element itself (the host `<ui-modal>` is always in the page, the dialog only while open). None when empty. */
4487
4540
  readonly dialogTestId: import("@angular/core").InputSignal<string>;
4488
4541
  /** Hides the header X button (e.g. while a request is running). Escape and a backdrop click still close unless `closable` is false. */
@@ -5261,7 +5314,7 @@ export declare class AudioPlayerComponent {
5261
5314
  /** Accessible name of the player. */
5262
5315
  readonly ariaLabel: import("@angular/core").InputSignal<string>;
5263
5316
  /** How much to load before play: 'metadata' (default), 'auto' or 'none'. */
5264
- readonly preload: import("@angular/core").InputSignal<"auto" | "none" | "metadata">;
5317
+ readonly preload: import("@angular/core").InputSignal<"none" | "metadata" | "auto">;
5265
5318
  /** Fires when the browser can't load or decode the source. */
5266
5319
  readonly playbackError: import("@angular/core").OutputEmitterRef<void>;
5267
5320
  protected readonly failed: import("@angular/core").WritableSignal<boolean>;
@@ -5349,7 +5402,7 @@ export declare class TooltipDirective {
5349
5402
  /** Tooltip text; empty or null disables the tooltip. */
5350
5403
  readonly uiTooltip: import("@angular/core").InputSignal<string | null | undefined>;
5351
5404
  /** Preferred side; flips to the other side when there is no room. */
5352
- readonly tooltipPosition: import("@angular/core").InputSignal<"top" | "bottom">;
5405
+ readonly tooltipPosition: import("@angular/core").InputSignal<"bottom" | "top">;
5353
5406
  private readonly host;
5354
5407
  private readonly doc;
5355
5408
  private bubble;
@@ -5561,7 +5614,7 @@ export declare class NotificationBellComponent {
5561
5614
  * Enter selects it too and Home / End select the first / last star (handled here). Each radio is named "1 star", "2 stars", ...
5562
5615
  * - `readonly`: all `max` stars are drawn (filled up to the value, the rest outlined) as one `role="img"` named "4 stars out of 5" ("No rating" for 0; with a `label`: "Quality: 4 stars out of 5"). No inputs.
5563
5616
  * - Validation follows `ui-radio-group` (`UiFieldValidity`, `Validator`, `invalidChange`): `required` -> "<label> is required." when the value is 0;
5564
- * a value that is not a whole number from 0 to `max` -> "Select a valid option."; messages show after the group lost focus or while `[showErrors]="true"`;
5617
+ * a value that is not a whole number from 0 to `max` -> "Select a valid option."; messages (built-in and a host `[error]`) show only after the group lost focus (`[showErrors]` alone never reveals an untouched group);
5565
5618
  * a host `[error]` wins. Disabled and readonly are never invalid.
5566
5619
  * - Stars are gold (same look as `ui-star`, with a darker amber outline so the shape reaches 3:1 against white); empty stars are outlined, so the value never relies on colour alone. 44px touch targets on touch / phones.
5567
5620
  *
@@ -5580,7 +5633,7 @@ export declare class StarRatingComponent implements ControlValueAccessor, Valida
5580
5633
  readonly hint: import("@angular/core").InputSignal<string>;
5581
5634
  readonly error: import("@angular/core").InputSignal<string>;
5582
5635
  readonly required: import("@angular/core").InputSignal<boolean>;
5583
- /** Reveal the built-in error messages now (e.g. after a failed Save click), without waiting for blur. */
5636
+ /** The host's "tried to submit" flag (e.g. after a failed Save click). It never reveals a message on a field the user has not left (messages show only after the user left THIS field); switching it from true back to false forgets that the field was left. */
5584
5637
  readonly showErrors: import("@angular/core").InputSignal<boolean>;
5585
5638
  /** Star size in px (default 24). */
5586
5639
  readonly size: import("@angular/core").InputSignal<number>;
@@ -5815,7 +5868,7 @@ export declare class CheckboxComponent implements ControlValueAccessor, Validato
5815
5868
  * clicking it still toggles the box - e.g. a product name that is both the heading of its card and the label of its checkbox.
5816
5869
  * Default null: plain label text, exactly as before. Single mode only.
5817
5870
  */
5818
- readonly headingLevel: import("@angular/core").InputSignal<1 | 4 | 2 | 3 | 5 | 6 | null>;
5871
+ readonly headingLevel: import("@angular/core").InputSignal<1 | 2 | 3 | 4 | 5 | 6 | null>;
5819
5872
  readonly indeterminate: import("@angular/core").InputSignal<boolean>;
5820
5873
  readonly checked: import("@angular/core").ModelSignal<boolean>;
5821
5874
  /**
@@ -5876,7 +5929,7 @@ export declare class CheckboxComponent implements ControlValueAccessor, Validato
5876
5929
  readonly hint: import("@angular/core").InputSignal<string>;
5877
5930
  /** Host-provided error message (wins over the built-in one). */
5878
5931
  readonly error: import("@angular/core").InputSignal<string>;
5879
- /** Reveal the built-in error message now (e.g. after a failed Save click), without waiting for a toggle. */
5932
+ /** The host's "tried to submit" flag (e.g. after a failed Save click). It never reveals a message on a control the user has not left (messages show only after the user left THIS control); switching it from true back to false forgets that the control was left. */
5880
5933
  readonly showErrors: import("@angular/core").InputSignal<boolean>;
5881
5934
  protected readonly _descId: string;
5882
5935
  private readonly _reveal;
@@ -6250,7 +6303,7 @@ export declare class StepperComponent {
6250
6303
  * its circle, one continuous line behind the circles that fills as steps complete; a complete step shows a check, the current step an
6251
6304
  * accent ring with a dot, an upcoming step an empty circle (no numbers). Circles are 40px (32px with `size="sm"`).
6252
6305
  */
6253
- readonly labelPosition: import("@angular/core").InputSignal<"below" | "beside">;
6306
+ readonly labelPosition: import("@angular/core").InputSignal<"beside" | "below">;
6254
6307
  /** Viewport width in px below which a horizontal stepper is drawn vertical (labels beside the circles), e.g. `640`. null (default) = never. */
6255
6308
  readonly stackBelow: import("@angular/core").InputSignal<number | null>;
6256
6309
  /** CSS length (e.g. `10.5rem`): horizontal only - the list gets `min-width: calc(<step count> * <value>)`. Empty (default) = no minimum. */
@@ -6282,7 +6335,7 @@ export declare class StepperComponent {
6282
6335
  protected readonly rows: import("@angular/core").Signal<{
6283
6336
  step: StepperStep;
6284
6337
  index: number;
6285
- state: "current" | "complete" | "upcoming";
6338
+ state: "complete" | "current" | "upcoming";
6286
6339
  error: boolean;
6287
6340
  errorMessage: string;
6288
6341
  selectable: boolean;
@@ -6422,7 +6475,7 @@ export declare function businessTimeOptions(step?: BusinessHoursStep, hour24?: b
6422
6475
  * <ui-business-hours label="Schedule" [(ngModel)]="schedule" [step]="15" [hour24]="true" [allowSplitShifts]="true" [showCopyToWeekdays]="true" />
6423
6476
  *
6424
6477
  * Inputs
6425
- * - `label` (names the group), `hint`, `error` (host message, wins), `showErrors` (reveal built-in messages now; otherwise after the first change / blur), `disabled`.
6478
+ * - `label` (names the group), `hint`, `error` (host message, wins), `showErrors` (the host's "tried to submit" flag: it never reveals an untouched control; messages show after the first change / blur), `disabled`.
6426
6479
  * - `step` 15 | 30 | 60 minutes between time options (default 30). A stored time that is not on the grid is still offered, so it never shows blank.
6427
6480
  * - `hour24` 24-hour labels ("17:00") instead of "5:00 PM".
6428
6481
  * - `allowSplitShifts` adds an "Add shift" / "Remove shift" link per open day for a second shift (`open2` / `close2`), e.g. 9–12 and 1–5.
@@ -6446,7 +6499,7 @@ export declare class BusinessHoursComponent implements ControlValueAccessor, Val
6446
6499
  readonly hint: import("@angular/core").InputSignal<string>;
6447
6500
  /** Host-provided error message (wins over the built-in ones). */
6448
6501
  readonly error: import("@angular/core").InputSignal<string>;
6449
- /** Reveal the built-in message now (e.g. after a failed Save click) instead of after the first change. */
6502
+ /** The host's "tried to submit" flag. It never reveals the message on an untouched control (it shows after the first change / blur); switching back to false forgets that. */
6450
6503
  readonly showErrors: import("@angular/core").InputSignal<boolean>;
6451
6504
  /** At least one day must be open. */
6452
6505
  readonly required: import("@angular/core").InputSignal<boolean>;
@@ -6609,7 +6662,7 @@ export interface RadioOption {
6609
6662
  * templates render no extra attributes or ids.
6610
6663
  *
6611
6664
  * Validity API (same on every ui input): Angular `Validator`, signals `invalid` + `errorMessage`, `invalidChange` output,
6612
- * provides `UiFieldValidity`. Messages show after the group lost focus or while `[showErrors]="true"`; a host `[error]` wins.
6665
+ * provides `UiFieldValidity`. Messages (built-in and a host `[error]`) show only after the group lost focus; `[showErrors]` alone never reveals an untouched group.
6613
6666
  */
6614
6667
  export declare class RadioGroupComponent implements ControlValueAccessor, Validator, UiFieldValidity {
6615
6668
  private readonly _labels;
@@ -6618,7 +6671,7 @@ export declare class RadioGroupComponent implements ControlValueAccessor, Valida
6618
6671
  readonly required: import("@angular/core").InputSignal<boolean>;
6619
6672
  readonly hint: import("@angular/core").InputSignal<string>;
6620
6673
  readonly error: import("@angular/core").InputSignal<string>;
6621
- /** Reveal the built-in error messages now (e.g. after a failed Save click), without waiting for blur. */
6674
+ /** The host's "tried to submit" flag (e.g. after a failed Save click). It never reveals a message on a field the user has not left (messages show only after the user left THIS field); switching it from true back to false forgets that the field was left. */
6622
6675
  readonly showErrors: import("@angular/core").InputSignal<boolean>;
6623
6676
  readonly orientation: import("@angular/core").InputSignal<"vertical" | "horizontal">;
6624
6677
  /** Native `name` shared by the radios; a unique one is generated when omitted. */
@@ -6912,7 +6965,7 @@ export declare class ButtonComponent {
6912
6965
  * `ghost-start`: a ghost button for list / section toggles - a full-width row with its content aligned to the start, transparent
6913
6966
  * background, hover tint and the normal focus ring. Pair it with `ariaExpanded` / `ariaPressed`; the label may contain a heading element.
6914
6967
  */
6915
- readonly variant: import("@angular/core").InputSignal<"warning" | "link" | "primary" | "danger" | "secondary" | "ghost" | "ghost-start" | "tab" | "icon" | "icon-danger">;
6968
+ readonly variant: import("@angular/core").InputSignal<"warning" | "link" | "primary" | "secondary" | "danger" | "ghost" | "ghost-start" | "tab" | "icon" | "icon-danger">;
6916
6969
  /** Renders an anchor to this route instead of a button (use with `variant="link"` for an inline text link). `['/settings']` or `'/settings'`. While `disabled` or `loading` it renders a non-clickable `<span role="link" aria-disabled>` with no href (like `href`). */
6917
6970
  readonly routerLink: import("@angular/core").InputSignal<string | readonly unknown[] | null>;
6918
6971
  /** Query params of the `routerLink` (e.g. `{ section: 'deal-defaults' }`). */
@@ -6957,7 +7010,7 @@ export declare class ButtonComponent {
6957
7010
  private readonly _narrow;
6958
7011
  readonly color: import("@angular/core").InputSignal<string | undefined>;
6959
7012
  readonly active: import("@angular/core").InputSignal<boolean>;
6960
- readonly size: import("@angular/core").InputSignal<"xs" | "sm" | "md" | "lg">;
7013
+ readonly size: import("@angular/core").InputSignal<"sm" | "md" | "lg" | "xs">;
6961
7014
  readonly type: import("@angular/core").InputSignal<"button" | "reset" | "submit">;
6962
7015
  readonly disabled: import("@angular/core").InputSignal<boolean>;
6963
7016
  readonly loading: import("@angular/core").InputSignal<boolean>;
@@ -7377,7 +7430,7 @@ export declare class ContactPickerComponent {
7377
7430
  readonly errorId: import("@angular/core").InputSignal<string>;
7378
7431
  /** Marks the combobox / selected group `aria-invalid="true"`. The picker renders no error text itself. */
7379
7432
  readonly invalid: import("@angular/core").InputSignal<boolean>;
7380
- /** Reveal the built-in "<label> is required." message (`visibleErrorMessage`) now, e.g. after a failed Save click. */
7433
+ /** The host's "tried to submit" flag (e.g. after a failed Save click). It never reveals `visibleErrorMessage` on a picker the user has not left. */
7381
7434
  readonly showErrors: import("@angular/core").InputSignal<boolean>;
7382
7435
  readonly showDetails: import("@angular/core").InputSignal<boolean>;
7383
7436
  readonly isMultiSelect: import("@angular/core").InputSignal<boolean>;
@@ -7415,9 +7468,9 @@ export declare class ContactPickerComponent {
7415
7468
  readonly fieldInvalid: import("@angular/core").Signal<boolean>;
7416
7469
  /** "<label> is required." while required-and-empty ('' otherwise), shown or not. */
7417
7470
  readonly errorMessage: import("@angular/core").Signal<string>;
7418
- /** `errorMessage` only after the input was blurred or `showErrors` is set — render it in a `<ui-error>` under the picker. */
7471
+ /** `errorMessage` only after the user left the picker (`showErrors` alone does not reveal it) — render it in a `<ui-error>` under the picker. */
7419
7472
  readonly visibleErrorMessage: import("@angular/core").Signal<string>;
7420
- /** aria-invalid: the host flag, or required-and-empty while the host opted in with `[showErrors]` (so apps that only pass `required` render exactly as before). */
7473
+ /** aria-invalid: only once the user left the picker, and then when the host `[invalid]` flag is set or it is required-and-empty. Never before that: neither the host flag nor `showErrors` alone marks an untouched picker. */
7421
7474
  readonly ariaInvalid: import("@angular/core").Signal<boolean>;
7422
7475
  /** The hint is search guidance: hidden while a contact is selected (single-select), back after clear. */
7423
7476
  readonly showHint: import("@angular/core").Signal<boolean>;
@@ -7440,6 +7493,8 @@ export declare class ContactPickerComponent {
7440
7493
  constructor();
7441
7494
  onInput(): void;
7442
7495
  onFocus(): void;
7496
+ /** Focus left the selected-contact group (its clear button or the group itself): the picker counts as touched, so a host `[invalid]` can mark it. */
7497
+ onSelectedFocusOut(): void;
7443
7498
  /** Delayed so a click on an option still lands; cancelled if focus returns (or the user types) first. */
7444
7499
  onBlur(): void;
7445
7500
  private clearBlurTimer;
@@ -7757,14 +7812,14 @@ export declare const DEFAULT_BANK_HOLDER_TYPE_OPTIONS: SelectOption[];
7757
7812
  *
7758
7813
  * - Validation is inline through the inputs' own `[error]` / built-in rules. The routing number is only checked for 9 digits (no ABA checksum: the
7759
7814
  * provider validates the real number, and a client checksum would reject test numbers). Account numbers are 4-17 digits.
7760
- * - Messages show after blur, while a field holds something invalid, or while `[showErrors]` is true; a failed `submit()` reveals them all.
7815
+ * - Every message (the built-in ones and the form's own routing / account / confirm messages, which are passed to the inputs as `[error]`) shows only after the user left THAT field (blur). `[showErrors]` and a failed `submit()` reveal nothing on a field the user never left; they only block submitting. Switching the reveal flag from true back to false (the host's `showErrors` going false, or `reset()`) clears every field's touched state.
7761
7816
  * - The form provides `UiFieldValidity` (`invalid` = not submittable), so a host can gate its own button with `viewChildren(UiFieldValidity)`,
7762
7817
  * or use `(validChange)`.
7763
7818
  * - The host's footer button calls `form.submit()` (via `viewChild`); Enter in a text field submits too.
7764
7819
  */
7765
7820
  export declare class BankAccountFormComponent implements UiFieldValidity {
7766
7821
  protected readonly labels: UiLabelsService;
7767
- /** Reveal every built-in error now (e.g. bind to a panel's `touched()`); `submit()` on an invalid form also reveals them. */
7822
+ /** The host's "tried to submit" flag (e.g. a panel's `touched()`). It never reveals a message on a field the user has not left; it only blocks submitting, and switching it from true back to false clears every field's touched state. */
7768
7823
  readonly showErrors: import("@angular/core").InputSignal<boolean>;
7769
7824
  /** Disables every field and blocks `submit()`. */
7770
7825
  readonly disabled: import("@angular/core").InputSignal<boolean>;
@@ -7798,6 +7853,7 @@ export declare class BankAccountFormComponent implements UiFieldValidity {
7798
7853
  protected readonly routingFormatter: (raw: string) => string;
7799
7854
  protected readonly accountFormatter: (raw: string) => string;
7800
7855
  protected readonly locked: import("@angular/core").Signal<boolean>;
7856
+ /** Handed to the inputs as `[showErrors]`. An input never reveals an untouched field because of it; it exists so true -> false (host flag off, or `reset()` after a failed `submit()`) clears each input's touched state. */
7801
7857
  protected readonly reveal: import("@angular/core").Signal<boolean>;
7802
7858
  protected readonly routingError: import("@angular/core").Signal<string>;
7803
7859
  protected readonly accountError: import("@angular/core").Signal<string>;
@@ -7812,7 +7868,7 @@ export declare class BankAccountFormComponent implements UiFieldValidity {
7812
7868
  constructor();
7813
7869
  protected id(name: string): string;
7814
7870
  protected onEnter(event: Event): void;
7815
- /** Validates and, when valid, emits `submitted`. An invalid form reveals all messages and emits nothing. Ignored while `disabled` / `busy`. */
7871
+ /** Validates and, when valid, emits `submitted`. An invalid form emits nothing and reveals no message on a field the user never left. Ignored while `disabled` / `busy`. */
7816
7872
  submit(): void;
7817
7873
  /** Clears every field back to the defaults (checking, individual, authorization unticked, holder name = `accountHolderNameDefault`). */
7818
7874
  reset(): void;
@@ -8138,7 +8194,7 @@ export declare class TextInputComponent implements ControlValueAccessor, Validat
8138
8194
  * the 0-decimals rule).
8139
8195
  */
8140
8196
  readonly integer: import("@angular/core").InputSignal<boolean>;
8141
- /** Reveal the built-in error messages now (e.g. after a failed Save click), without waiting for blur. */
8197
+ /** The host's "tried to submit" flag (e.g. after a failed Save click). It never reveals a message on a field the user has not left (messages show only after the user left THIS field); switching it from true back to false forgets that the field was left. */
8142
8198
  readonly showErrors: import("@angular/core").InputSignal<boolean>;
8143
8199
  /** 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. */
8144
8200
  readonly valueChange: import("@angular/core").OutputEmitterRef<string | number | null>;
@@ -8522,7 +8578,7 @@ export declare class TextareaInputComponent implements ControlValueAccessor, Val
8522
8578
  readonly error: import("@angular/core").InputSignal<string>;
8523
8579
  /** Opt-in. `true` shows the text in a monospace font (HTML / code / merge-tag fields). Default `false` = unchanged. */
8524
8580
  readonly monospace: import("@angular/core").InputSignal<boolean>;
8525
- /** Reveal the built-in error messages now (e.g. after a failed Save click), without waiting for blur. */
8581
+ /** The host's "tried to submit" flag (e.g. after a failed Save click). It never reveals a message on a field the user has not left (messages show only after the user left THIS field); switching it from true back to false forgets that the field was left. */
8526
8582
  readonly showErrors: import("@angular/core").InputSignal<boolean>;
8527
8583
  readonly _disabledInput: import("@angular/core").InputSignal<boolean>;
8528
8584
  private readonly _cvaDisabled;
@@ -8780,7 +8836,7 @@ export declare function acceptLabel(accept: string): string;
8780
8836
  * files, `rejectEmpty` refuses a 0-byte file (`emptyMessage`) and `minSize` (bytes) refuses smaller ones (`minSizeMessage`). A refused file is never added to the value: the field shows the message (`typeMessage` / `sizeMessage`
8781
8837
  * override the wording, also in picker-only mode), and `(fileRejected)` emits `{ file, reason, message }`.
8782
8838
  * - `required` is a real rule: Angular `Validator` + `UiFieldValidity` (`invalid`, `errorMessage`, `invalidChange`,
8783
- * `showErrors`), like the other inputs. The message shows after the field was used or `[showErrors]="true"`.
8839
+ * `showErrors`), like the other inputs. The message (built-in and host `error`) shows only after the user used the field; `[showErrors]` alone never reveals it. A refused file is always shown at once.
8784
8840
  * - `dropzone`: the field accepts files dropped on it.
8785
8841
  * - `showDetails`: file size after the name; `preview`: a thumbnail of a chosen image.
8786
8842
  * - `loading` (+ `loadingText`): a `ui-skeleton` replaces the file name while the host works on the file (scanning, uploading).
@@ -8797,14 +8853,14 @@ export declare class FileInputComponent implements ControlValueAccessor, Validat
8797
8853
  /** Native `accept` string, e.g. ".pdf,.png". Also enforced on picked and dropped files unless `enforceAccept` is false. */
8798
8854
  readonly accept: import("@angular/core").InputSignal<string>;
8799
8855
  readonly multiple: import("@angular/core").InputSignal<boolean>;
8800
- /** A file must be chosen (a real rule: Validator + UiFieldValidity, message shown after use or `showErrors`). */
8856
+ /** A file must be chosen (a real rule: Validator + UiFieldValidity, message shown only after the user used the field; `showErrors` alone never reveals it). */
8801
8857
  readonly required: import("@angular/core").InputSignal<boolean>;
8802
8858
  readonly hint: import("@angular/core").InputSignal<string>;
8803
8859
  /** Host-provided error message (wins over the built-in ones). Shown under a visible field only. */
8804
8860
  readonly error: import("@angular/core").InputSignal<string>;
8805
8861
  /** false = no visible field; open the picker from the host with `open()`. */
8806
8862
  readonly showField: import("@angular/core").InputSignal<boolean>;
8807
- /** Reveal the built-in "required" message now (e.g. after a failed Save click). */
8863
+ /** The host's "tried to submit" flag (e.g. after a failed Save click). It never reveals the "required" message before the user used the field. */
8808
8864
  readonly showErrors: import("@angular/core").InputSignal<boolean>;
8809
8865
  /**
8810
8866
  * Also report every refused file (wrong type, too big, too small, empty) with a `ToastService` error toast that names the file and
@@ -9121,7 +9177,7 @@ export declare class CopyFieldComponent implements OnDestroy {
9121
9177
  /** Neither the Clipboard API nor the fallback could copy. */
9122
9178
  readonly copyFailed: import("@angular/core").OutputEmitterRef<void>;
9123
9179
  protected readonly _id: string;
9124
- protected readonly _state: import("@angular/core").WritableSignal<"idle" | "copied" | "failed">;
9180
+ protected readonly _state: import("@angular/core").WritableSignal<"idle" | "failed" | "copied">;
9125
9181
  protected readonly _announcement: import("@angular/core").Signal<string>;
9126
9182
  protected readonly _buttonName: import("@angular/core").Signal<string>;
9127
9183
  protected readonly _describedBy: import("@angular/core").Signal<string | null>;
@@ -9210,7 +9266,7 @@ export declare class DateInputComponent implements ControlValueAccessor, Validat
9210
9266
  /** 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. */
9211
9267
  readonly ariaDescribedBy: import("@angular/core").InputSignal<string>;
9212
9268
  readonly error: import("@angular/core").InputSignal<string>;
9213
- /** Reveal the built-in error messages now (e.g. after a failed Save click), without waiting for blur. */
9269
+ /** The host's "tried to submit" flag (e.g. after a failed Save click). It never reveals a message on a field the user has not left (messages show only after the user left THIS field); switching it from true back to false forgets that the field was left. */
9214
9270
  readonly showErrors: import("@angular/core").InputSignal<boolean>;
9215
9271
  /** The `[disabled]` input. Public so `[disabled]="x"` in a host template type-checks (a protected alias target fails with TS2445); disabled when this OR the form control says so. */
9216
9272
  readonly _disabledInput: import("@angular/core").InputSignal<boolean>;
@@ -9308,7 +9364,7 @@ export declare class DatetimeInputComponent implements ControlValueAccessor, Val
9308
9364
  /** 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. */
9309
9365
  readonly ariaDescribedBy: import("@angular/core").InputSignal<string>;
9310
9366
  readonly error: import("@angular/core").InputSignal<string>;
9311
- /** Reveal the built-in error messages now (e.g. after a failed Save click), without waiting for blur. */
9367
+ /** The host's "tried to submit" flag (e.g. after a failed Save click). It never reveals a message on a field the user has not left (messages show only after the user left THIS field); switching it from true back to false forgets that the field was left. */
9312
9368
  readonly showErrors: import("@angular/core").InputSignal<boolean>;
9313
9369
  readonly _disabledInput: import("@angular/core").InputSignal<boolean>;
9314
9370
  private readonly _cvaDisabled;
@@ -9404,7 +9460,7 @@ export declare class TimeInputComponent implements ControlValueAccessor, Validat
9404
9460
  /** 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. */
9405
9461
  readonly ariaDescribedBy: import("@angular/core").InputSignal<string>;
9406
9462
  readonly error: import("@angular/core").InputSignal<string>;
9407
- /** Reveal the built-in error messages now (e.g. after a failed Save click), without waiting for blur. */
9463
+ /** The host's "tried to submit" flag (e.g. after a failed Save click). It never reveals a message on a field the user has not left (messages show only after the user left THIS field); switching it from true back to false forgets that the field was left. */
9408
9464
  readonly showErrors: import("@angular/core").InputSignal<boolean>;
9409
9465
  /** Public (like the other inputs) so `[disabled]` can be bound in a host template. */
9410
9466
  readonly _disabledInput: import("@angular/core").InputSignal<boolean>;
@@ -9525,7 +9581,7 @@ export interface ComboboxSelection {
9525
9581
  * on focus and `(searchChange)` fires with '' so the host can show its initial results.
9526
9582
  * - `[debounce]` ms between the last keystroke and `(searchChange)` (default 250). Focus / ArrowDown-open emit immediately.
9527
9583
  * - `[label] [ariaLabel] [placeholder] [required] [hint] [error] [disabled] [showErrors]` like `ui-text-input`
9528
- * (host `[error]` wins over the built-in "<label> is required."; messages show after blur or `showErrors`).
9584
+ * (host `[error]` wins over the built-in "<label> is required."; messages (built-in and host) show only after the user left the field, `showErrors` alone never reveals an untouched field).
9529
9585
  * - `(searchChange)` string, `(valueChange)` `ComboboxOption | null` (the full chosen option, null when cleared),
9530
9586
  * `(invalidChange)` boolean, `(focused)`, `(blurred)`. Validity: `UiFieldValidity` token + Angular `Validator`.
9531
9587
  *
@@ -9775,12 +9831,19 @@ export declare class MultiSelectComponent implements ControlValueAccessor {
9775
9831
  protected readonly _selectedOptions: import("@angular/core").Signal<SelectOption<string>[]>;
9776
9832
  protected readonly _filteredOptions: import("@angular/core").Signal<SelectOption<string>[]>;
9777
9833
  private _onChange;
9834
+ /** The host `[error]` shows only after the user interacted with the field: closed the list, or moved focus out of the control (Tab away) even if the list stayed open. */
9835
+ private readonly _touched;
9836
+ protected readonly _shownError: import("@angular/core").Signal<string>;
9837
+ /** Forgets that the user interacted (call it when the host resets its form): a host `error` is hidden again until the list is closed or focus leaves. Same method on ui-signature-pad and ui-rich-text-editor. */
9838
+ resetTouched(): void;
9778
9839
  private _onTouched;
9779
9840
  writeValue(val: string[] | null): void;
9780
9841
  registerOnChange(fn: (v: string[]) => void): void;
9781
9842
  registerOnTouched(fn: () => void): void;
9782
9843
  setDisabledState(d: boolean): void;
9783
9844
  protected onDocumentClick(event: Event): void;
9845
+ /** Focus moved to another element outside the control (Tab away): the field counts as touched even when the list stayed open. */
9846
+ protected onFocusOut(event: FocusEvent): void;
9784
9847
  /** Escape with the list open closes ONLY the list (focus back on the trigger) and is not passed on, so a surrounding side panel / modal stays open. */
9785
9848
  protected onEscape(event: Event): void;
9786
9849
  protected toggleOpen(): void;
@@ -9920,7 +9983,7 @@ export declare class DropdownComponent {
9920
9983
  readonly loader: import("@angular/core").InputSignal<(() => Promise<DropdownItem[]>) | null>;
9921
9984
  readonly active: import("@angular/core").InputSignal<boolean>;
9922
9985
  readonly activeValue: import("@angular/core").InputSignal<string>;
9923
- readonly variant: import("@angular/core").InputSignal<"button" | "badge">;
9986
+ readonly variant: import("@angular/core").InputSignal<"badge" | "button">;
9924
9987
  /** Trigger size for `variant="button"`: `sm` (default, the compact toolbar look) or `md` (same padding and type as a medium `ui-button`). */
9925
9988
  readonly size: import("@angular/core").InputSignal<"sm" | "md">;
9926
9989
  readonly menuWidth: import("@angular/core").InputSignal<string>;
@@ -10236,7 +10299,7 @@ export declare class FormSectionComponent {
10236
10299
  }, {}, never, ["*"], true, never>;
10237
10300
  }
10238
10301
  export declare class FormRowComponent {
10239
- readonly cols: import("@angular/core").InputSignal<1 | 4 | 2 | 3>;
10302
+ readonly cols: import("@angular/core").InputSignal<1 | 2 | 3 | 4>;
10240
10303
  static ɵfac: i0.ɵɵFactoryDeclaration<FormRowComponent, never>;
10241
10304
  static ɵcmp: i0.ɵɵComponentDeclaration<FormRowComponent, "ui-form-row", never, {
10242
10305
  "cols": {
@@ -11569,9 +11632,9 @@ export declare class ChipGroupComponent {
11569
11632
  readonly spaceAbove: import("@angular/core").InputSignal<"none" | "sm" | "md">;
11570
11633
  /** Space below the chip group. */
11571
11634
  readonly spaceBelow: import("@angular/core").InputSignal<"none" | "sm" | "md">;
11572
- protected readonly _gap: import("@angular/core").Signal<"8px" | "12px" | "6px">;
11573
- protected readonly _spaceAbove: import("@angular/core").Signal<"0" | "12px" | "6px">;
11574
- protected readonly _spaceBelow: import("@angular/core").Signal<"0" | "12px" | "6px">;
11635
+ protected readonly _gap: import("@angular/core").Signal<"8px" | "6px" | "12px">;
11636
+ protected readonly _spaceAbove: import("@angular/core").Signal<"0" | "6px" | "12px">;
11637
+ protected readonly _spaceBelow: import("@angular/core").Signal<"0" | "6px" | "12px">;
11575
11638
  static ɵfac: i0.ɵɵFactoryDeclaration<ChipGroupComponent, never>;
11576
11639
  static ɵcmp: i0.ɵɵComponentDeclaration<ChipGroupComponent, "ui-chip-group", never, {
11577
11640
  "gap": {
@@ -11645,6 +11708,21 @@ export type ErrorAction = 'load' | 'save' | 'create' | 'update' | 'delete' | 'se
11645
11708
  * re-thrown unchanged (same instance), so `instanceof HttpErrorResponse` checks keep working.
11646
11709
  */
11647
11710
  export declare const errorContextInterceptor: HttpInterceptorFn;
11711
+ /**
11712
+ * Whole fallback sentences an app supplies instead of a bare noun phrase, so a translated app never gets an English noun inside a sentence of another
11713
+ * language. Pass it as the 2nd argument of {@link getErrorMessage} in place of the `fallbackContext` string. Texts are used exactly as given (no
11714
+ * placeholders, no article handling) except that they are trimmed and `failed` gets a full stop when it does not already end with sentence punctuation; a missing or blank entry falls back to the library's own sentence built from `context` (default "data").
11715
+ */
11716
+ export interface ErrorFallback {
11717
+ /** The sentence for "it failed" (no server message; status 0, 408, 429, 5xx, other statuses, an unknown error), e.g. "No se pudo guardar el contacto.". The library's follow-up ("Please try again.") is appended after it as before. */
11718
+ failed?: string;
11719
+ /** The whole 403 sentence, e.g. "No tienes permiso para guardar el contacto.". */
11720
+ noPermission?: string;
11721
+ /** The whole 404 sentence, e.g. "No se encontró el contacto.". */
11722
+ notFound?: string;
11723
+ /** Noun phrase used by any library sentence this object does not replace (same rules as the string form). */
11724
+ context?: string;
11725
+ }
11648
11726
  /**
11649
11727
  * Extracts a user-friendly error message from any error response.
11650
11728
  * Prioritizes: backend message > status text > typed fallback.
@@ -11655,8 +11733,11 @@ export declare const errorContextInterceptor: HttpInterceptorFn;
11655
11733
  * `fallbackContext` is a bare noun phrase ("contact", "your invoices"); an empty or whitespace-only one becomes "data".
11656
11734
  * The 404 text starts with "The <context>", so one leading article ("the", "a", "an") on the context is dropped
11657
11735
  * there: "the contact" and "a contact" both read "The contact you're looking for could not be found.".
11736
+ *
11737
+ * `fallbackContext` may instead be an {@link ErrorFallback} carrying the whole sentences (`failed`, `noPermission`, `notFound`), for apps whose language the
11738
+ * library's "There was an error <verb> <noun>." template does not fit. The string form is unchanged.
11658
11739
  */
11659
- export declare function getErrorMessage(error: unknown, fallbackContext?: string, action?: ErrorAction): string;
11740
+ export declare function getErrorMessage(error: unknown, fallbackContext?: string | ErrorFallback, action?: ErrorAction): string;
11660
11741
  export interface UsStateOption {
11661
11742
  value: string;
11662
11743
  label: string;
@@ -11990,7 +12071,7 @@ export declare class IconComponent {
11990
12071
  readonly ariaLabel: import("@angular/core").InputSignal<string>;
11991
12072
  /** Icon size in px. */
11992
12073
  readonly size: import("@angular/core").InputSignal<number>;
11993
- readonly variant: import("@angular/core").InputSignal<"default" | "danger">;
12074
+ readonly variant: import("@angular/core").InputSignal<"danger" | "default">;
11994
12075
  readonly disabled: import("@angular/core").InputSignal<boolean>;
11995
12076
  /** The host is running the request this icon started: a spinner replaces the picture and the button is disabled (no click) until it is false again. */
11996
12077
  readonly loading: import("@angular/core").InputSignal<boolean>;
@@ -12435,7 +12516,7 @@ type AddressField = keyof AddressValue;
12435
12516
  * 5 digits or 5+4 ("Enter a valid ZIP code."); state must be one of the options ("Select a valid option."); maxlengths
12436
12517
  * ("Too long (max N characters)."); `requireComplete` -> once ANY of street / city / state / ZIP is filled the others are required too
12437
12518
  * (for an optional address that must not be half-filled). The unit is never required. Messages show per field after that field was left,
12438
- * or all at once while `showErrors` is true; the host `error` is shown under the group and always counts as invalid.
12519
+ * never revealed by `showErrors` alone (only a sub-field the user left shows its message); the host `error` is shown under the group and always counts as invalid.
12439
12520
  *
12440
12521
  * Layout: street + unit, then city + state + ZIP in `ui-form-row`s (they collapse to one column on phones).
12441
12522
  */
@@ -12479,7 +12560,7 @@ export declare class AddressInputComponent implements ControlValueAccessor, Vali
12479
12560
  readonly zipMaxlength: import("@angular/core").InputSignal<number>;
12480
12561
  /** Native select cannot be read-only: while `readonly`, the State select is disabled and the text fields are read-only. */
12481
12562
  readonly readonly: import("@angular/core").InputSignal<boolean>;
12482
- /** Reveal every built-in message now (e.g. after a failed Save click). Switching back to false forgets which fields were left. */
12563
+ /** The host's "tried to submit" flag. It never reveals a message on a sub-field the user has not left; switching back to false forgets which fields were left. */
12483
12564
  readonly showErrors: import("@angular/core").InputSignal<boolean>;
12484
12565
  readonly hint: import("@angular/core").InputSignal<string>;
12485
12566
  /** Host error for the whole address; shown under the group (replaces the hint), always makes the field invalid. */
@@ -12529,6 +12610,8 @@ export declare class AddressInputComponent implements ControlValueAccessor, Vali
12529
12610
  readonly errorMessage: import("@angular/core").Signal<string>;
12530
12611
  /** Street, city, state and ZIP are required: always with `required`, and with `requireComplete` once any of them has text. */
12531
12612
  protected readonly _req: import("@angular/core").Signal<boolean>;
12613
+ /** The host `[error]` shows only after the user left one of the address fields. */
12614
+ protected readonly _shownError: import("@angular/core").Signal<string>;
12532
12615
  protected readonly _describedBy: import("@angular/core").Signal<string | null>;
12533
12616
  private _onChange;
12534
12617
  /** True once a string was written to the control (valueFormat 'auto' then emits strings). */
@@ -12548,7 +12631,7 @@ export declare class AddressInputComponent implements ControlValueAccessor, Vali
12548
12631
  validate(control: AbstractControl): ValidationErrors | null;
12549
12632
  protected _set(field: AddressField, text: unknown): void;
12550
12633
  protected _onFocusOut(field: AddressField, event: FocusEvent): void;
12551
- /** True while the field's own message may show: `showErrors`, or the field was left. Bound to the child's `showErrors` so a reset clears the child too. */
12634
+ /** True while the field's own message may show: only after the field was left (`showErrors` no longer reveals an untouched field). Bound to the child's `showErrors` so a reset clears the child too. */
12552
12635
  protected _revealed(field: AddressField): boolean;
12553
12636
  protected _fieldError(field: AddressField): string;
12554
12637
  private _hasText;
@@ -13438,7 +13521,13 @@ export declare class RichTextEditorComponent implements ControlValueAccessor {
13438
13521
  readonly required: import("@angular/core").InputSignal<boolean>;
13439
13522
  readonly readonly: import("@angular/core").InputSignal<boolean>;
13440
13523
  readonly hint: import("@angular/core").InputSignal<string>;
13524
+ /** Host error message. Shown (with the red state, aria-invalid and aria-describedby) only after the user left the editor (blur). */
13441
13525
  readonly error: import("@angular/core").InputSignal<string>;
13526
+ /** True once the user left the editor. */
13527
+ protected readonly _touched: import("@angular/core").WritableSignal<boolean>;
13528
+ protected readonly _activeError: import("@angular/core").Signal<string>;
13529
+ /** Forgets that the user left the editor (call it when the host resets its form): a host `error` is hidden again until the next blur. Same method on ui-signature-pad and ui-multi-select. */
13530
+ resetTouched(): void;
13442
13531
  /** Minimum editor height in px. */
13443
13532
  readonly minHeight: import("@angular/core").InputSignal<number>;
13444
13533
  /** Maximum editor height in px; taller content scrolls. */
@@ -13768,7 +13857,7 @@ export declare class SwatchPickerComponent implements ControlValueAccessor, Vali
13768
13857
  readonly required: import("@angular/core").InputSignal<boolean>;
13769
13858
  readonly hint: import("@angular/core").InputSignal<string>;
13770
13859
  readonly error: import("@angular/core").InputSignal<string>;
13771
- /** Reveal the built-in error messages now (e.g. after a failed Save click), without waiting for blur. */
13860
+ /** The host's "tried to submit" flag (e.g. after a failed Save click). It never reveals a message on a field the user has not left (messages show only after the user left THIS field); switching it from true back to false forgets that the field was left. */
13772
13861
  readonly showErrors: import("@angular/core").InputSignal<boolean>;
13773
13862
  /** Fixed number of swatches per row (0 = wrap freely, the default). On a phone the row wraps by width instead. */
13774
13863
  readonly columns: import("@angular/core").InputSignal<number>;
@@ -13885,7 +13974,7 @@ export declare class IconPickerComponent implements ControlValueAccessor, Valida
13885
13974
  readonly required: import("@angular/core").InputSignal<boolean>;
13886
13975
  readonly hint: import("@angular/core").InputSignal<string>;
13887
13976
  readonly error: import("@angular/core").InputSignal<string>;
13888
- /** Reveal the built-in error messages now (e.g. after a failed Save click), without waiting for blur. */
13977
+ /** The host's "tried to submit" flag (e.g. after a failed Save click). It never reveals a message on a field the user has not left (messages show only after the user left THIS field); switching it from true back to false forgets that the field was left. */
13889
13978
  readonly showErrors: import("@angular/core").InputSignal<boolean>;
13890
13979
  /** SVG path drawn for an option: its `path`, else the library icon `iconKey` (default: the option's `value`); '' when unknown. */
13891
13980
  protected _path(o: IconPickerOption): string;
@@ -14021,7 +14110,7 @@ export interface RadioMatrixRow {
14021
14110
  * ignored (and kept untouched in the model). Disabled matrices are never invalid.
14022
14111
  *
14023
14112
  * Validity API (same on every ui input): Angular `Validator`, signals `invalid` + `errorMessage`, `invalidChange` output,
14024
- * provides `UiFieldValidity`. Messages show after the matrix lost focus or while `[showErrors]="true"`; a host `[error]` wins.
14113
+ * provides `UiFieldValidity`. Messages (built-in and a host `[error]`) show only after the matrix lost focus; `[showErrors]` alone never reveals an untouched matrix.
14025
14114
  *
14026
14115
  * <ui-radio-matrix label="Page permissions" rowHeader="Page" [rows]="pages" [columns]="levels" [(ngModel)]="permissions" />
14027
14116
  */
@@ -14035,7 +14124,7 @@ export declare class RadioMatrixComponent implements ControlValueAccessor, Valid
14035
14124
  readonly required: import("@angular/core").InputSignal<boolean>;
14036
14125
  readonly hint: import("@angular/core").InputSignal<string>;
14037
14126
  readonly error: import("@angular/core").InputSignal<string>;
14038
- /** Reveal the built-in error messages now (e.g. after a failed Save click), without waiting for blur. */
14127
+ /** The host's "tried to submit" flag (e.g. after a failed Save click). It never reveals a message on a field the user has not left (messages show only after the user left THIS field); switching it from true back to false forgets that the field was left. */
14039
14128
  readonly showErrors: import("@angular/core").InputSignal<boolean>;
14040
14129
  /** Prefix of the native radio `name`s (one name per row); a unique one is generated when omitted. */
14041
14130
  readonly name: import("@angular/core").InputSignal<string>;
@@ -14146,7 +14235,7 @@ export declare class RadioMatrixComponent implements ControlValueAccessor, Valid
14146
14235
  * looks like what was drawn. Changing `width` / `height` after drawing repaints the current signature (scaled to fit) instead of losing it.
14147
14236
  * Screen readers get the keyboard instructions as a description of the pad and a polite "Signature captured" / "Signature cleared" announcement.
14148
14237
  *
14149
- * Public methods: `clear()`, `isEmpty()` and `toDataUrl()` (the current normalized signature, or `null` when empty).
14238
+ * Public methods: `clear()`, `isEmpty()`, `toDataUrl()` (the current normalized signature, or `null` when empty) and `resetTouched()` (hides a host `error` again after the host reset its form; same method on ui-rich-text-editor and ui-multi-select).
14150
14239
  */
14151
14240
  export declare class SignaturePadComponent implements ControlValueAccessor {
14152
14241
  protected readonly labels: UiLabelsService;
@@ -14154,7 +14243,13 @@ export declare class SignaturePadComponent implements ControlValueAccessor {
14154
14243
  /** Accessible name when there is no visible label. A default describing the keyboard controls is used when neither is set. */
14155
14244
  readonly ariaLabel: import("@angular/core").InputSignal<string>;
14156
14245
  readonly hint: import("@angular/core").InputSignal<string>;
14246
+ /** Host error message. Shown (with the red state and aria-invalid) only after the user interacted with the pad itself: finished a stroke or left it. */
14157
14247
  readonly error: import("@angular/core").InputSignal<string>;
14248
+ /** True once the user drew on the pad or tabbed away from it. */
14249
+ protected readonly _touched: import("@angular/core").WritableSignal<boolean>;
14250
+ protected readonly _activeError: import("@angular/core").Signal<string>;
14251
+ /** Forgets that the user interacted (call it when the host resets its form): a host `error` is hidden again until the next stroke / blur. */
14252
+ resetTouched(): void;
14158
14253
  /** Bitmap size of the drawing surface in pixels. The pad is displayed at the container's width with this same aspect ratio, so strokes keep their proportions. */
14159
14254
  readonly width: import("@angular/core").InputSignal<number>;
14160
14255
  readonly height: import("@angular/core").InputSignal<number>;
@@ -14483,7 +14578,7 @@ export declare class DetailCardComponent {
14483
14578
  /** true (default) = the title is displayed in capitals (CSS only); false = shown as written. The text, aria-label and heading name are never changed. */
14484
14579
  readonly uppercaseTitle: import("@angular/core").InputSignal<boolean>;
14485
14580
  /** 1-6 makes the title a real heading for screen readers (role=heading, aria-level); null keeps it plain text. */
14486
- readonly headingLevel: import("@angular/core").InputSignal<1 | 4 | 2 | 3 | 5 | 6 | null>;
14581
+ readonly headingLevel: import("@angular/core").InputSignal<1 | 2 | 3 | 4 | 5 | 6 | null>;
14487
14582
  /** Optional id for the title text; the card is then labelled by it. Without it the title is the card's aria-label. */
14488
14583
  readonly titleId: import("@angular/core").InputSignal<string>;
14489
14584
  /** Accessible name of the card when the header gives none (no header, or no title). A visible title wins; blank = no name. */
@@ -14497,7 +14592,7 @@ export declare class DetailCardComponent {
14497
14592
  /** Background colour of the footer bar (the `[card-footer]` slot) as any CSS colour. Empty = no colour of its own. */
14498
14593
  readonly footerBackground: import("@angular/core").InputSignal<string>;
14499
14594
  /** Alignment of the `[card-footer]` content: `'start'` (default, unchanged) or `'end'` = a right-aligned action row with an 8px gap. */
14500
- readonly footerAlign: import("@angular/core").InputSignal<"start" | "end">;
14595
+ readonly footerAlign: import("@angular/core").InputSignal<"end" | "start">;
14501
14596
  /** Text colour as any CSS colour (`#fff`, `var(--on-dark)` …). Empty = the default colours. Colours the title, subtitle, chevron and body text. */
14502
14597
  readonly textColor: import("@angular/core").InputSignal<string>;
14503
14598
  /** false = no header at all (no title, edit button, toggle or divider): the card is only the body, always open. */
@@ -15169,8 +15264,7 @@ export declare function normalizeHexColor(value: string | null | undefined, allo
15169
15264
  * - Picking in the native picker with an 8-digit value and `allowAlpha` keeps the existing alpha digits.
15170
15265
  *
15171
15266
  * Validity API (same as the other ui inputs): `Validator` (error keys `required`, `color`), signals `invalid` /
15172
- * `errorMessage`, `invalidChange` output, `UiFieldValidity` token. Messages show after blur or while
15173
- * `[showErrors]="true"`; a host `[error]` always wins. Disabled controls are never invalid.
15267
+ * `errorMessage`, `invalidChange` output, `UiFieldValidity` token. Messages (built-in and a host `[error]`) show only after the user left the field; `[showErrors]` alone never reveals an untouched field. Disabled controls are never invalid.
15174
15268
  *
15175
15269
  * Cross-browser: the native swatch is styled with `-webkit-appearance` and the `::-webkit-color-swatch` / `::-moz-color-swatch`
15176
15270
  * pseudo-elements and sits invisibly over our own preview square, so it looks the same in Chrome, Edge, Firefox and Safari.
@@ -15186,7 +15280,7 @@ export declare class ColorInputComponent implements ControlValueAccessor, Valida
15186
15280
  readonly hint: import("@angular/core").InputSignal<string>;
15187
15281
  /** Host error message; always wins over the built-in message. */
15188
15282
  readonly error: import("@angular/core").InputSignal<string>;
15189
- /** Reveal the built-in error messages now (e.g. after a failed Save click), without waiting for blur. */
15283
+ /** The host's "tried to submit" flag (e.g. after a failed Save click). It never reveals a message on a field the user has not left (messages show only after the user left THIS field); switching it from true back to false forgets that the field was left. */
15190
15284
  readonly showErrors: import("@angular/core").InputSignal<boolean>;
15191
15285
  /** Accept (and keep) 8-digit `#rrggbbaa` values. */
15192
15286
  readonly allowAlpha: import("@angular/core").InputSignal<boolean>;
@@ -17286,7 +17380,7 @@ export declare class SetupWizardComponent {
17286
17380
  protected customHintId(): string;
17287
17381
  protected readonly importBlocked: import("@angular/core").Signal<boolean>;
17288
17382
  /** The step's own two parts (`splitLayout`) show as two tabs, one card at a time; this is the open one (it starts on the app's part on every visit). */
17289
- protected readonly splitTab: import("@angular/core").WritableSignal<"extra" | "main">;
17383
+ protected readonly splitTab: import("@angular/core").WritableSignal<"main" | "extra">;
17290
17384
  protected readonly splitTabs: import("@angular/core").Signal<{
17291
17385
  key: string;
17292
17386
  label: string;
@@ -17672,16 +17766,18 @@ export declare class EmailTemplateEditorComponent {
17672
17766
  readonly bodyError: import("@angular/core").Signal<string>;
17673
17767
  /** "Active From / To" only apply when the template is not "all year"; when both are given To may not be before From. */
17674
17768
  readonly datesError: import("@angular/core").Signal<string>;
17675
- /** Errors are held back until the user has had a chance to act: a field is blurred, the message is edited, or Save was clicked while something is invalid. */
17769
+ /** Errors are held back until the user has had a chance to act: a field is blurred, the message is edited or its blocks are left, or the assignments are changed or left. A failed Save (`submitAttempted`) reveals nothing on an untouched field. */
17676
17770
  readonly submitAttempted: import("@angular/core").WritableSignal<boolean>;
17677
17771
  readonly nameTouched: import("@angular/core").WritableSignal<boolean>;
17678
17772
  readonly subjectTouched: import("@angular/core").WritableSignal<boolean>;
17679
17773
  readonly nameErrorShown: import("@angular/core").Signal<string>;
17680
17774
  readonly subjectErrorShown: import("@angular/core").Signal<string>;
17775
+ /** True once focus left the message blocks (the body error then shows). Editing the message also counts (`bodyEdited`). A failed Save never reveals it. */
17776
+ readonly bodyBlurred: import("@angular/core").WritableSignal<boolean>;
17681
17777
  readonly bodyErrorShown: import("@angular/core").Signal<string>;
17682
17778
  /** A template must be assigned to at least one automation (only in an app that offers assignments at all). */
17683
17779
  readonly assignmentError: import("@angular/core").Signal<string>;
17684
- /** True once the user has changed an assignment (or tried to save), so the message never shows on a page nobody has touched yet. */
17780
+ /** True once the user has changed an assignment or focus left the assignments list; a failed Save never sets it, so the message never shows on a control nobody has touched. */
17685
17781
  readonly assignmentsTouched: import("@angular/core").WritableSignal<boolean>;
17686
17782
  readonly assignmentErrorShown: import("@angular/core").Signal<string>;
17687
17783
  readonly canSave: import("@angular/core").Signal<boolean>;
@@ -17689,6 +17785,11 @@ export declare class EmailTemplateEditorComponent {
17689
17785
  readonly saveDisabled: import("@angular/core").Signal<boolean>;
17690
17786
  /** What is still missing, shown as the tooltip of the disabled Save button ('' when Save is available or the member cannot write). */
17691
17787
  readonly saveHint: import("@angular/core").Signal<string>;
17788
+ /** True once the user left a date input; until then the visible hint does not print the dates message (the tooltip still carries it). */
17789
+ readonly datesTouched: import("@angular/core").WritableSignal<boolean>;
17790
+ /** The visible line under Save: the generic "Add a name, a subject, ..." / "Add a shorter name ..." what-is-missing STATUS text of a disabled button (role=status), shown on an untouched form on purpose; it is never a field-specific error message (those wait for their field, and the dates message waits for `datesTouched`). The 'shorter ...' wording is the same generic status, not the field's own "Too long (max N characters)" error.
17791
+ * Details: a dates-only problem is printed only after the date inputs were touched. */
17792
+ readonly saveHintVisible: import("@angular/core").Signal<string>;
17692
17793
  private normalizedLink;
17693
17794
  /** Why Insert is disabled: nothing for an empty field, a message for an address that is not a link. */
17694
17795
  readonly linkUrlError: import("@angular/core").Signal<string>;
@@ -17705,6 +17806,10 @@ export declare class EmailTemplateEditorComponent {
17705
17806
  /** The test email was sent: close the dialog. */
17706
17807
  closeTestSend(): void;
17707
17808
  private applyTemplate;
17809
+ /** Focus left the message blocks for somewhere outside them: the body error may show now. */
17810
+ onBodyFocusOut(event: FocusEvent): void;
17811
+ /** Focus left the assignments list for somewhere outside it: the assignment error may show now. */
17812
+ onAssignmentsFocusOut(event: FocusEvent): void;
17708
17813
  onSave(): void;
17709
17814
  private snapshot;
17710
17815
  private serialize;
@@ -19366,7 +19471,7 @@ export interface PaymentMethodContext {
19366
19471
  readonly currency: string;
19367
19472
  /** Every field of the panel is valid (amount, date, note, allocation). */
19368
19473
  readonly valid: boolean;
19369
- /** Reveals the panel's field errors (as a failed Save click does) and returns whether the form is valid. Call it before starting a charge. */
19474
+ /** Marks the panel as submit-attempted (as a failed Save click does; it reveals no message on a field the user never left) and returns whether the form is valid. Call it before starting a charge. */
19370
19475
  validate(): boolean;
19371
19476
  /** Clears the whole form (method, amount, note, split, allocation; the date returns to today). */
19372
19477
  reset(): void;
@@ -19512,6 +19617,8 @@ export declare class PaymentSidePanelComponent {
19512
19617
  readonly allocationMode: import("@angular/core").WritableSignal<string>;
19513
19618
  readonly selectedCharges: import("@angular/core").WritableSignal<SelectedCharges>;
19514
19619
  readonly touched: import("@angular/core").WritableSignal<boolean>;
19620
+ /** The user ticked / unticked a charge, edited a charge amount or left the charge list. Only then is the allocation message ("Select at least one charge") shown; a failed Save does not reveal it (it still blocks Save via `hasInvalid`). */
19621
+ readonly allocationTouched: import("@angular/core").WritableSignal<boolean>;
19515
19622
  readonly submitting: import("@angular/core").WritableSignal<boolean>;
19516
19623
  readonly submitError: import("@angular/core").WritableSignal<string>;
19517
19624
  readonly announcement: import("@angular/core").WritableSignal<string>;
@@ -19571,6 +19678,8 @@ export declare class PaymentSidePanelComponent {
19571
19678
  private readonly totalPayment;
19572
19679
  protected readonly allocation: import("@angular/core").Signal<AllocationCheck>;
19573
19680
  private readonly allocationPayload;
19681
+ /** `allocation().general` limited to what the user has interacted with. */
19682
+ protected readonly allocationMessage: import("@angular/core").Signal<string>;
19574
19683
  protected readonly hasInvalid: import("@angular/core").Signal<boolean>;
19575
19684
  protected readonly canSplit: import("@angular/core").Signal<boolean>;
19576
19685
  protected readonly readerOptions: import("@angular/core").Signal<{
@@ -20023,21 +20132,38 @@ export interface ModuleLabelOverrides<K extends string = string> {
20023
20132
  en?: Partial<Readonly<Record<K, string>>>;
20024
20133
  es?: Partial<Readonly<Record<K, string>>>;
20025
20134
  }
20135
+ /**
20136
+ * Where the overrides of one `provideModuleLabelOverrides` call come from: a plain object (read once, as always) or a function - typically a `computed` / signal
20137
+ * - that returns the overrides and is called on EVERY text lookup, so the texts follow runtime state (the signed-in company's user type ...) and an OnPush
20138
+ * template that reads them re-renders when a signal the function reads changes. A function that returns null / undefined / a non-object contributes nothing.
20139
+ */
20140
+ export type ModuleLabelOverridesSource<K extends string = string> = ModuleLabelOverrides<K> | (() => ModuleLabelOverrides<K> | null | undefined);
20141
+ interface CleanOverrides {
20142
+ readonly en: Record<string, string>;
20143
+ readonly es: Record<string, string>;
20144
+ }
20026
20145
  /**
20027
20146
  * Lets the host app change single texts of a module, with the semantics of `UiLabelsService.setLabels`: a key the module does not have is ignored, a blank text
20028
20147
  * is ignored (the module's own text stays) and the placeholders must be exactly those of the module's English text of that key (otherwise ignored).
20029
20148
  * Several calls for one namespace merge; the later one wins.
20149
+ * `overrides` may also be a function / signal returning the overrides (see {@link ModuleLabelOverridesSource}): it is evaluated on every lookup with the same
20150
+ * rules, so the texts follow runtime state. A static object behaves exactly as before.
20030
20151
  */
20031
- export declare function provideModuleLabelOverrides<K extends string = string>(namespace: string | Pick<ModuleLabelsHandle<K>, 'namespace'>, overrides: ModuleLabelOverrides<K>): EnvironmentProviders;
20152
+ export declare function provideModuleLabelOverrides<K extends string = string>(namespace: string | Pick<ModuleLabelsHandle<K>, 'namespace'>, overrides: ModuleLabelOverridesSource<K>): EnvironmentProviders;
20032
20153
  type Status = 'idle' | 'loading' | 'done' | 'failed';
20033
20154
  interface ModuleState {
20034
20155
  readonly handle: ModuleLabelsHandle<string>;
20035
20156
  readonly status: WritableSignal<Status>;
20036
20157
  readonly spanish: WritableSignal<Readonly<Record<string, string>> | null>;
20158
+ /** The merged overrides of the static entries; the whole answer when `sources` is null. */
20037
20159
  readonly overrides: {
20038
20160
  en: Record<string, string>;
20039
20161
  es: Record<string, string>;
20040
20162
  };
20163
+ /** Only set when at least one entry is a function: every entry of the namespace in registration order, merged afresh on each lookup. */
20164
+ readonly sources: readonly (CleanOverrides | (() => ModuleLabelOverrides | null | undefined))[] | null;
20165
+ /** Set once a function entry threw and the dev warning was shown. */
20166
+ warned?: boolean;
20041
20167
  }
20042
20168
  /** Root-level store of the module labels of one application: language, lazily loaded Spanish dictionaries (once per module), host overrides. */
20043
20169
  export declare class ModuleLabelsRegistry implements OnDestroy {
@@ -20053,6 +20179,8 @@ export declare class ModuleLabelsRegistry implements OnDestroy {
20053
20179
  stateFor(handle: ModuleLabelsHandle<string>): ModuleState;
20054
20180
  /** Downloads the Spanish texts once per module (a failed download is tried again the next time Spanish becomes active). */
20055
20181
  private load;
20182
+ /** The overrides in force right now: the precomputed static merge, or (a function / signal entry exists) a fresh merge of every entry in order. A throwing function counts as no overrides. */
20183
+ private currentOverrides;
20056
20184
  create<K extends string>(handle: ModuleLabelsHandle<K>): ModuleLabels<K>;
20057
20185
  static ɵfac: i0.ɵɵFactoryDeclaration<ModuleLabelsRegistry, never>;
20058
20186
  static ɵprov: i0.ɵɵInjectableDeclaration<any>;