@forgeroute/ui 0.4.92 → 0.4.94

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.
@@ -321,6 +321,41 @@ export interface SavedView {
321
321
  * store it) leaves the current column filters untouched on load; `{}` clears them.
322
322
  */
323
323
  columnFilters?: Record<string, string> | null;
324
+ /**
325
+ * Active numeric range filters at save time (only tables with `rangeFilters`): column key -> `{ min, max }` (a bound is a number or
326
+ * absent). Written only when a range is set. `undefined` / `null` (views saved before ranges existed, or a backend that doesn't store
327
+ * it) leaves the current ranges untouched on load; `{}` clears them.
328
+ */
329
+ rangeFilters?: Record<string, {
330
+ min?: number | null;
331
+ max?: number | null;
332
+ }> | null;
333
+ }
334
+ /**
335
+ * One `<ui-data-table [rangeFilters]>` entry: gives the visible column `key` a numeric Min / Max filter (same funnel icon and popover as
336
+ * the value-list filter). Opt-in at the TABLE: a column that is not listed (or is hidden) has no range filter, and an empty list changes
337
+ * nothing. When applied, the table sends `<minParam>=<n>` and `<maxParam>=<n>` (a bound that is empty is omitted) on the rows, export and
338
+ * totals requests (not on /counts or /filter-counts, like every column filter); the BACKEND does the filtering.
339
+ *
340
+ * readonly rangeFilters: RangeFilterConfig[] = [{ key: 'rentableSf', minParam: 'rentableSfMin', maxParam: 'rentableSfMax', min: 0, step: 100, format: 'number' }];
341
+ */
342
+ export interface RangeFilterConfig {
343
+ /** Key of a column of the table. */
344
+ key: string;
345
+ /** Query param for the lower bound. Default `<key>Min`. */
346
+ minParam?: string;
347
+ /** Query param for the upper bound. Default `<key>Max`. */
348
+ maxParam?: string;
349
+ /** Lowest value the user may enter (default 0, so negatives are refused; pass a negative number to allow them). */
350
+ min?: number;
351
+ /** Highest value the user may enter (default: no limit). */
352
+ max?: number;
353
+ /** Step of the number fields; also sets the decimals allowed (step 0.01 = 2 decimals, whole-number steps = whole numbers). Default 1. */
354
+ step?: number;
355
+ /** How bounds are written in the chip / active label: plain number (default), US dollars or a percent. Values sent are always plain numbers. */
356
+ format?: 'number' | 'currency' | 'percent';
357
+ /** Text appended to a bound in the label when `format` is 'number' (e.g. 'SF'). */
358
+ unit?: string;
324
359
  }
325
360
  /**
326
361
  * Declares a bulk action available in the table's selection bar.
@@ -406,6 +441,15 @@ export type BulkUpdateOption<T = any> = string | {
406
441
  * { field: 'status', listAll: ['DRAFT', 'SENT', 'SIGNED', 'VOIDED'], allowedFrom: { SENT: ['DRAFT'], SIGNED: ['SENT'], VOIDED: ['DRAFT', 'SENT'] } }
407
442
  */
408
443
  listAll?: true | readonly string[];
444
+ /**
445
+ * Field changes (`{ field, order }`): the order of the "Change <column>" select. Values listed in `order` come first, in that order (matched
446
+ * exactly to the option values, case-sensitive); the remaining options follow in their existing order. Values in `order` that are not among
447
+ * the options are ignored (nothing is added). It only sorts: `exclude`, `allowedFrom`, `canChange`, `canApply`, `listAll` and the "not already
448
+ * held by every selected row" rule decide WHICH options appear. Ignored for Delete and direct actions. Omit it and nothing changes.
449
+ *
450
+ * { field: 'type', order: ['office', 'retail', 'industrial', 'multifamily'] }
451
+ */
452
+ order?: readonly string[];
409
453
  /**
410
454
  * Direct bulk action (`{ field: 'resend', action: true, label: 'Resend' }`): a bulk-bar button that is neither a field change nor
411
455
  * Delete. `field` is the action key (no column needed), the button type is `action-<field>` and there is no inline select.
@@ -526,6 +570,8 @@ export interface BulkActionDef {
526
570
  canApply?: (rows: any[], target: string) => boolean | string;
527
571
  /** Field changes: list the full value set (from `{ field, listAll }`): `true` or the exact list of values. */
528
572
  listAll?: true | readonly string[];
573
+ /** Field changes: option order (from `{ field, order }`): these values first, in this order. */
574
+ order?: readonly string[];
529
575
  /** True for a direct bulk action (from `{ field, action: true, label }`); `type` is `action-<key>` and `field` is not set (no inline select). */
530
576
  action?: boolean;
531
577
  /** Direct action: which rows the server will accept (from `{ field, action: true, eligible }`). */
@@ -2423,6 +2469,18 @@ export declare const UI_DEFAULT_LABELS: {
2423
2469
  readonly 'stackingPlan.unit': "Unit";
2424
2470
  readonly 'stackingPlan.size': "Size";
2425
2471
  readonly 'stackingPlan.details': "Details";
2472
+ readonly 'rangeFilter.min': "Min";
2473
+ readonly 'rangeFilter.max': "Max";
2474
+ readonly 'rangeFilter.minFor': "{{ label }} minimum";
2475
+ readonly 'rangeFilter.maxFor': "{{ label }} maximum";
2476
+ readonly 'rangeFilter.group': "{{ label }} range";
2477
+ readonly 'rangeFilter.minAboveMax': "Min must not be above Max.";
2478
+ readonly 'rangeFilter.between': "{{ min }} - {{ max }}";
2479
+ readonly 'rangeFilter.atLeast': "At least {{ min }}";
2480
+ readonly 'rangeFilter.atMost': "At most {{ max }}";
2481
+ readonly 'rangeFilter.filterByActive': "Filter by {{ label }}: {{ range }}";
2482
+ readonly 'rangeFilter.percent': "{{ value }}%";
2483
+ readonly 'rangeFilter.withUnit': "{{ value }} {{ unit }}";
2426
2484
  };
2427
2485
  export type UiLabelKey = keyof typeof UI_DEFAULT_LABELS;
2428
2486
  export type UiLabelDictionary = Partial<Record<UiLabelKey, string>>;
@@ -2635,10 +2693,32 @@ export declare class QuickFilterTabsComponent {
2635
2693
  "tabChange": "tabChange";
2636
2694
  }, never, never, true, never>;
2637
2695
  }
