@forgeroute/ui 0.4.94 → 0.4.96
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.
- package/fesm2022/forgeroute-ui-messaging.mjs +5 -8
- package/fesm2022/forgeroute-ui-messaging.mjs.map +1 -1
- package/fesm2022/{forgeroute-ui-ui-labels.es-YdWyQXrS.mjs → forgeroute-ui-ui-labels.es-Bdh64Ql6.mjs} +3 -2
- package/fesm2022/{forgeroute-ui-ui-labels.es-YdWyQXrS.mjs.map → forgeroute-ui-ui-labels.es-Bdh64Ql6.mjs.map} +1 -1
- package/fesm2022/forgeroute-ui.mjs +110 -31
- package/fesm2022/forgeroute-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/forgeroute-ui-messaging.d.ts +8 -8
- package/types/forgeroute-ui.d.ts +91 -49
package/types/forgeroute-ui.d.ts
CHANGED
|
@@ -2481,6 +2481,7 @@ export declare const UI_DEFAULT_LABELS: {
|
|
|
2481
2481
|
readonly 'rangeFilter.filterByActive': "Filter by {{ label }}: {{ range }}";
|
|
2482
2482
|
readonly 'rangeFilter.percent': "{{ value }}%";
|
|
2483
2483
|
readonly 'rangeFilter.withUnit': "{{ value }} {{ unit }}";
|
|
2484
|
+
readonly 'rangeFilter.badNumber': "Please enter a valid number";
|
|
2484
2485
|
};
|
|
2485
2486
|
export type UiLabelKey = keyof typeof UI_DEFAULT_LABELS;
|
|
2486
2487
|
export type UiLabelDictionary = Partial<Record<UiLabelKey, string>>;
|
|
@@ -2735,6 +2736,15 @@ export declare class ColumnFilterComponent {
|
|
|
2735
2736
|
/** Decimals the step allows (step 0.01 = 2, a whole-number step = 0). */
|
|
2736
2737
|
protected readonly _decimals: import("@angular/core").Signal<number>;
|
|
2737
2738
|
protected readonly _crossError: import("@angular/core").Signal<string>;
|
|
2739
|
+
/** Firefox / Safari let text into a type=number box (the model becomes null while the box shows it): tracked per field from the native validity. */
|
|
2740
|
+
protected readonly badMin: import("@angular/core").WritableSignal<boolean>;
|
|
2741
|
+
protected readonly badMax: import("@angular/core").WritableSignal<boolean>;
|
|
2742
|
+
/**
|
|
2743
|
+
* The Min above Max message is shown ONCE, under Min (one role="alert", announced once), and is revealed at once (no blur needed),
|
|
2744
|
+
* so it is visible whichever field was edited last. A non-number typed in a field shows its own message under that field.
|
|
2745
|
+
*/
|
|
2746
|
+
protected readonly _minError: import("@angular/core").Signal<string>;
|
|
2747
|
+
protected readonly _maxError: import("@angular/core").Signal<string>;
|
|
2738
2748
|
protected readonly _rangeInvalid: import("@angular/core").Signal<boolean>;
|
|
2739
2749
|
/** Hide options with count = 0, unless they are currently selected (so user can deselect). */
|
|
2740
2750
|
protected readonly _visibleOptions: import("@angular/core").Signal<FilterOption[]>;
|
|
@@ -2751,7 +2761,6 @@ export declare class ColumnFilterComponent {
|
|
|
2751
2761
|
}>;
|
|
2752
2762
|
/** One bound as text: plain number (+ unit), US dollars or a percent, in the app's locale. */
|
|
2753
2763
|
protected _formatBound(v: number): string;
|
|
2754
|
-
protected _boundHint(v: number): string;
|
|
2755
2764
|
protected readonly activeLabelText: import("@angular/core").Signal<string>;
|
|
2756
2765
|
toggle(event: Event): void;
|
|
2757
2766
|
select(value: string): void;
|
|
@@ -2760,6 +2769,10 @@ export declare class ColumnFilterComponent {
|
|
|
2760
2769
|
clear(): void;
|
|
2761
2770
|
/** Enter in Min / Max applies the range when it is valid; while invalid it does nothing (Apply is disabled too). */
|
|
2762
2771
|
onEnter(event: Event): void;
|
|
2772
|
+
/** True when the browser holds text it could not turn into a number (`validity.badInput`). */
|
|
2773
|
+
protected _isBadInput(el: HTMLInputElement | null | undefined): boolean;
|
|
2774
|
+
/** Tracks `validity.badInput` of the Min / Max boxes on every keystroke (the ngModel value is null for such text). */
|
|
2775
|
+
onRangeInput(event: Event): void;
|
|
2763
2776
|
onDocumentClick(_event: Event): void;
|
|
2764
2777
|
onEscape(event?: Event): void;
|
|
2765
2778
|
onArrow(event: Event, dir: 1 | -1): void;
|
|
@@ -3167,8 +3180,8 @@ export declare function requiredIssue(label: string): FieldIssue;
|
|
|
3167
3180
|
export declare function maxLengthIssue(text: string, max: number | undefined | null): FieldIssue | null;
|
|
3168
3181
|
/**
|
|
3169
3182
|
* 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)
|
|
3171
|
-
* touched state again. Must be called from an injection context.
|
|
3183
|
+
* interacted with the field itself (blurred it) OR the host sets `showErrors` (a failed Save / submit click), which reveals an untouched field at once.
|
|
3184
|
+
* Switching `showErrors` from true back to false (the host closing / re-initialising its form) clears the touched state again, so no red field is left. Must be called from an injection context.
|
|
3172
3185
|
*/
|
|
3173
3186
|
export declare function createFieldReveal(showErrors: Signal<boolean>): {
|
|
3174
3187
|
touched: WritableSignal<boolean>;
|
|
@@ -3251,7 +3264,7 @@ export declare class SelectComponent implements ControlValueAccessor, Validator,
|
|
|
3251
3264
|
/** 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. */
|
|
3252
3265
|
readonly ariaDescribedBy: import("@angular/core").InputSignal<string>;
|
|
3253
3266
|
readonly error: import("@angular/core").InputSignal<string>;
|
|
3254
|
-
/** The host's "tried to submit" flag (e.g. after a failed Save click).
|
|
3267
|
+
/** The host's "tried to submit" flag (e.g. after a failed Save click). `true` reveals the message of an untouched field at once (the field also shows it after the user left THIS field); switching it from true back to false forgets that the field was left. */
|
|
3255
3268
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
3256
3269
|
readonly size: import("@angular/core").InputSignal<"default" | "sm">;
|
|
3257
3270
|
readonly _disabledInput: import("@angular/core").InputSignal<boolean>;
|
|
@@ -3893,7 +3906,11 @@ export declare class DataTableComponent<T extends Record<string, any>> implement
|
|
|
3893
3906
|
protected readonly _rangeValues: import("@angular/core").WritableSignal<Record<string, ColumnRangeValue>>;
|
|
3894
3907
|
/** Listed configs by column key, with defaults resolved. */
|
|
3895
3908
|
private readonly _rangeSpecs;
|
|
3896
|
-
/**
|
|
3909
|
+
/**
|
|
3910
|
+
* Ranges of columns that are no longer listed are forgotten, so listing the column again later starts empty (no stale range comes back).
|
|
3911
|
+
* When a forgotten range had a bound, the rows were filtered by it, so the rows are reloaded (page 1, rows only: counts never carry filters)
|
|
3912
|
+
* and match the params again. A host that briefly passes `[]` therefore drops the user's ranges.
|
|
3913
|
+
*/
|
|
3897
3914
|
private readonly _pruneRanges;
|
|
3898
3915
|
/** Query params of the applied ranges (only listed keys; empty bounds omitted). */
|
|
3899
3916
|
protected readonly _rangeParams: Signal<Record<string, string>>;
|
|
@@ -5455,7 +5472,7 @@ export declare class AudioPlayerComponent {
|
|
|
5455
5472
|
/** Accessible name of the player. */
|
|
5456
5473
|
readonly ariaLabel: import("@angular/core").InputSignal<string>;
|
|
5457
5474
|
/** How much to load before play: 'metadata' (default), 'auto' or 'none'. */
|
|
5458
|
-
readonly preload: import("@angular/core").InputSignal<"
|
|
5475
|
+
readonly preload: import("@angular/core").InputSignal<"metadata" | "auto" | "none">;
|
|
5459
5476
|
/** Fires when the browser can't load or decode the source. */
|
|
5460
5477
|
readonly playbackError: import("@angular/core").OutputEmitterRef<void>;
|
|
5461
5478
|
protected readonly failed: import("@angular/core").WritableSignal<boolean>;
|
|
@@ -5755,7 +5772,7 @@ export declare class NotificationBellComponent {
|
|
|
5755
5772
|
* Enter selects it too and Home / End select the first / last star (handled here). Each radio is named "1 star", "2 stars", ...
|
|
5756
5773
|
* - `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.
|
|
5757
5774
|
* - Validation follows `ui-radio-group` (`UiFieldValidity`, `Validator`, `invalidChange`): `required` -> "<label> is required." when the value is 0;
|
|
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]`
|
|
5775
|
+
* 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]="true"` also reveals it on an untouched group);
|
|
5759
5776
|
* a host `[error]` wins. Disabled and readonly are never invalid.
|
|
5760
5777
|
* - 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.
|
|
5761
5778
|
*
|
|
@@ -5774,7 +5791,7 @@ export declare class StarRatingComponent implements ControlValueAccessor, Valida
|
|
|
5774
5791
|
readonly hint: import("@angular/core").InputSignal<string>;
|
|
5775
5792
|
readonly error: import("@angular/core").InputSignal<string>;
|
|
5776
5793
|
readonly required: import("@angular/core").InputSignal<boolean>;
|
|
5777
|
-
/** The host's "tried to submit" flag (e.g. after a failed Save click).
|
|
5794
|
+
/** The host's "tried to submit" flag (e.g. after a failed Save click). `true` reveals the message of an untouched field at once (the field also shows it after the user left THIS field); switching it from true back to false forgets that the field was left. */
|
|
5778
5795
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
5779
5796
|
/** Star size in px (default 24). */
|
|
5780
5797
|
readonly size: import("@angular/core").InputSignal<number>;
|
|
@@ -6009,7 +6026,7 @@ export declare class CheckboxComponent implements ControlValueAccessor, Validato
|
|
|
6009
6026
|
* 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.
|
|
6010
6027
|
* Default null: plain label text, exactly as before. Single mode only.
|
|
6011
6028
|
*/
|
|
6012
|
-
readonly headingLevel: import("@angular/core").InputSignal<
|
|
6029
|
+
readonly headingLevel: import("@angular/core").InputSignal<2 | 1 | 3 | 4 | 5 | 6 | null>;
|
|
6013
6030
|
readonly indeterminate: import("@angular/core").InputSignal<boolean>;
|
|
6014
6031
|
readonly checked: import("@angular/core").ModelSignal<boolean>;
|
|
6015
6032
|
/**
|
|
@@ -6070,7 +6087,7 @@ export declare class CheckboxComponent implements ControlValueAccessor, Validato
|
|
|
6070
6087
|
readonly hint: import("@angular/core").InputSignal<string>;
|
|
6071
6088
|
/** Host-provided error message (wins over the built-in one). */
|
|
6072
6089
|
readonly error: import("@angular/core").InputSignal<string>;
|
|
6073
|
-
/** The host's "tried to submit" flag (e.g. after a failed Save click).
|
|
6090
|
+
/** The host's "tried to submit" flag (e.g. after a failed Save click). `true` reveals the message of an untouched control at once (it also shows after the user left THIS control); switching it from true back to false forgets that the control was left. */
|
|
6074
6091
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
6075
6092
|
protected readonly _descId: string;
|
|
6076
6093
|
private readonly _reveal;
|
|
@@ -6616,7 +6633,7 @@ export declare function businessTimeOptions(step?: BusinessHoursStep, hour24?: b
|
|
|
6616
6633
|
* <ui-business-hours label="Schedule" [(ngModel)]="schedule" [step]="15" [hour24]="true" [allowSplitShifts]="true" [showCopyToWeekdays]="true" />
|
|
6617
6634
|
*
|
|
6618
6635
|
* Inputs
|
|
6619
|
-
* - `label` (names the group), `hint`, `error` (host message, wins), `showErrors` (the host's "tried to submit" flag:
|
|
6636
|
+
* - `label` (names the group), `hint`, `error` (host message, wins), `showErrors` (the host's "tried to submit" flag: `true` reveals the message of an untouched control; otherwise it shows after the first change / blur), `disabled`.
|
|
6620
6637
|
* - `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.
|
|
6621
6638
|
* - `hour24` 24-hour labels ("17:00") instead of "5:00 PM".
|
|
6622
6639
|
* - `allowSplitShifts` adds an "Add shift" / "Remove shift" link per open day for a second shift (`open2` / `close2`), e.g. 9–12 and 1–5.
|
|
@@ -6640,7 +6657,7 @@ export declare class BusinessHoursComponent implements ControlValueAccessor, Val
|
|
|
6640
6657
|
readonly hint: import("@angular/core").InputSignal<string>;
|
|
6641
6658
|
/** Host-provided error message (wins over the built-in ones). */
|
|
6642
6659
|
readonly error: import("@angular/core").InputSignal<string>;
|
|
6643
|
-
/** The host's "tried to submit" flag.
|
|
6660
|
+
/** The host's "tried to submit" flag. `true` reveals the message on an untouched control at once (otherwise it shows after the first change / blur); switching back to false forgets that. */
|
|
6644
6661
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
6645
6662
|
/** At least one day must be open. */
|
|
6646
6663
|
readonly required: import("@angular/core").InputSignal<boolean>;
|
|
@@ -6803,7 +6820,7 @@ export interface RadioOption {
|
|
|
6803
6820
|
* templates render no extra attributes or ids.
|
|
6804
6821
|
*
|
|
6805
6822
|
* Validity API (same on every ui input): Angular `Validator`, signals `invalid` + `errorMessage`, `invalidChange` output,
|
|
6806
|
-
* provides `UiFieldValidity`. Messages (built-in and a host `[error]`) show only after the group lost focus; `[showErrors]`
|
|
6823
|
+
* provides `UiFieldValidity`. Messages (built-in and a host `[error]`) show only after the group lost focus; `[showErrors]="true"` also reveals it on an untouched group.
|
|
6807
6824
|
*/
|
|
6808
6825
|
export declare class RadioGroupComponent implements ControlValueAccessor, Validator, UiFieldValidity {
|
|
6809
6826
|
private readonly _labels;
|
|
@@ -6812,7 +6829,7 @@ export declare class RadioGroupComponent implements ControlValueAccessor, Valida
|
|
|
6812
6829
|
readonly required: import("@angular/core").InputSignal<boolean>;
|
|
6813
6830
|
readonly hint: import("@angular/core").InputSignal<string>;
|
|
6814
6831
|
readonly error: import("@angular/core").InputSignal<string>;
|
|
6815
|
-
/** The host's "tried to submit" flag (e.g. after a failed Save click).
|
|
6832
|
+
/** The host's "tried to submit" flag (e.g. after a failed Save click). `true` reveals the message of an untouched field at once (the field also shows it after the user left THIS field); switching it from true back to false forgets that the field was left. */
|
|
6816
6833
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
6817
6834
|
readonly orientation: import("@angular/core").InputSignal<"vertical" | "horizontal">;
|
|
6818
6835
|
/** Native `name` shared by the radios; a unique one is generated when omitted. */
|
|
@@ -6990,7 +7007,7 @@ export declare class PhoneNumberPickerComponent {
|
|
|
6990
7007
|
protected readonly modeCtl: FormControl<string>;
|
|
6991
7008
|
protected readonly zipCtl: FormControl<string>;
|
|
6992
7009
|
protected readonly areaCtl: FormControl<string>;
|
|
6993
|
-
protected readonly step: import("@angular/core").WritableSignal<
|
|
7010
|
+
protected readonly step: import("@angular/core").WritableSignal<2 | 1 | 3>;
|
|
6994
7011
|
protected readonly mode: import("@angular/core").WritableSignal<PhoneNumberSearchMode>;
|
|
6995
7012
|
private readonly _zip;
|
|
6996
7013
|
private readonly _area;
|
|
@@ -7106,7 +7123,7 @@ export declare class ButtonComponent {
|
|
|
7106
7123
|
* `ghost-start`: a ghost button for list / section toggles - a full-width row with its content aligned to the start, transparent
|
|
7107
7124
|
* background, hover tint and the normal focus ring. Pair it with `ariaExpanded` / `ariaPressed`; the label may contain a heading element.
|
|
7108
7125
|
*/
|
|
7109
|
-
readonly variant: import("@angular/core").InputSignal<"
|
|
7126
|
+
readonly variant: import("@angular/core").InputSignal<"link" | "primary" | "secondary" | "danger" | "warning" | "ghost" | "ghost-start" | "tab" | "icon" | "icon-danger">;
|
|
7110
7127
|
/** 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`). */
|
|
7111
7128
|
readonly routerLink: import("@angular/core").InputSignal<string | readonly unknown[] | null>;
|
|
7112
7129
|
/** Query params of the `routerLink` (e.g. `{ section: 'deal-defaults' }`). */
|
|
@@ -7571,7 +7588,7 @@ export declare class ContactPickerComponent {
|
|
|
7571
7588
|
readonly errorId: import("@angular/core").InputSignal<string>;
|
|
7572
7589
|
/** Marks the combobox / selected group `aria-invalid="true"`. The picker renders no error text itself. */
|
|
7573
7590
|
readonly invalid: import("@angular/core").InputSignal<boolean>;
|
|
7574
|
-
/** The host's "tried to submit" flag (e.g. after a failed Save click).
|
|
7591
|
+
/** The host's "tried to submit" flag (e.g. after a failed Save click). `true` reveals `visibleErrorMessage` (and `ariaInvalid`) on a picker the user has not left. */
|
|
7575
7592
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
7576
7593
|
readonly showDetails: import("@angular/core").InputSignal<boolean>;
|
|
7577
7594
|
readonly isMultiSelect: import("@angular/core").InputSignal<boolean>;
|
|
@@ -7609,9 +7626,9 @@ export declare class ContactPickerComponent {
|
|
|
7609
7626
|
readonly fieldInvalid: import("@angular/core").Signal<boolean>;
|
|
7610
7627
|
/** "<label> is required." while required-and-empty ('' otherwise), shown or not. */
|
|
7611
7628
|
readonly errorMessage: import("@angular/core").Signal<string>;
|
|
7612
|
-
/** `errorMessage` only after the user left the picker (`showErrors`
|
|
7629
|
+
/** `errorMessage` only after the user left the picker (or `showErrors` is true) — render it in a `<ui-error>` under the picker. */
|
|
7613
7630
|
readonly visibleErrorMessage: import("@angular/core").Signal<string>;
|
|
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:
|
|
7631
|
+
/** aria-invalid: only once the user left the picker or `showErrors` is true, and then when the host `[invalid]` flag is set or it is required-and-empty. Never before that: the host flag alone does not mark an untouched picker. */
|
|
7615
7632
|
readonly ariaInvalid: import("@angular/core").Signal<boolean>;
|
|
7616
7633
|
/** The hint is search guidance: hidden while a contact is selected (single-select), back after clear. */
|
|
7617
7634
|
readonly showHint: import("@angular/core").Signal<boolean>;
|
|
@@ -7953,14 +7970,14 @@ export declare const DEFAULT_BANK_HOLDER_TYPE_OPTIONS: SelectOption[];
|
|
|
7953
7970
|
*
|
|
7954
7971
|
* - Validation is inline through the inputs' own `[error]` / built-in rules. The routing number is only checked for 9 digits (no ABA checksum: the
|
|
7955
7972
|
* provider validates the real number, and a client checksum would reject test numbers). Account numbers are 4-17 digits.
|
|
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
|
|
7973
|
+
* - Every message (the built-in ones and the form's own routing / account / confirm messages, which are passed to the inputs as `[error]`) shows after the user left THAT field (blur), or at once on every field while `[showErrors]` is true or after a failed `submit()`. Switching the reveal flag from true back to false (the host's `showErrors` going false, or `reset()`) clears every field's touched state.
|
|
7957
7974
|
* - The form provides `UiFieldValidity` (`invalid` = not submittable), so a host can gate its own button with `viewChildren(UiFieldValidity)`,
|
|
7958
7975
|
* or use `(validChange)`.
|
|
7959
7976
|
* - The host's footer button calls `form.submit()` (via `viewChild`); Enter in a text field submits too.
|
|
7960
7977
|
*/
|
|
7961
7978
|
export declare class BankAccountFormComponent implements UiFieldValidity {
|
|
7962
7979
|
protected readonly labels: UiLabelsService;
|
|
7963
|
-
/** The host's "tried to submit" flag (e.g. a panel's `touched()`).
|
|
7980
|
+
/** The host's "tried to submit" flag (e.g. a panel's `touched()`). `true` reveals every field's message at once and blocks submitting; switching it from true back to false clears every field's touched state. */
|
|
7964
7981
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
7965
7982
|
/** Disables every field and blocks `submit()`. */
|
|
7966
7983
|
readonly disabled: import("@angular/core").InputSignal<boolean>;
|
|
@@ -7994,7 +8011,7 @@ export declare class BankAccountFormComponent implements UiFieldValidity {
|
|
|
7994
8011
|
protected readonly routingFormatter: (raw: string) => string;
|
|
7995
8012
|
protected readonly accountFormatter: (raw: string) => string;
|
|
7996
8013
|
protected readonly locked: import("@angular/core").Signal<boolean>;
|
|
7997
|
-
/** Handed to the inputs as `[showErrors]`.
|
|
8014
|
+
/** Handed to the inputs as `[showErrors]`. `true` reveals each input's message at once; true -> false (host flag off, or `reset()` after a failed `submit()`) clears each input's touched state. */
|
|
7998
8015
|
protected readonly reveal: import("@angular/core").Signal<boolean>;
|
|
7999
8016
|
protected readonly routingError: import("@angular/core").Signal<string>;
|
|
8000
8017
|
protected readonly accountError: import("@angular/core").Signal<string>;
|
|
@@ -8295,7 +8312,7 @@ export declare class TextInputComponent implements ControlValueAccessor, Validat
|
|
|
8295
8312
|
* `search`, `text`, `none`). Empty (default) = the browser's default for the field, except `type="tel"`, which keeps `tel`.
|
|
8296
8313
|
* It only picks the keyboard; it does not restrict what can be typed or pasted.
|
|
8297
8314
|
*/
|
|
8298
|
-
readonly inputmode: import("@angular/core").InputSignal<"" | "
|
|
8315
|
+
readonly inputmode: import("@angular/core").InputSignal<"" | "email" | "text" | "search" | "numeric" | "decimal" | "none" | "tel" | "url">;
|
|
8299
8316
|
readonly readonly: import("@angular/core").InputSignal<boolean>;
|
|
8300
8317
|
readonly hint: import("@angular/core").InputSignal<string>;
|
|
8301
8318
|
/** 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. */
|
|
@@ -8335,7 +8352,7 @@ export declare class TextInputComponent implements ControlValueAccessor, Validat
|
|
|
8335
8352
|
* the 0-decimals rule).
|
|
8336
8353
|
*/
|
|
8337
8354
|
readonly integer: import("@angular/core").InputSignal<boolean>;
|
|
8338
|
-
/** The host's "tried to submit" flag (e.g. after a failed Save click).
|
|
8355
|
+
/** The host's "tried to submit" flag (e.g. after a failed Save click). `true` reveals the message of an untouched field at once (the field also shows it after the user left THIS field); switching it from true back to false forgets that the field was left. */
|
|
8339
8356
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
8340
8357
|
/** 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. */
|
|
8341
8358
|
readonly valueChange: import("@angular/core").OutputEmitterRef<string | number | null>;
|
|
@@ -8378,6 +8395,8 @@ export declare class TextInputComponent implements ControlValueAccessor, Validat
|
|
|
8378
8395
|
protected readonly _defaultRules: readonly PasswordRule[];
|
|
8379
8396
|
private _warned;
|
|
8380
8397
|
private readonly _formatting;
|
|
8398
|
+
/** A host-written phone text that formatting cut short (13 digits -> 10): validity is judged on what the host wrote, so the message matches the control's `phone` error. Cleared by typing. */
|
|
8399
|
+
private readonly _hostText;
|
|
8381
8400
|
private readonly _issue;
|
|
8382
8401
|
/** True while the value breaks a built-in rule or the host passed an `[error]`. */
|
|
8383
8402
|
readonly invalid: import("@angular/core").Signal<boolean>;
|
|
@@ -8719,7 +8738,7 @@ export declare class TextareaInputComponent implements ControlValueAccessor, Val
|
|
|
8719
8738
|
readonly error: import("@angular/core").InputSignal<string>;
|
|
8720
8739
|
/** Opt-in. `true` shows the text in a monospace font (HTML / code / merge-tag fields). Default `false` = unchanged. */
|
|
8721
8740
|
readonly monospace: import("@angular/core").InputSignal<boolean>;
|
|
8722
|
-
/** The host's "tried to submit" flag (e.g. after a failed Save click).
|
|
8741
|
+
/** The host's "tried to submit" flag (e.g. after a failed Save click). `true` reveals the message of an untouched field at once (the field also shows it after the user left THIS field); switching it from true back to false forgets that the field was left. */
|
|
8723
8742
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
8724
8743
|
readonly _disabledInput: import("@angular/core").InputSignal<boolean>;
|
|
8725
8744
|
private readonly _cvaDisabled;
|
|
@@ -8977,7 +8996,7 @@ export declare function acceptLabel(accept: string): string;
|
|
|
8977
8996
|
* 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`
|
|
8978
8997
|
* override the wording, also in picker-only mode), and `(fileRejected)` emits `{ file, reason, message }`.
|
|
8979
8998
|
* - `required` is a real rule: Angular `Validator` + `UiFieldValidity` (`invalid`, `errorMessage`, `invalidChange`,
|
|
8980
|
-
* `showErrors`), like the other inputs. The message (built-in and host `error`) shows only after the user used the field; `[showErrors]`
|
|
8999
|
+
* `showErrors`), like the other inputs. The message (built-in and host `error`) shows only after the user used the field; `[showErrors]="true"` also reveals it. A refused file is always shown at once.
|
|
8981
9000
|
* - `dropzone`: the field accepts files dropped on it.
|
|
8982
9001
|
* - `showDetails`: file size after the name; `preview`: a thumbnail of a chosen image.
|
|
8983
9002
|
* - `loading` (+ `loadingText`): a `ui-skeleton` replaces the file name while the host works on the file (scanning, uploading).
|
|
@@ -8994,14 +9013,14 @@ export declare class FileInputComponent implements ControlValueAccessor, Validat
|
|
|
8994
9013
|
/** Native `accept` string, e.g. ".pdf,.png". Also enforced on picked and dropped files unless `enforceAccept` is false. */
|
|
8995
9014
|
readonly accept: import("@angular/core").InputSignal<string>;
|
|
8996
9015
|
readonly multiple: import("@angular/core").InputSignal<boolean>;
|
|
8997
|
-
/** A file must be chosen (a real rule: Validator + UiFieldValidity, message shown only after the user used the field; `showErrors`
|
|
9016
|
+
/** A file must be chosen (a real rule: Validator + UiFieldValidity, message shown only after the user used the field; `showErrors="true"` reveals it at once). */
|
|
8998
9017
|
readonly required: import("@angular/core").InputSignal<boolean>;
|
|
8999
9018
|
readonly hint: import("@angular/core").InputSignal<string>;
|
|
9000
9019
|
/** Host-provided error message (wins over the built-in ones). Shown under a visible field only. */
|
|
9001
9020
|
readonly error: import("@angular/core").InputSignal<string>;
|
|
9002
9021
|
/** false = no visible field; open the picker from the host with `open()`. */
|
|
9003
9022
|
readonly showField: import("@angular/core").InputSignal<boolean>;
|
|
9004
|
-
/** The host's "tried to submit" flag (e.g. after a failed Save click).
|
|
9023
|
+
/** The host's "tried to submit" flag (e.g. after a failed Save click). `true` reveals the "required" message before the user used the field. */
|
|
9005
9024
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
9006
9025
|
/**
|
|
9007
9026
|
* Also report every refused file (wrong type, too big, too small, empty) with a `ToastService` error toast that names the file and
|
|
@@ -9407,7 +9426,7 @@ export declare class DateInputComponent implements ControlValueAccessor, Validat
|
|
|
9407
9426
|
/** 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. */
|
|
9408
9427
|
readonly ariaDescribedBy: import("@angular/core").InputSignal<string>;
|
|
9409
9428
|
readonly error: import("@angular/core").InputSignal<string>;
|
|
9410
|
-
/** The host's "tried to submit" flag (e.g. after a failed Save click).
|
|
9429
|
+
/** The host's "tried to submit" flag (e.g. after a failed Save click). `true` reveals the message of an untouched field at once (the field also shows it after the user left THIS field); switching it from true back to false forgets that the field was left. */
|
|
9411
9430
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
9412
9431
|
/** 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. */
|
|
9413
9432
|
readonly _disabledInput: import("@angular/core").InputSignal<boolean>;
|
|
@@ -9505,7 +9524,7 @@ export declare class DatetimeInputComponent implements ControlValueAccessor, Val
|
|
|
9505
9524
|
/** 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. */
|
|
9506
9525
|
readonly ariaDescribedBy: import("@angular/core").InputSignal<string>;
|
|
9507
9526
|
readonly error: import("@angular/core").InputSignal<string>;
|
|
9508
|
-
/** The host's "tried to submit" flag (e.g. after a failed Save click).
|
|
9527
|
+
/** The host's "tried to submit" flag (e.g. after a failed Save click). `true` reveals the message of an untouched field at once (the field also shows it after the user left THIS field); switching it from true back to false forgets that the field was left. */
|
|
9509
9528
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
9510
9529
|
readonly _disabledInput: import("@angular/core").InputSignal<boolean>;
|
|
9511
9530
|
private readonly _cvaDisabled;
|
|
@@ -9601,7 +9620,7 @@ export declare class TimeInputComponent implements ControlValueAccessor, Validat
|
|
|
9601
9620
|
/** 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. */
|
|
9602
9621
|
readonly ariaDescribedBy: import("@angular/core").InputSignal<string>;
|
|
9603
9622
|
readonly error: import("@angular/core").InputSignal<string>;
|
|
9604
|
-
/** The host's "tried to submit" flag (e.g. after a failed Save click).
|
|
9623
|
+
/** The host's "tried to submit" flag (e.g. after a failed Save click). `true` reveals the message of an untouched field at once (the field also shows it after the user left THIS field); switching it from true back to false forgets that the field was left. */
|
|
9605
9624
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
9606
9625
|
/** Public (like the other inputs) so `[disabled]` can be bound in a host template. */
|
|
9607
9626
|
readonly _disabledInput: import("@angular/core").InputSignal<boolean>;
|
|
@@ -9722,7 +9741,7 @@ export interface ComboboxSelection {
|
|
|
9722
9741
|
* on focus and `(searchChange)` fires with '' so the host can show its initial results.
|
|
9723
9742
|
* - `[debounce]` ms between the last keystroke and `(searchChange)` (default 250). Focus / ArrowDown-open emit immediately.
|
|
9724
9743
|
* - `[label] [ariaLabel] [placeholder] [required] [hint] [error] [disabled] [showErrors]` like `ui-text-input`
|
|
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`
|
|
9744
|
+
* (host `[error]` wins over the built-in "<label> is required."; messages (built-in and host) show only after the user left the field, `showErrors` also reveals it on an untouched field).
|
|
9726
9745
|
* - `(searchChange)` string, `(valueChange)` `ComboboxOption | null` (the full chosen option, null when cleared),
|
|
9727
9746
|
* `(invalidChange)` boolean, `(focused)`, `(blurred)`. Validity: `UiFieldValidity` token + Angular `Validator`.
|
|
9728
9747
|
*
|
|
@@ -9972,7 +9991,9 @@ export declare class MultiSelectComponent implements ControlValueAccessor {
|
|
|
9972
9991
|
protected readonly _selectedOptions: import("@angular/core").Signal<SelectOption<string>[]>;
|
|
9973
9992
|
protected readonly _filteredOptions: import("@angular/core").Signal<SelectOption<string>[]>;
|
|
9974
9993
|
private _onChange;
|
|
9975
|
-
/** The host `
|
|
9994
|
+
/** The host's "tried to submit" flag (e.g. after a failed Save click): `true` shows the host `error` at once, even before the user touched the field; otherwise it shows once the user closed the list or moved focus out of the control (Tab away) even if the list stayed open; true -> false forgets the interaction (closing the form leaves no red field). */
|
|
9995
|
+
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
9996
|
+
private readonly _reveal;
|
|
9976
9997
|
private readonly _touched;
|
|
9977
9998
|
protected readonly _shownError: import("@angular/core").Signal<string>;
|
|
9978
9999
|
/** 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. */
|
|
@@ -10044,6 +10065,11 @@ export declare class MultiSelectComponent implements ControlValueAccessor {
|
|
|
10044
10065
|
"required": false;
|
|
10045
10066
|
"isSignal": true;
|
|
10046
10067
|
};
|
|
10068
|
+
"showErrors": {
|
|
10069
|
+
"alias": "showErrors";
|
|
10070
|
+
"required": false;
|
|
10071
|
+
"isSignal": true;
|
|
10072
|
+
};
|
|
10047
10073
|
}, {
|
|
10048
10074
|
"selected": "selectedChange";
|
|
10049
10075
|
}, never, never, true, never>;
|
|
@@ -10124,7 +10150,7 @@ export declare class DropdownComponent {
|
|
|
10124
10150
|
readonly loader: import("@angular/core").InputSignal<(() => Promise<DropdownItem[]>) | null>;
|
|
10125
10151
|
readonly active: import("@angular/core").InputSignal<boolean>;
|
|
10126
10152
|
readonly activeValue: import("@angular/core").InputSignal<string>;
|
|
10127
|
-
readonly variant: import("@angular/core").InputSignal<"
|
|
10153
|
+
readonly variant: import("@angular/core").InputSignal<"button" | "badge">;
|
|
10128
10154
|
/** Trigger size for `variant="button"`: `sm` (default, the compact toolbar look) or `md` (same padding and type as a medium `ui-button`). */
|
|
10129
10155
|
readonly size: import("@angular/core").InputSignal<"sm" | "md">;
|
|
10130
10156
|
readonly menuWidth: import("@angular/core").InputSignal<string>;
|
|
@@ -10440,7 +10466,7 @@ export declare class FormSectionComponent {
|
|
|
10440
10466
|
}, {}, never, ["*"], true, never>;
|
|
10441
10467
|
}
|
|
10442
10468
|
export declare class FormRowComponent {
|
|
10443
|
-
readonly cols: import("@angular/core").InputSignal<
|
|
10469
|
+
readonly cols: import("@angular/core").InputSignal<2 | 1 | 3 | 4>;
|
|
10444
10470
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormRowComponent, never>;
|
|
10445
10471
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormRowComponent, "ui-form-row", never, {
|
|
10446
10472
|
"cols": {
|
|
@@ -12665,7 +12691,7 @@ type AddressField = keyof AddressValue;
|
|
|
12665
12691
|
* 5 digits or 5+4 ("Enter a valid ZIP code."); state must be one of the options ("Select a valid option."); maxlengths
|
|
12666
12692
|
* ("Too long (max N characters)."); `requireComplete` -> once ANY of street / city / state / ZIP is filled the others are required too
|
|
12667
12693
|
* (for an optional address that must not be half-filled). The unit is never required. Messages show per field after that field was left,
|
|
12668
|
-
*
|
|
12694
|
+
* revealed at once by `showErrors="true"`, otherwise only a sub-field the user left shows its message; the host `error` is shown under the group and always counts as invalid.
|
|
12669
12695
|
*
|
|
12670
12696
|
* Layout: street + unit, then city + state + ZIP in `ui-form-row`s (they collapse to one column on phones).
|
|
12671
12697
|
*/
|
|
@@ -12709,7 +12735,7 @@ export declare class AddressInputComponent implements ControlValueAccessor, Vali
|
|
|
12709
12735
|
readonly zipMaxlength: import("@angular/core").InputSignal<number>;
|
|
12710
12736
|
/** Native select cannot be read-only: while `readonly`, the State select is disabled and the text fields are read-only. */
|
|
12711
12737
|
readonly readonly: import("@angular/core").InputSignal<boolean>;
|
|
12712
|
-
/** The host's "tried to submit" flag.
|
|
12738
|
+
/** The host's "tried to submit" flag. `true` reveals every sub-field's message (and the host `error`) at once; switching back to false forgets which fields were left. */
|
|
12713
12739
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
12714
12740
|
readonly hint: import("@angular/core").InputSignal<string>;
|
|
12715
12741
|
/** Host error for the whole address; shown under the group (replaces the hint), always makes the field invalid. */
|
|
@@ -12724,7 +12750,7 @@ export declare class AddressInputComponent implements ControlValueAccessor, Vali
|
|
|
12724
12750
|
* the object. `valueChange` always emits the object. A written string is read with `parseAddressValue` for display only: the control keeps
|
|
12725
12751
|
* the original text until the user edits a field (so a text the parser cannot split is not rewritten on load).
|
|
12726
12752
|
*/
|
|
12727
|
-
readonly valueFormat: import("@angular/core").InputSignal<"object" | "
|
|
12753
|
+
readonly valueFormat: import("@angular/core").InputSignal<"object" | "text" | "auto">;
|
|
12728
12754
|
/** 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. */
|
|
12729
12755
|
readonly zipPattern: import("@angular/core").InputSignal<RegExp | null>;
|
|
12730
12756
|
/** Message shown when the ZIP breaks `zipPattern`. */
|
|
@@ -12759,7 +12785,7 @@ export declare class AddressInputComponent implements ControlValueAccessor, Vali
|
|
|
12759
12785
|
readonly errorMessage: import("@angular/core").Signal<string>;
|
|
12760
12786
|
/** Street, city, state and ZIP are required: always with `required`, and with `requireComplete` once any of them has text. */
|
|
12761
12787
|
protected readonly _req: import("@angular/core").Signal<boolean>;
|
|
12762
|
-
/** The host `[error]` shows
|
|
12788
|
+
/** The host `[error]` shows after the user left one of the address fields, or while `showErrors` is true. */
|
|
12763
12789
|
protected readonly _shownError: import("@angular/core").Signal<string>;
|
|
12764
12790
|
protected readonly _describedBy: import("@angular/core").Signal<string | null>;
|
|
12765
12791
|
private _onChange;
|
|
@@ -12780,7 +12806,7 @@ export declare class AddressInputComponent implements ControlValueAccessor, Vali
|
|
|
12780
12806
|
validate(control: AbstractControl): ValidationErrors | null;
|
|
12781
12807
|
protected _set(field: AddressField, text: unknown): void;
|
|
12782
12808
|
protected _onFocusOut(field: AddressField, event: FocusEvent): void;
|
|
12783
|
-
/** True while the field's own message may show:
|
|
12809
|
+
/** True while the field's own message may show: after the field was left, or while the host's `showErrors` is true. Bound to the child's `showErrors` so a reset clears the child too. */
|
|
12784
12810
|
protected _revealed(field: AddressField): boolean;
|
|
12785
12811
|
protected _fieldError(field: AddressField): string;
|
|
12786
12812
|
private _hasText;
|
|
@@ -13670,9 +13696,12 @@ export declare class RichTextEditorComponent implements ControlValueAccessor {
|
|
|
13670
13696
|
readonly required: import("@angular/core").InputSignal<boolean>;
|
|
13671
13697
|
readonly readonly: import("@angular/core").InputSignal<boolean>;
|
|
13672
13698
|
readonly hint: import("@angular/core").InputSignal<string>;
|
|
13673
|
-
/** Host error message. Shown (with the red state, aria-invalid and aria-describedby)
|
|
13699
|
+
/** Host error message. Shown (with the red state, aria-invalid and aria-describedby) after the user left the editor (blur) or while `showErrors` is true. */
|
|
13674
13700
|
readonly error: import("@angular/core").InputSignal<string>;
|
|
13675
13701
|
/** True once the user left the editor. */
|
|
13702
|
+
/** The host's "tried to submit" flag (e.g. after a failed Save click): `true` shows the host `error` at once, even before the user touched the field; switching it from true back to false forgets the interaction (closing the form leaves no red field). */
|
|
13703
|
+
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
13704
|
+
private readonly _reveal;
|
|
13676
13705
|
protected readonly _touched: import("@angular/core").WritableSignal<boolean>;
|
|
13677
13706
|
protected readonly _activeError: import("@angular/core").Signal<string>;
|
|
13678
13707
|
/** 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. */
|
|
@@ -13810,6 +13839,11 @@ export declare class RichTextEditorComponent implements ControlValueAccessor {
|
|
|
13810
13839
|
"required": false;
|
|
13811
13840
|
"isSignal": true;
|
|
13812
13841
|
};
|
|
13842
|
+
"showErrors": {
|
|
13843
|
+
"alias": "showErrors";
|
|
13844
|
+
"required": false;
|
|
13845
|
+
"isSignal": true;
|
|
13846
|
+
};
|
|
13813
13847
|
"minHeight": {
|
|
13814
13848
|
"alias": "minHeight";
|
|
13815
13849
|
"required": false;
|
|
@@ -14006,7 +14040,7 @@ export declare class SwatchPickerComponent implements ControlValueAccessor, Vali
|
|
|
14006
14040
|
readonly required: import("@angular/core").InputSignal<boolean>;
|
|
14007
14041
|
readonly hint: import("@angular/core").InputSignal<string>;
|
|
14008
14042
|
readonly error: import("@angular/core").InputSignal<string>;
|
|
14009
|
-
/** The host's "tried to submit" flag (e.g. after a failed Save click).
|
|
14043
|
+
/** The host's "tried to submit" flag (e.g. after a failed Save click). `true` reveals the message of an untouched field at once (the field also shows it after the user left THIS field); switching it from true back to false forgets that the field was left. */
|
|
14010
14044
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
14011
14045
|
/** Fixed number of swatches per row (0 = wrap freely, the default). On a phone the row wraps by width instead. */
|
|
14012
14046
|
readonly columns: import("@angular/core").InputSignal<number>;
|
|
@@ -14123,7 +14157,7 @@ export declare class IconPickerComponent implements ControlValueAccessor, Valida
|
|
|
14123
14157
|
readonly required: import("@angular/core").InputSignal<boolean>;
|
|
14124
14158
|
readonly hint: import("@angular/core").InputSignal<string>;
|
|
14125
14159
|
readonly error: import("@angular/core").InputSignal<string>;
|
|
14126
|
-
/** The host's "tried to submit" flag (e.g. after a failed Save click).
|
|
14160
|
+
/** The host's "tried to submit" flag (e.g. after a failed Save click). `true` reveals the message of an untouched field at once (the field also shows it after the user left THIS field); switching it from true back to false forgets that the field was left. */
|
|
14127
14161
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
14128
14162
|
/** SVG path drawn for an option: its `path`, else the library icon `iconKey` (default: the option's `value`); '' when unknown. */
|
|
14129
14163
|
protected _path(o: IconPickerOption): string;
|
|
@@ -14259,7 +14293,7 @@ export interface RadioMatrixRow {
|
|
|
14259
14293
|
* ignored (and kept untouched in the model). Disabled matrices are never invalid.
|
|
14260
14294
|
*
|
|
14261
14295
|
* Validity API (same on every ui input): Angular `Validator`, signals `invalid` + `errorMessage`, `invalidChange` output,
|
|
14262
|
-
* provides `UiFieldValidity`. Messages (built-in and a host `[error]`) show only after the matrix lost focus; `[showErrors]`
|
|
14296
|
+
* provides `UiFieldValidity`. Messages (built-in and a host `[error]`) show only after the matrix lost focus; `[showErrors]="true"` also reveals it on an untouched matrix.
|
|
14263
14297
|
*
|
|
14264
14298
|
* <ui-radio-matrix label="Page permissions" rowHeader="Page" [rows]="pages" [columns]="levels" [(ngModel)]="permissions" />
|
|
14265
14299
|
*/
|
|
@@ -14273,7 +14307,7 @@ export declare class RadioMatrixComponent implements ControlValueAccessor, Valid
|
|
|
14273
14307
|
readonly required: import("@angular/core").InputSignal<boolean>;
|
|
14274
14308
|
readonly hint: import("@angular/core").InputSignal<string>;
|
|
14275
14309
|
readonly error: import("@angular/core").InputSignal<string>;
|
|
14276
|
-
/** The host's "tried to submit" flag (e.g. after a failed Save click).
|
|
14310
|
+
/** The host's "tried to submit" flag (e.g. after a failed Save click). `true` reveals the message of an untouched field at once (the field also shows it after the user left THIS field); switching it from true back to false forgets that the field was left. */
|
|
14277
14311
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
14278
14312
|
/** Prefix of the native radio `name`s (one name per row); a unique one is generated when omitted. */
|
|
14279
14313
|
readonly name: import("@angular/core").InputSignal<string>;
|
|
@@ -14392,9 +14426,12 @@ export declare class SignaturePadComponent implements ControlValueAccessor {
|
|
|
14392
14426
|
/** Accessible name when there is no visible label. A default describing the keyboard controls is used when neither is set. */
|
|
14393
14427
|
readonly ariaLabel: import("@angular/core").InputSignal<string>;
|
|
14394
14428
|
readonly hint: import("@angular/core").InputSignal<string>;
|
|
14395
|
-
/** Host error message. Shown (with the red state and aria-invalid)
|
|
14429
|
+
/** Host error message. Shown (with the red state and aria-invalid) after the user interacted with the pad (finished a stroke or left it) or while `showErrors` is true. */
|
|
14396
14430
|
readonly error: import("@angular/core").InputSignal<string>;
|
|
14397
14431
|
/** True once the user drew on the pad or tabbed away from it. */
|
|
14432
|
+
/** The host's "tried to submit" flag (e.g. after a failed Save click): `true` shows the host `error` at once, even before the user touched the field; switching it from true back to false forgets the interaction (closing the form leaves no red field). */
|
|
14433
|
+
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
14434
|
+
private readonly _reveal;
|
|
14398
14435
|
protected readonly _touched: import("@angular/core").WritableSignal<boolean>;
|
|
14399
14436
|
protected readonly _activeError: import("@angular/core").Signal<string>;
|
|
14400
14437
|
/** Forgets that the user interacted (call it when the host resets its form): a host `error` is hidden again until the next stroke / blur. */
|
|
@@ -14505,6 +14542,11 @@ export declare class SignaturePadComponent implements ControlValueAccessor {
|
|
|
14505
14542
|
"required": false;
|
|
14506
14543
|
"isSignal": true;
|
|
14507
14544
|
};
|
|
14545
|
+
"showErrors": {
|
|
14546
|
+
"alias": "showErrors";
|
|
14547
|
+
"required": false;
|
|
14548
|
+
"isSignal": true;
|
|
14549
|
+
};
|
|
14508
14550
|
"width": {
|
|
14509
14551
|
"alias": "width";
|
|
14510
14552
|
"required": false;
|
|
@@ -14727,7 +14769,7 @@ export declare class DetailCardComponent {
|
|
|
14727
14769
|
/** true (default) = the title is displayed in capitals (CSS only); false = shown as written. The text, aria-label and heading name are never changed. */
|
|
14728
14770
|
readonly uppercaseTitle: import("@angular/core").InputSignal<boolean>;
|
|
14729
14771
|
/** 1-6 makes the title a real heading for screen readers (role=heading, aria-level); null keeps it plain text. */
|
|
14730
|
-
readonly headingLevel: import("@angular/core").InputSignal<
|
|
14772
|
+
readonly headingLevel: import("@angular/core").InputSignal<2 | 1 | 3 | 4 | 5 | 6 | null>;
|
|
14731
14773
|
/** Optional id for the title text; the card is then labelled by it. Without it the title is the card's aria-label. */
|
|
14732
14774
|
readonly titleId: import("@angular/core").InputSignal<string>;
|
|
14733
14775
|
/** Accessible name of the card when the header gives none (no header, or no title). A visible title wins; blank = no name. */
|
|
@@ -15413,7 +15455,7 @@ export declare function normalizeHexColor(value: string | null | undefined, allo
|
|
|
15413
15455
|
* - Picking in the native picker with an 8-digit value and `allowAlpha` keeps the existing alpha digits.
|
|
15414
15456
|
*
|
|
15415
15457
|
* Validity API (same as the other ui inputs): `Validator` (error keys `required`, `color`), signals `invalid` /
|
|
15416
|
-
* `errorMessage`, `invalidChange` output, `UiFieldValidity` token. Messages (built-in and a host `[error]`) show only after the user left the field; `[showErrors]`
|
|
15458
|
+
* `errorMessage`, `invalidChange` output, `UiFieldValidity` token. Messages (built-in and a host `[error]`) show only after the user left the field; `[showErrors]="true"` also reveals it on an untouched field. Disabled controls are never invalid.
|
|
15417
15459
|
*
|
|
15418
15460
|
* Cross-browser: the native swatch is styled with `-webkit-appearance` and the `::-webkit-color-swatch` / `::-moz-color-swatch`
|
|
15419
15461
|
* pseudo-elements and sits invisibly over our own preview square, so it looks the same in Chrome, Edge, Firefox and Safari.
|
|
@@ -15429,7 +15471,7 @@ export declare class ColorInputComponent implements ControlValueAccessor, Valida
|
|
|
15429
15471
|
readonly hint: import("@angular/core").InputSignal<string>;
|
|
15430
15472
|
/** Host error message; always wins over the built-in message. */
|
|
15431
15473
|
readonly error: import("@angular/core").InputSignal<string>;
|
|
15432
|
-
/** The host's "tried to submit" flag (e.g. after a failed Save click).
|
|
15474
|
+
/** The host's "tried to submit" flag (e.g. after a failed Save click). `true` reveals the message of an untouched field at once (the field also shows it after the user left THIS field); switching it from true back to false forgets that the field was left. */
|
|
15433
15475
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
15434
15476
|
/** Accept (and keep) 8-digit `#rrggbbaa` values. */
|
|
15435
15477
|
readonly allowAlpha: import("@angular/core").InputSignal<boolean>;
|