2696
+ /** What the column filter needs to render a numeric Min / Max popover (resolved from a table `RangeFilterConfig`). */
2697
+ export interface ColumnRangeSpec {
2698
+ min: number;
2699
+ max?: number;
2700
+ step: number;
2701
+ format: 'number' | 'currency' | 'percent';
2702
+ unit?: string;
2703
+ }
2704
+ /** The applied (or pending) bounds of a range filter; null = no bound. */
2705
+ export interface ColumnRangeValue {
2706
+ min: number | null;
2707
+ max: number | null;
2708
+ }
2638
2709
  export declare class ColumnFilterComponent {
2639
2710
  protected readonly labels: UiLabelsService;
2640
2711
  readonly label: import("@angular/core").InputSignal<string>;
2641
2712
  readonly options: import("@angular/core").InputSignal<FilterOption[]>;
2713
+ /**
2714
+ * Numeric range mode (opt-in, set by the table for a `rangeFilters` column): the popover shows Min / Max number fields instead of the value list.
2715
+ * Unset = the value-list filter, unchanged.
2716
+ */
2717
+ readonly range: import("@angular/core").InputSignal<ColumnRangeSpec | null>;
2718
+ /** Range mode: the applied bounds. */
2719
+ readonly rangeValue: import("@angular/core").InputSignal<ColumnRangeValue>;
2720
+ /** Range mode: emits the new bounds on Apply (both null = cleared). */
2721
+ readonly rangeChange: import("@angular/core").OutputEmitterRef<ColumnRangeValue>;
2642
2722
  /** Currently applied values — empty array means no filter active. */
2643
2723
  readonly activeValues: import("@angular/core").InputSignal<string[]>;
2644
2724
  /** Render the trigger as a labelled 44px chip (phone control row) instead of the bare funnel icon. */
@@ -2647,6 +2727,15 @@ export declare class ColumnFilterComponent {
2647
2727
  readonly filterChange: import("@angular/core").OutputEmitterRef<string[]>;
2648
2728
  protected readonly open: import("@angular/core").WritableSignal<boolean>;
2649
2729
  protected readonly pendingValues: import("@angular/core").WritableSignal<string[]>;
2730
+ protected readonly pendingMin: import("@angular/core").WritableSignal<number | null>;
2731
+ protected readonly pendingMax: import("@angular/core").WritableSignal<number | null>;
2732
+ private readonly _fields;
2733
+ protected readonly _isActive: import("@angular/core").Signal<boolean>;
2734
+ protected readonly _pendingHasRange: import("@angular/core").Signal<boolean>;
2735
+ /** Decimals the step allows (step 0.01 = 2, a whole-number step = 0). */
2736
+ protected readonly _decimals: import("@angular/core").Signal<number>;
2737
+ protected readonly _crossError: import("@angular/core").Signal<string>;
2738
+ protected readonly _rangeInvalid: import("@angular/core").Signal<boolean>;
2650
2739
  /** Hide options with count = 0, unless they are currently selected (so user can deselect). */
2651
2740
  protected readonly _visibleOptions: import("@angular/core").Signal<FilterOption[]>;
2652
2741
  protected readonly pendingHasChanges: import("@angular/core").Signal<boolean>;
@@ -2660,12 +2749,17 @@ export declare class ColumnFilterComponent {
2660
2749
  top: number;
2661
2750
  left: number;
2662
2751
  }>;
2752
+ /** One bound as text: plain number (+ unit), US dollars or a percent, in the app's locale. */
2753
+ protected _formatBound(v: number): string;
2754
+ protected _boundHint(v: number): string;
2663
2755
  protected readonly activeLabelText: import("@angular/core").Signal<string>;
2664
2756
  toggle(event: Event): void;
2665
2757
  select(value: string): void;
2666
2758
  apply(): void;
2667
2759
  cancel(): void;
2668
2760
  clear(): void;
2761
+ /** Enter in Min / Max applies the range when it is valid; while invalid it does nothing (Apply is disabled too). */
2762
+ onEnter(event: Event): void;
2669
2763
  onDocumentClick(_event: Event): void;
2670
2764
  onEscape(event?: Event): void;
2671
2765
  onArrow(event: Event, dir: 1 | -1): void;
@@ -2686,7 +2780,17 @@ export declare class ColumnFilterComponent {
2686
2780
  };
2687
2781
  "options": {
2688
2782
  "alias": "options";
2689
- "required": true;
2783
+ "required": false;
2784
+ "isSignal": true;
2785
+ };
2786
+ "range": {
2787
+ "alias": "range";
2788
+ "required": false;
2789
+ "isSignal": true;
2790
+ };
2791
+ "rangeValue": {
2792
+ "alias": "rangeValue";
2793
+ "required": false;
2690
2794
  "isSignal": true;
2691
2795
  };
2692
2796
  "activeValues": {
@@ -2700,6 +2804,7 @@ export declare class ColumnFilterComponent {
2700
2804
  "isSignal": true;
2701
2805
  };
2702
2806
  }, {
2807
+ "rangeChange": "rangeChange";
2703
2808
  "filterChange": "filterChange";
2704
2809
  }, never, never, true, never>;
2705
2810
  }
@@ -3061,8 +3166,8 @@ export declare function requiredIssue(label: string): FieldIssue;
3061
3166
  /** "Too long (max N characters)." when the trimmed text is longer than `max`. */
3062
3167
  export declare function maxLengthIssue(text: string, max: number | undefined | null): FieldIssue | null;
3063
3168
  /**
3064
- * Touched / reveal bookkeeping shared by the inputs. Internal messages are shown only once the field was blurred or the
3065
- * host sets `showErrors`. Switching `showErrors` from true back to false (the host re-initialising its form) clears the
3169
+ * Touched / reveal bookkeeping shared by the inputs. Messages (built-in AND a host `[error]`) are shown only once the user
3170
+ * 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
3066
3171
  * touched state again. Must be called from an injection context.
3067
3172
  */
3068
3173
  export declare function createFieldReveal(showErrors: Signal<boolean>): {
@@ -3146,7 +3251,7 @@ export declare class SelectComponent implements ControlValueAccessor, Validator,
3146
3251
  /** 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. */
3147
3252
  readonly ariaDescribedBy: import("@angular/core").InputSignal<string>;
3148
3253
  readonly error: import("@angular/core").InputSignal<string>;
3149
- /** Reveal the built-in error messages now (e.g. after a failed Save click), without waiting for blur. */
3254
+ /** 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. */
3150
3255
  readonly showErrors: import("@angular/core").InputSignal<boolean>;
3151
3256
  readonly size: import("@angular/core").InputSignal<"default" | "sm">;
3152
3257
  readonly _disabledInput: import("@angular/core").InputSignal<boolean>;
@@ -3548,6 +3653,12 @@ export declare class DataTableComponent<T extends Record<string, any>> implement
3548
3653
  * are unaffected. The table still hides the menu by itself when it is empty and unfiltered.
3549
3654
  */
3550
3655
  readonly showMoreActions: import("@angular/core").InputSignal<boolean>;
3656
+ /**
3657
+ * 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
3658
+ * 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
3659
+ * 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).
3660
+ */
3661
+ readonly quickTabLabelFn: import("@angular/core").InputSignal<((key: string) => string | null | undefined) | null>;
3551
3662
  /**
3552
3663
  * Show the search box above the table. Defaults true. Set false for small fixed tables where searching is meaningless
3553
3664
  * (a handful of summary rows). Quick-filter tabs and the toolbar are unaffected; when the search box, the tabs and the
@@ -3771,6 +3882,36 @@ export declare class DataTableComponent<T extends Record<string, any>> implement
3771
3882
  protected readonly _sortDir: import("@angular/core").WritableSignal<SortDir>;
3772
3883
  protected readonly _activeTab: import("@angular/core").WritableSignal<string>;
3773
3884
  protected readonly _colFilterValues: import("@angular/core").WritableSignal<Record<string, string[]>>;
3885
+ /**
3886
+ * Opt-in numeric range filters (`<ui-data-table [rangeFilters]>`): a visible column whose key is listed gets a Min / Max filter (same funnel icon
3887
+ * and popover as the value list; the range replaces the value list for that column). Empty (default) = no range filter anywhere: no icon, no
3888
+ * param, no saved-view field. The table sends `<minParam>` / `<maxParam>` on rows, export and totals (never on /counts or /filter-counts, like
3889
+ * every column filter); the backend filters.
3890
+ */
3891
+ readonly rangeFilters: import("@angular/core").InputSignal<RangeFilterConfig[]>;
3892
+ /** Applied ranges by column key (bounds are finite numbers; a bound that is null is omitted). */
3893
+ protected readonly _rangeValues: import("@angular/core").WritableSignal<Record<string, ColumnRangeValue>>;
3894
+ /** Listed configs by column key, with defaults resolved. */
3895
+ private readonly _rangeSpecs;
3896
+ /** Ranges of columns that are no longer listed are forgotten, so listing the column again later starts empty (no stale range comes back). */
3897
+ private readonly _pruneRanges;
3898
+ /** Query params of the applied ranges (only listed keys; empty bounds omitted). */
3899
+ protected readonly _rangeParams: Signal<Record<string, string>>;
3900
+ /** The range filter of a header cell: null unless the table lists this column's key. */
3901
+ protected getRangeFilter(col: ColumnDef): {
3902
+ spec: ColumnRangeSpec;
3903
+ value: ColumnRangeValue;
3904
+ } | null;
3905
+ protected readonly _phoneRangeCols: Signal<{
3906
+ col: ColumnDef;
3907
+ rf: {
3908
+ spec: ColumnRangeSpec;
3909
+ value: ColumnRangeValue;
3910
+ };
3911
+ }[]>;
3912
+ protected onRangeChange(key: string, value: ColumnRangeValue): void;
3913
+ /** True while a listed range filter has a bound set. */
3914
+ private _anyRangeActive;
3774
3915
  protected readonly _activeViewId: import("@angular/core").WritableSignal<string | null>;
3775
3916
  /** Internal saved views managed by the table when savedViewsPage is set. */
3776
3917
  private readonly _internalSavedViews;
@@ -4094,11 +4235,12 @@ export declare class DataTableComponent<T extends Record<string, any>> implement
4094
4235
  protected onLoadViewClick(view: SavedView): void;
4095
4236
  protected onDeleteViewClick(id: string): void;
4096
4237
  /** Returns a snapshot of current table state for saving as a view. */
4097
- getState(): Pick<SavedView, 'quickFilter' | 'sortField' | 'sortDir' | 'visibleColumns'> & {
4238
+ getState(): Pick<SavedView, 'quickFilter' | 'sortField' | 'sortDir' | 'visibleColumns' | 'rangeFilters'> & {
4098
4239
  columnFilters: Record<string, string>;
4099
4240
  };
4100
4241
  /** Restores table state from a saved view and reloads. */
4101
4242
  applyView(view: SavedView): void;
4243
+ private _restorableRanges;
4102
4244
  /** Keeps only filters that still make sense: known column keys, and (when the counts list the column) known values. */
4103
4245
  private _restorableColumnFilters;
4104
4246
  /** Plain/number/date columns sort unless `sortable: false`; badge and image columns only when `sortable: true`; never actions. */
@@ -4236,6 +4378,11 @@ export declare class DataTableComponent<T extends Record<string, any>> implement
4236
4378
  "required": false;
4237
4379
  "isSignal": true;
4238
4380
  };
4381
+ "quickTabLabelFn": {
4382
+ "alias": "quickTabLabelFn";
4383
+ "required": false;
4384
+ "isSignal": true;
4385
+ };
4239
4386
  "showSearch": {
4240
4387
  "alias": "showSearch";
4241
4388
  "required": false;
@@ -4341,6 +4488,11 @@ export declare class DataTableComponent<T extends Record<string, any>> implement
4341
4488
  "required": false;
4342
4489
  "isSignal": true;
4343
4490
  };
4491
+ "rangeFilters": {
4492
+ "alias": "rangeFilters";
4493
+ "required": false;
4494
+ "isSignal": true;
4495
+ };
4344
4496
  }, {
4345
4497
  "rowClick": "rowClick";
4346
4498
  "linkClick": "linkClick";
@@ -5603,7 +5755,7 @@ export declare class NotificationBellComponent {
5603
5755
  * Enter selects it too and Home / End select the first / last star (handled here). Each radio is named "1 star", "2 stars", ...
5604
5756
  * - `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.
5605
5757
  * - Validation follows `ui-radio-group` (`UiFieldValidity`, `Validator`, `invalidChange`): `required` -> "<label> is required." when the value is 0;
5606
- * 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"`;
5758
+ * 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);
5607
5759
  * a host `[error]` wins. Disabled and readonly are never invalid.
5608
5760
  * - 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.
5609
5761
  *
@@ -5622,7 +5774,7 @@ export declare class StarRatingComponent implements ControlValueAccessor, Valida
5622
5774
  readonly hint: import("@angular/core").InputSignal<string>;
5623
5775
  readonly error: import("@angular/core").InputSignal<string>;
5624
5776
  readonly required: import("@angular/core").InputSignal<boolean>;
5625
- /** Reveal the built-in error messages now (e.g. after a failed Save click), without waiting for blur. */
5777
+ /** 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. */
5626
5778
  readonly showErrors: import("@angular/core").InputSignal<boolean>;
5627
5779
  /** Star size in px (default 24). */
5628
5780
  readonly size: import("@angular/core").InputSignal<number>;
@@ -5918,7 +6070,7 @@ export declare class CheckboxComponent implements ControlValueAccessor, Validato
5918
6070
  readonly hint: import("@angular/core").InputSignal<string>;
5919
6071
  /** Host-provided error message (wins over the built-in one). */
5920
6072
  readonly error: import("@angular/core").InputSignal<string>;
5921
- /** Reveal the built-in error message now (e.g. after a failed Save click), without waiting for a toggle. */
6073
+ /** 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. */
5922
6074
  readonly showErrors: import("@angular/core").InputSignal<boolean>;
5923
6075
  protected readonly _descId: string;
5924
6076
  private readonly _reveal;
@@ -6464,7 +6616,7 @@ export declare function businessTimeOptions(step?: BusinessHoursStep, hour24?: b
6464
6616
  * <ui-business-hours label="Schedule" [(ngModel)]="schedule" [step]="15" [hour24]="true" [allowSplitShifts]="true" [showCopyToWeekdays]="true" />
6465
6617
  *
6466
6618
  * Inputs
6467
- * - `label` (names the group), `hint`, `error` (host message, wins), `showErrors` (reveal built-in messages now; otherwise after the first change / blur), `disabled`.
6619
+ * - `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`.
6468
6620
  * - `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.
6469
6621
  * - `hour24` 24-hour labels ("17:00") instead of "5:00 PM".
6470
6622
  * - `allowSplitShifts` adds an "Add shift" / "Remove shift" link per open day for a second shift (`open2` / `close2`), e.g. 9–12 and 1–5.
@@ -6488,7 +6640,7 @@ export declare class BusinessHoursComponent implements ControlValueAccessor, Val
6488
6640
  readonly hint: import("@angular/core").InputSignal<string>;
6489
6641
  /** Host-provided error message (wins over the built-in ones). */
6490
6642
  readonly error: import("@angular/core").InputSignal<string>;
6491
- /** Reveal the built-in message now (e.g. after a failed Save click) instead of after the first change. */
6643
+ /** 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. */
6492
6644
  readonly showErrors: import("@angular/core").InputSignal<boolean>;
6493
6645
  /** At least one day must be open. */
6494
6646
  readonly required: import("@angular/core").InputSignal<boolean>;
@@ -6651,7 +6803,7 @@ export interface RadioOption {
6651
6803
  * templates render no extra attributes or ids.
6652
6804
  *
6653
6805
  * Validity API (same on every ui input): Angular `Validator`, signals `invalid` + `errorMessage`, `invalidChange` output,
6654
- * provides `UiFieldValidity`. Messages show after the group lost focus or while `[showErrors]="true"`; a host `[error]` wins.
6806
+ * provides `UiFieldValidity`. Messages (built-in and a host `[error]`) show only after the group lost focus; `[showErrors]` alone never reveals an untouched group.
6655
6807
  */
6656
6808
  export declare class RadioGroupComponent implements ControlValueAccessor, Validator, UiFieldValidity {
6657
6809
  private readonly _labels;
@@ -6660,7 +6812,7 @@ export declare class RadioGroupComponent implements ControlValueAccessor, Valida
6660
6812
  readonly required: import("@angular/core").InputSignal<boolean>;
6661
6813
  readonly hint: import("@angular/core").InputSignal<string>;
6662
6814
  readonly error: import("@angular/core").InputSignal<string>;
6663
- /** Reveal the built-in error messages now (e.g. after a failed Save click), without waiting for blur. */
6815
+ /** 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. */
6664
6816
  readonly showErrors: import("@angular/core").InputSignal<boolean>;
6665
6817
  readonly orientation: import("@angular/core").InputSignal<"vertical" | "horizontal">;
6666
6818
  /** Native `name` shared by the radios; a unique one is generated when omitted. */
@@ -7000,7 +7152,7 @@ export declare class ButtonComponent {
7000
7152
  readonly color: import("@angular/core").InputSignal<string | undefined>;
7001
7153
  readonly active: import("@angular/core").InputSignal<boolean>;
7002
7154
  readonly size: import("@angular/core").InputSignal<"sm" | "md" | "lg" | "xs">;
7003
- readonly type: import("@angular/core").InputSignal<"reset" | "submit" | "button">;
7155
+ readonly type: import("@angular/core").InputSignal<"button" | "reset" | "submit">;
7004
7156
  readonly disabled: import("@angular/core").InputSignal<boolean>;
7005
7157
  readonly loading: import("@angular/core").InputSignal<boolean>;
7006
7158
  readonly fullWidth: import("@angular/core").InputSignal<boolean>;
@@ -7419,7 +7571,7 @@ export declare class ContactPickerComponent {
7419
7571
  readonly errorId: import("@angular/core").InputSignal<string>;
7420
7572
  /** Marks the combobox / selected group `aria-invalid="true"`. The picker renders no error text itself. */
7421
7573
  readonly invalid: import("@angular/core").InputSignal<boolean>;
7422
- /** Reveal the built-in "<label> is required." message (`visibleErrorMessage`) now, e.g. after a failed Save click. */
7574
+ /** 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. */
7423
7575
  readonly showErrors: import("@angular/core").InputSignal<boolean>;
7424
7576
  readonly showDetails: import("@angular/core").InputSignal<boolean>;
7425
7577
  readonly isMultiSelect: import("@angular/core").InputSignal<boolean>;
@@ -7457,9 +7609,9 @@ export declare class ContactPickerComponent {
7457
7609
  readonly fieldInvalid: import("@angular/core").Signal<boolean>;
7458
7610
  /** "<label> is required." while required-and-empty ('' otherwise), shown or not. */
7459
7611
  readonly errorMessage: import("@angular/core").Signal<string>;
7460
- /** `errorMessage` only after the input was blurred or `showErrors` is set — render it in a `<ui-error>` under the picker. */
7612
+ /** `errorMessage` only after the user left the picker (`showErrors` alone does not reveal it) — render it in a `<ui-error>` under the picker. */
7461
7613
  readonly visibleErrorMessage: import("@angular/core").Signal<string>;
7462
- /** 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). */
7614
+ /** 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. */
7463
7615
  readonly ariaInvalid: import("@angular/core").Signal<boolean>;
7464
7616
  /** The hint is search guidance: hidden while a contact is selected (single-select), back after clear. */
7465
7617
  readonly showHint: import("@angular/core").Signal<boolean>;
@@ -7482,6 +7634,8 @@ export declare class ContactPickerComponent {
7482
7634
  constructor();
7483
7635
  onInput(): void;
7484
7636
  onFocus(): void;
7637
+ /** 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. */
7638
+ onSelectedFocusOut(): void;
7485
7639
  /** Delayed so a click on an option still lands; cancelled if focus returns (or the user types) first. */
7486
7640
  onBlur(): void;
7487
7641
  private clearBlurTimer;
@@ -7799,14 +7953,14 @@ export declare const DEFAULT_BANK_HOLDER_TYPE_OPTIONS: SelectOption[];
7799
7953
  *
7800
7954
  * - Validation is inline through the inputs' own `[error]` / built-in rules. The routing number is only checked for 9 digits (no ABA checksum: the
7801
7955
  * provider validates the real number, and a client checksum would reject test numbers). Account numbers are 4-17 digits.
7802
- * - Messages show after blur, while a field holds something invalid, or while `[showErrors]` is true; a failed `submit()` reveals them all.
7956
+ * - 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.
7803
7957
  * - The form provides `UiFieldValidity` (`invalid` = not submittable), so a host can gate its own button with `viewChildren(UiFieldValidity)`,
7804
7958
  * or use `(validChange)`.
7805
7959
  * - The host's footer button calls `form.submit()` (via `viewChild`); Enter in a text field submits too.
7806
7960
  */
7807
7961
  export declare class BankAccountFormComponent implements UiFieldValidity {
7808
7962
  protected readonly labels: UiLabelsService;
7809
- /** Reveal every built-in error now (e.g. bind to a panel's `touched()`); `submit()` on an invalid form also reveals them. */
7963
+ /** 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. */
7810
7964
  readonly showErrors: import("@angular/core").InputSignal<boolean>;
7811
7965
  /** Disables every field and blocks `submit()`. */
7812
7966
  readonly disabled: import("@angular/core").InputSignal<boolean>;
@@ -7840,6 +7994,7 @@ export declare class BankAccountFormComponent implements UiFieldValidity {
7840
7994
  protected readonly routingFormatter: (raw: string) => string;
7841
7995
  protected readonly accountFormatter: (raw: string) => string;
7842
7996
  protected readonly locked: import("@angular/core").Signal<boolean>;
7997
+ /** 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. */
7843
7998
  protected readonly reveal: import("@angular/core").Signal<boolean>;
7844
7999
  protected readonly routingError: import("@angular/core").Signal<string>;
7845
8000
  protected readonly accountError: import("@angular/core").Signal<string>;
@@ -7854,7 +8009,7 @@ export declare class BankAccountFormComponent implements UiFieldValidity {
7854
8009
  constructor();
7855
8010
  protected id(name: string): string;
7856
8011
  protected onEnter(event: Event): void;
7857
- /** Validates and, when valid, emits `submitted`. An invalid form reveals all messages and emits nothing. Ignored while `disabled` / `busy`. */
8012
+ /** 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`. */
7858
8013
  submit(): void;
7859
8014
  /** Clears every field back to the defaults (checking, individual, authorization unticked, holder name = `accountHolderNameDefault`). */
7860
8015
  reset(): void;
@@ -8131,7 +8286,7 @@ export declare class TextInputComponent implements ControlValueAccessor, Validat
8131
8286
  readonly passwordRequirements: import("@angular/core").InputSignal<boolean>;
8132
8287
  /** Rules for `passwordRequirements`; default = the library's five rules (8+ characters, upper, lower, digit, special). */
8133
8288
  readonly passwordRules: import("@angular/core").InputSignal<readonly PasswordRule[] | undefined>;
8134
- readonly type: import("@angular/core").InputSignal<"number" | "email" | "text" | "tel" | "password" | "url">;
8289
+ readonly type: import("@angular/core").InputSignal<"number" | "email" | "text" | "password" | "tel" | "url">;
8135
8290
  readonly maxlength: import("@angular/core").InputSignal<number | undefined>;
8136
8291
  readonly required: import("@angular/core").InputSignal<boolean>;
8137
8292
  readonly autocomplete: import("@angular/core").InputSignal<string>;
@@ -8140,7 +8295,7 @@ export declare class TextInputComponent implements ControlValueAccessor, Validat
8140
8295
  * `search`, `text`, `none`). Empty (default) = the browser's default for the field, except `type="tel"`, which keeps `tel`.
8141
8296
  * It only picks the keyboard; it does not restrict what can be typed or pasted.
8142
8297
  */
8143
- readonly inputmode: import("@angular/core").InputSignal<"" | "email" | "text" | "numeric" | "decimal" | "none" | "search" | "tel" | "url">;
8298
+ readonly inputmode: import("@angular/core").InputSignal<"" | "numeric" | "decimal" | "email" | "text" | "none" | "search" | "tel" | "url">;
8144
8299
  readonly readonly: import("@angular/core").InputSignal<boolean>;
8145
8300
  readonly hint: import("@angular/core").InputSignal<string>;
8146
8301
  /** 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. */
@@ -8180,7 +8335,7 @@ export declare class TextInputComponent implements ControlValueAccessor, Validat
8180
8335
  * the 0-decimals rule).
8181
8336
  */
8182
8337
  readonly integer: import("@angular/core").InputSignal<boolean>;
8183
- /** Reveal the built-in error messages now (e.g. after a failed Save click), without waiting for blur. */
8338
+ /** 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. */
8184
8339
  readonly showErrors: import("@angular/core").InputSignal<boolean>;
8185
8340
  /** 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. */
8186
8341
  readonly valueChange: import("@angular/core").OutputEmitterRef<string | number | null>;
@@ -8212,7 +8367,7 @@ export declare class TextInputComponent implements ControlValueAccessor, Validat
8212
8367
  protected readonly _stepAttr: import("@angular/core").Signal<string | null>;
8213
8368
  protected readonly _revealable: import("@angular/core").Signal<boolean>;
8214
8369
  protected readonly _shown: import("@angular/core").WritableSignal<boolean>;
8215
- protected readonly _inputType: import("@angular/core").Signal<"number" | "email" | "text" | "tel" | "password" | "url">;
8370
+ protected readonly _inputType: import("@angular/core").Signal<"number" | "email" | "text" | "password" | "tel" | "url">;
8216
8371
  protected readonly _eyePath: string;
8217
8372
  protected readonly _eyeOffPath: string;
8218
8373
  protected readonly _showRequirements: import("@angular/core").Signal<boolean>;
@@ -8564,7 +8719,7 @@ export declare class TextareaInputComponent implements ControlValueAccessor, Val
8564
8719
  readonly error: import("@angular/core").InputSignal<string>;
8565
8720
  /** Opt-in. `true` shows the text in a monospace font (HTML / code / merge-tag fields). Default `false` = unchanged. */
8566
8721
  readonly monospace: import("@angular/core").InputSignal<boolean>;
8567
- /** Reveal the built-in error messages now (e.g. after a failed Save click), without waiting for blur. */
8722
+ /** 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. */
8568
8723
  readonly showErrors: import("@angular/core").InputSignal<boolean>;
8569
8724
  readonly _disabledInput: import("@angular/core").InputSignal<boolean>;
8570
8725
  private readonly _cvaDisabled;
@@ -8822,7 +8977,7 @@ export declare function acceptLabel(accept: string): string;
8822
8977
  * 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`
8823
8978
  * override the wording, also in picker-only mode), and `(fileRejected)` emits `{ file, reason, message }`.
8824
8979
  * - `required` is a real rule: Angular `Validator` + `UiFieldValidity` (`invalid`, `errorMessage`, `invalidChange`,
8825
- * `showErrors`), like the other inputs. The message shows after the field was used or `[showErrors]="true"`.
8980
+ * `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.
8826
8981
  * - `dropzone`: the field accepts files dropped on it.
8827
8982
  * - `showDetails`: file size after the name; `preview`: a thumbnail of a chosen image.
8828
8983
  * - `loading` (+ `loadingText`): a `ui-skeleton` replaces the file name while the host works on the file (scanning, uploading).
@@ -8839,14 +8994,14 @@ export declare class FileInputComponent implements ControlValueAccessor, Validat
8839
8994
  /** Native `accept` string, e.g. ".pdf,.png". Also enforced on picked and dropped files unless `enforceAccept` is false. */
8840
8995
  readonly accept: import("@angular/core").InputSignal<string>;
8841
8996
  readonly multiple: import("@angular/core").InputSignal<boolean>;
8842
- /** A file must be chosen (a real rule: Validator + UiFieldValidity, message shown after use or `showErrors`). */
8997
+ /** A file must be chosen (a real rule: Validator + UiFieldValidity, message shown only after the user used the field; `showErrors` alone never reveals it). */
8843
8998
  readonly required: import("@angular/core").InputSignal<boolean>;
8844
8999
  readonly hint: import("@angular/core").InputSignal<string>;
8845
9000
  /** Host-provided error message (wins over the built-in ones). Shown under a visible field only. */
8846
9001
  readonly error: import("@angular/core").InputSignal<string>;
8847
9002
  /** false = no visible field; open the picker from the host with `open()`. */
8848
9003
  readonly showField: import("@angular/core").InputSignal<boolean>;
8849
- /** Reveal the built-in "required" message now (e.g. after a failed Save click). */
9004
+ /** 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. */
8850
9005
  readonly showErrors: import("@angular/core").InputSignal<boolean>;
8851
9006
  /**
8852
9007
  * Also report every refused file (wrong type, too big, too small, empty) with a `ToastService` error toast that names the file and
@@ -9252,7 +9407,7 @@ export declare class DateInputComponent implements ControlValueAccessor, Validat
9252
9407
  /** 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. */
9253
9408
  readonly ariaDescribedBy: import("@angular/core").InputSignal<string>;
9254
9409
  readonly error: import("@angular/core").InputSignal<string>;
9255
- /** Reveal the built-in error messages now (e.g. after a failed Save click), without waiting for blur. */
9410
+ /** 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. */
9256
9411
  readonly showErrors: import("@angular/core").InputSignal<boolean>;
9257
9412
  /** 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. */
9258
9413
  readonly _disabledInput: import("@angular/core").InputSignal<boolean>;
@@ -9350,7 +9505,7 @@ export declare class DatetimeInputComponent implements ControlValueAccessor, Val
9350
9505
  /** 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. */
9351
9506
  readonly ariaDescribedBy: import("@angular/core").InputSignal<string>;
9352
9507
  readonly error: import("@angular/core").InputSignal<string>;
9353
- /** Reveal the built-in error messages now (e.g. after a failed Save click), without waiting for blur. */
9508
+ /** 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. */
9354
9509
  readonly showErrors: import("@angular/core").InputSignal<boolean>;
9355
9510
  readonly _disabledInput: import("@angular/core").InputSignal<boolean>;
9356
9511
  private readonly _cvaDisabled;
@@ -9446,7 +9601,7 @@ export declare class TimeInputComponent implements ControlValueAccessor, Validat
9446
9601
  /** 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. */
9447
9602
  readonly ariaDescribedBy: import("@angular/core").InputSignal<string>;
9448
9603
  readonly error: import("@angular/core").InputSignal<string>;
9449
- /** Reveal the built-in error messages now (e.g. after a failed Save click), without waiting for blur. */
9604
+ /** 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. */
9450
9605
  readonly showErrors: import("@angular/core").InputSignal<boolean>;
9451
9606
  /** Public (like the other inputs) so `[disabled]` can be bound in a host template. */
9452
9607
  readonly _disabledInput: import("@angular/core").InputSignal<boolean>;
@@ -9567,7 +9722,7 @@ export interface ComboboxSelection {
9567
9722
  * on focus and `(searchChange)` fires with '' so the host can show its initial results.
9568
9723
  * - `[debounce]` ms between the last keystroke and `(searchChange)` (default 250). Focus / ArrowDown-open emit immediately.
9569
9724
  * - `[label] [ariaLabel] [placeholder] [required] [hint] [error] [disabled] [showErrors]` like `ui-text-input`
9570
- * (host `[error]` wins over the built-in "<label> is required."; messages show after blur or `showErrors`).
9725
+ * (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).
9571
9726
  * - `(searchChange)` string, `(valueChange)` `ComboboxOption | null` (the full chosen option, null when cleared),
9572
9727
  * `(invalidChange)` boolean, `(focused)`, `(blurred)`. Validity: `UiFieldValidity` token + Angular `Validator`.
9573
9728
  *
@@ -9817,12 +9972,19 @@ export declare class MultiSelectComponent implements ControlValueAccessor {
9817
9972
  protected readonly _selectedOptions: import("@angular/core").Signal<SelectOption<string>[]>;
9818
9973
  protected readonly _filteredOptions: import("@angular/core").Signal<SelectOption<string>[]>;
9819
9974
  private _onChange;
9975
+ /** 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. */
9976
+ private readonly _touched;
9977
+ protected readonly _shownError: import("@angular/core").Signal<string>;
9978
+ /** 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. */
9979
+ resetTouched(): void;
9820
9980
  private _onTouched;
9821
9981
  writeValue(val: string[] | null): void;
9822
9982
  registerOnChange(fn: (v: string[]) => void): void;
9823
9983
  registerOnTouched(fn: () => void): void;
9824
9984
  setDisabledState(d: boolean): void;
9825
9985
  protected onDocumentClick(event: Event): void;
9986
+ /** Focus moved to another element outside the control (Tab away): the field counts as touched even when the list stayed open. */
9987
+ protected onFocusOut(event: FocusEvent): void;
9826
9988
  /** 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. */
9827
9989
  protected onEscape(event: Event): void;
9828
9990
  protected toggleOpen(): void;
@@ -11678,6 +11840,14 @@ export declare function getEligibleIds<T extends {
11678
11840
  name: string;
11679
11841
  }[];
11680
11842
  }>(items: T[], selectedIds: Set<string>, action: string, options?: EligibleOptions): EligibleResult;
11843
+ /**
11844
+ * Orders bulk select options: values listed in `order` first, in that order (exact, case-sensitive match on `value`), then the remaining
11845
+ * options in their existing order. Values in `order` that are not among the options are ignored (nothing is added); a repeated value in
11846
+ * `order` counts once. Returns a new array; with an empty `order` the options come back unchanged.
11847
+ */
11848
+ export declare function orderBulkOptions<O extends {
11849
+ value: string;
11850
+ }>(options: readonly O[], order: readonly string[] | null | undefined): O[];
11681
11851
  /** What the user was doing when the request failed — drives the fallback wording. */
11682
11852
  export type ErrorAction = 'load' | 'save' | 'create' | 'update' | 'delete' | 'send' | 'export' | 'import' | 'upload' | 'download';
11683
11853
  /**
@@ -12495,7 +12665,7 @@ type AddressField = keyof AddressValue;
12495
12665
  * 5 digits or 5+4 ("Enter a valid ZIP code."); state must be one of the options ("Select a valid option."); maxlengths
12496
12666
  * ("Too long (max N characters)."); `requireComplete` -> once ANY of street / city / state / ZIP is filled the others are required too
12497
12667
  * (for an optional address that must not be half-filled). The unit is never required. Messages show per field after that field was left,
12498
- * or all at once while `showErrors` is true; the host `error` is shown under the group and always counts as invalid.
12668
+ * 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.
12499
12669
  *
12500
12670
  * Layout: street + unit, then city + state + ZIP in `ui-form-row`s (they collapse to one column on phones).
12501
12671
  */
@@ -12539,7 +12709,7 @@ export declare class AddressInputComponent implements ControlValueAccessor, Vali
12539
12709
  readonly zipMaxlength: import("@angular/core").InputSignal<number>;
12540
12710
  /** Native select cannot be read-only: while `readonly`, the State select is disabled and the text fields are read-only. */
12541
12711
  readonly readonly: import("@angular/core").InputSignal<boolean>;
12542
- /** Reveal every built-in message now (e.g. after a failed Save click). Switching back to false forgets which fields were left. */
12712
+ /** 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. */
12543
12713
  readonly showErrors: import("@angular/core").InputSignal<boolean>;
12544
12714
  readonly hint: import("@angular/core").InputSignal<string>;
12545
12715
  /** Host error for the whole address; shown under the group (replaces the hint), always makes the field invalid. */
@@ -12554,7 +12724,7 @@ export declare class AddressInputComponent implements ControlValueAccessor, Vali
12554
12724
  * the object. `valueChange` always emits the object. A written string is read with `parseAddressValue` for display only: the control keeps
12555
12725
  * the original text until the user edits a field (so a text the parser cannot split is not rewritten on load).
12556
12726
  */
12557
- readonly valueFormat: import("@angular/core").InputSignal<"object" | "text" | "auto">;
12727
+ readonly valueFormat: import("@angular/core").InputSignal<"object" | "auto" | "text">;
12558
12728
  /** ZIP rule; the default is the US 5 digits / 5+4 rule. `null` accepts any non-empty ZIP. The ZIP is validated and stored trimmed. */
12559
12729
  readonly zipPattern: import("@angular/core").InputSignal<RegExp | null>;
12560
12730
  /** Message shown when the ZIP breaks `zipPattern`. */
@@ -12589,6 +12759,8 @@ export declare class AddressInputComponent implements ControlValueAccessor, Vali
12589
12759
  readonly errorMessage: import("@angular/core").Signal<string>;
12590
12760
  /** Street, city, state and ZIP are required: always with `required`, and with `requireComplete` once any of them has text. */
12591
12761
  protected readonly _req: import("@angular/core").Signal<boolean>;
12762
+ /** The host `[error]` shows only after the user left one of the address fields. */
12763
+ protected readonly _shownError: import("@angular/core").Signal<string>;
12592
12764
  protected readonly _describedBy: import("@angular/core").Signal<string | null>;
12593
12765
  private _onChange;
12594
12766
  /** True once a string was written to the control (valueFormat 'auto' then emits strings). */
@@ -12608,7 +12780,7 @@ export declare class AddressInputComponent implements ControlValueAccessor, Vali
12608
12780
  validate(control: AbstractControl): ValidationErrors | null;
12609
12781
  protected _set(field: AddressField, text: unknown): void;
12610
12782
  protected _onFocusOut(field: AddressField, event: FocusEvent): void;
12611
- /** 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. */
12783
+ /** 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. */
12612
12784
  protected _revealed(field: AddressField): boolean;
12613
12785
  protected _fieldError(field: AddressField): string;
12614
12786
  private _hasText;
@@ -13498,7 +13670,13 @@ export declare class RichTextEditorComponent implements ControlValueAccessor {
13498
13670
  readonly required: import("@angular/core").InputSignal<boolean>;
13499
13671
  readonly readonly: import("@angular/core").InputSignal<boolean>;
13500
13672
  readonly hint: import("@angular/core").InputSignal<string>;
13673
+ /** Host error message. Shown (with the red state, aria-invalid and aria-describedby) only after the user left the editor (blur). */
13501
13674
  readonly error: import("@angular/core").InputSignal<string>;
13675
+ /** True once the user left the editor. */
13676
+ protected readonly _touched: import("@angular/core").WritableSignal<boolean>;
13677
+ protected readonly _activeError: import("@angular/core").Signal<string>;
13678
+ /** 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. */
13679
+ resetTouched(): void;
13502
13680
  /** Minimum editor height in px. */
13503
13681
  readonly minHeight: import("@angular/core").InputSignal<number>;
13504
13682
  /** Maximum editor height in px; taller content scrolls. */
@@ -13828,7 +14006,7 @@ export declare class SwatchPickerComponent implements ControlValueAccessor, Vali
13828
14006
  readonly required: import("@angular/core").InputSignal<boolean>;
13829
14007
  readonly hint: import("@angular/core").InputSignal<string>;
13830
14008
  readonly error: import("@angular/core").InputSignal<string>;
13831
- /** Reveal the built-in error messages now (e.g. after a failed Save click), without waiting for blur. */
14009
+ /** 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. */
13832
14010
  readonly showErrors: import("@angular/core").InputSignal<boolean>;
13833
14011
  /** Fixed number of swatches per row (0 = wrap freely, the default). On a phone the row wraps by width instead. */
13834
14012
  readonly columns: import("@angular/core").InputSignal<number>;
@@ -13945,7 +14123,7 @@ export declare class IconPickerComponent implements ControlValueAccessor, Valida
13945
14123
  readonly required: import("@angular/core").InputSignal<boolean>;
13946
14124
  readonly hint: import("@angular/core").InputSignal<string>;
13947
14125
  readonly error: import("@angular/core").InputSignal<string>;
13948
- /** Reveal the built-in error messages now (e.g. after a failed Save click), without waiting for blur. */
14126
+ /** 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. */
13949
14127
  readonly showErrors: import("@angular/core").InputSignal<boolean>;
13950
14128
  /** SVG path drawn for an option: its `path`, else the library icon `iconKey` (default: the option's `value`); '' when unknown. */
13951
14129
  protected _path(o: IconPickerOption): string;
@@ -14081,7 +14259,7 @@ export interface RadioMatrixRow {
14081
14259
  * ignored (and kept untouched in the model). Disabled matrices are never invalid.
14082
14260
  *
14083
14261
  * Validity API (same on every ui input): Angular `Validator`, signals `invalid` + `errorMessage`, `invalidChange` output,
14084
- * provides `UiFieldValidity`. Messages show after the matrix lost focus or while `[showErrors]="true"`; a host `[error]` wins.
14262
+ * provides `UiFieldValidity`. Messages (built-in and a host `[error]`) show only after the matrix lost focus; `[showErrors]` alone never reveals an untouched matrix.
14085
14263
  *
14086
14264
  * <ui-radio-matrix label="Page permissions" rowHeader="Page" [rows]="pages" [columns]="levels" [(ngModel)]="permissions" />
14087
14265
  */
@@ -14095,7 +14273,7 @@ export declare class RadioMatrixComponent implements ControlValueAccessor, Valid
14095
14273
  readonly required: import("@angular/core").InputSignal<boolean>;
14096
14274
  readonly hint: import("@angular/core").InputSignal<string>;
14097
14275
  readonly error: import("@angular/core").InputSignal<string>;
14098
- /** Reveal the built-in error messages now (e.g. after a failed Save click), without waiting for blur. */
14276
+ /** 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. */
14099
14277
  readonly showErrors: import("@angular/core").InputSignal<boolean>;
14100
14278
  /** Prefix of the native radio `name`s (one name per row); a unique one is generated when omitted. */
14101
14279
  readonly name: import("@angular/core").InputSignal<string>;
@@ -14206,7 +14384,7 @@ export declare class RadioMatrixComponent implements ControlValueAccessor, Valid
14206
14384
  * looks like what was drawn. Changing `width` / `height` after drawing repaints the current signature (scaled to fit) instead of losing it.
14207
14385
  * Screen readers get the keyboard instructions as a description of the pad and a polite "Signature captured" / "Signature cleared" announcement.
14208
14386
  *
14209
- * Public methods: `clear()`, `isEmpty()` and `toDataUrl()` (the current normalized signature, or `null` when empty).
14387
+ * 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).
14210
14388
  */
14211
14389
  export declare class SignaturePadComponent implements ControlValueAccessor {
14212
14390
  protected readonly labels: UiLabelsService;
@@ -14214,7 +14392,13 @@ export declare class SignaturePadComponent implements ControlValueAccessor {
14214
14392
  /** Accessible name when there is no visible label. A default describing the keyboard controls is used when neither is set. */
14215
14393
  readonly ariaLabel: import("@angular/core").InputSignal<string>;
14216
14394
  readonly hint: import("@angular/core").InputSignal<string>;
14395
+ /** 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. */
14217
14396
  readonly error: import("@angular/core").InputSignal<string>;
14397
+ /** True once the user drew on the pad or tabbed away from it. */
14398
+ protected readonly _touched: import("@angular/core").WritableSignal<boolean>;
14399
+ protected readonly _activeError: import("@angular/core").Signal<string>;
14400
+ /** Forgets that the user interacted (call it when the host resets its form): a host `error` is hidden again until the next stroke / blur. */
14401
+ resetTouched(): void;
14218
14402
  /** 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. */
14219
14403
  readonly width: import("@angular/core").InputSignal<number>;
14220
14404
  readonly height: import("@angular/core").InputSignal<number>;
@@ -15229,8 +15413,7 @@ export declare function normalizeHexColor(value: string | null | undefined, allo
15229
15413
  * - Picking in the native picker with an 8-digit value and `allowAlpha` keeps the existing alpha digits.
15230
15414
  *
15231
15415
  * Validity API (same as the other ui inputs): `Validator` (error keys `required`, `color`), signals `invalid` /
15232
- * `errorMessage`, `invalidChange` output, `UiFieldValidity` token. Messages show after blur or while
15233
- * `[showErrors]="true"`; a host `[error]` always wins. Disabled controls are never invalid.
15416
+ * `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.
15234
15417
  *
15235
15418
  * Cross-browser: the native swatch is styled with `-webkit-appearance` and the `::-webkit-color-swatch` / `::-moz-color-swatch`
15236
15419
  * pseudo-elements and sits invisibly over our own preview square, so it looks the same in Chrome, Edge, Firefox and Safari.
@@ -15246,7 +15429,7 @@ export declare class ColorInputComponent implements ControlValueAccessor, Valida
15246
15429
  readonly hint: import("@angular/core").InputSignal<string>;
15247
15430
  /** Host error message; always wins over the built-in message. */
15248
15431
  readonly error: import("@angular/core").InputSignal<string>;
15249
- /** Reveal the built-in error messages now (e.g. after a failed Save click), without waiting for blur. */
15432
+ /** 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. */
15250
15433
  readonly showErrors: import("@angular/core").InputSignal<boolean>;
15251
15434
  /** Accept (and keep) 8-digit `#rrggbbaa` values. */
15252
15435
  readonly allowAlpha: import("@angular/core").InputSignal<boolean>;
@@ -17732,16 +17915,18 @@ export declare class EmailTemplateEditorComponent {
17732
17915
  readonly bodyError: import("@angular/core").Signal<string>;
17733
17916
  /** "Active From / To" only apply when the template is not "all year"; when both are given To may not be before From. */
17734
17917
  readonly datesError: import("@angular/core").Signal<string>;
17735
- /** 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. */
17918
+ /** 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. */
17736
17919
  readonly submitAttempted: import("@angular/core").WritableSignal<boolean>;
17737
17920
  readonly nameTouched: import("@angular/core").WritableSignal<boolean>;
17738
17921
  readonly subjectTouched: import("@angular/core").WritableSignal<boolean>;
17739
17922
  readonly nameErrorShown: import("@angular/core").Signal<string>;
17740
17923
  readonly subjectErrorShown: import("@angular/core").Signal<string>;
17924
+ /** True once focus left the message blocks (the body error then shows). Editing the message also counts (`bodyEdited`). A failed Save never reveals it. */
17925
+ readonly bodyBlurred: import("@angular/core").WritableSignal<boolean>;
17741
17926
  readonly bodyErrorShown: import("@angular/core").Signal<string>;
17742
17927
  /** A template must be assigned to at least one automation (only in an app that offers assignments at all). */
17743
17928
  readonly assignmentError: import("@angular/core").Signal<string>;
17744
- /** True once the user has changed an assignment (or tried to save), so the message never shows on a page nobody has touched yet. */
17929
+ /** 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. */
17745
17930
  readonly assignmentsTouched: import("@angular/core").WritableSignal<boolean>;
17746
17931
  readonly assignmentErrorShown: import("@angular/core").Signal<string>;
17747
17932
  readonly canSave: import("@angular/core").Signal<boolean>;
@@ -17749,6 +17934,11 @@ export declare class EmailTemplateEditorComponent {
17749
17934
  readonly saveDisabled: import("@angular/core").Signal<boolean>;
17750
17935
  /** What is still missing, shown as the tooltip of the disabled Save button ('' when Save is available or the member cannot write). */
17751
17936
  readonly saveHint: import("@angular/core").Signal<string>;
17937
+ /** True once the user left a date input; until then the visible hint does not print the dates message (the tooltip still carries it). */
17938
+ readonly datesTouched: import("@angular/core").WritableSignal<boolean>;
17939
+ /** 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.
17940
+ * Details: a dates-only problem is printed only after the date inputs were touched. */
17941
+ readonly saveHintVisible: import("@angular/core").Signal<string>;
17752
17942
  private normalizedLink;
17753
17943
  /** Why Insert is disabled: nothing for an empty field, a message for an address that is not a link. */
17754
17944
  readonly linkUrlError: import("@angular/core").Signal<string>;
@@ -17765,6 +17955,10 @@ export declare class EmailTemplateEditorComponent {
17765
17955
  /** The test email was sent: close the dialog. */
17766
17956
  closeTestSend(): void;
17767
17957
  private applyTemplate;
17958
+ /** Focus left the message blocks for somewhere outside them: the body error may show now. */
17959
+ onBodyFocusOut(event: FocusEvent): void;
17960
+ /** Focus left the assignments list for somewhere outside it: the assignment error may show now. */
17961
+ onAssignmentsFocusOut(event: FocusEvent): void;
17768
17962
  onSave(): void;
17769
17963
  private snapshot;
17770
17964
  private serialize;
@@ -19426,7 +19620,7 @@ export interface PaymentMethodContext {
19426
19620
  readonly currency: string;
19427
19621
  /** Every field of the panel is valid (amount, date, note, allocation). */
19428
19622
  readonly valid: boolean;
19429
- /** 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. */
19623
+ /** 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. */
19430
19624
  validate(): boolean;
19431
19625
  /** Clears the whole form (method, amount, note, split, allocation; the date returns to today). */
19432
19626
  reset(): void;
@@ -19572,6 +19766,8 @@ export declare class PaymentSidePanelComponent {
19572
19766
  readonly allocationMode: import("@angular/core").WritableSignal<string>;
19573
19767
  readonly selectedCharges: import("@angular/core").WritableSignal<SelectedCharges>;
19574
19768
  readonly touched: import("@angular/core").WritableSignal<boolean>;
19769
+ /** 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`). */
19770
+ readonly allocationTouched: import("@angular/core").WritableSignal<boolean>;
19575
19771
  readonly submitting: import("@angular/core").WritableSignal<boolean>;
19576
19772
  readonly submitError: import("@angular/core").WritableSignal<string>;
19577
19773
  readonly announcement: import("@angular/core").WritableSignal<string>;
@@ -19631,6 +19827,8 @@ export declare class PaymentSidePanelComponent {
19631
19827
  private readonly totalPayment;
19632
19828
  protected readonly allocation: import("@angular/core").Signal<AllocationCheck>;
19633
19829
  private readonly allocationPayload;
19830
+ /** `allocation().general` limited to what the user has interacted with. */
19831
+ protected readonly allocationMessage: import("@angular/core").Signal<string>;
19634
19832
  protected readonly hasInvalid: import("@angular/core").Signal<boolean>;
19635
19833
  protected readonly canSplit: import("@angular/core").Signal<boolean>;
19636
19834
  protected readonly readerOptions: import("@angular/core").Signal<{