@forgeroute/ui 0.4.95 → 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.mjs +67 -11
- 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 +72 -47
package/package.json
CHANGED
|
@@ -16,7 +16,7 @@ export declare class VideoPickerComponent implements UiFieldValidity {
|
|
|
16
16
|
readonly label: import("@angular/core").InputSignal<string>;
|
|
17
17
|
/** Shows the red required marker; the picker is then invalid until a video is picked. */
|
|
18
18
|
readonly required: import("@angular/core").InputSignal<boolean>;
|
|
19
|
-
/** The host's "tried to submit" flag (e.g. after a failed Save click).
|
|
19
|
+
/** The host's "tried to submit" flag (e.g. after a failed Save click). `true` shows the "<label> is required." message at once on a field the user has not left; otherwise it shows after the field was blurred; true -> false hides it again. */
|
|
20
20
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
21
21
|
/** Emits whenever `invalid` flips. */
|
|
22
22
|
readonly invalidChange: import("@angular/core").OutputEmitterRef<boolean>;
|
|
@@ -46,7 +46,7 @@ export declare class VideoPickerComponent implements UiFieldValidity {
|
|
|
46
46
|
readonly invalid: import("@angular/core").Signal<boolean>;
|
|
47
47
|
/** "<label> is required." while invalid ('' otherwise), shown or not. */
|
|
48
48
|
readonly errorMessage: import("@angular/core").Signal<string>;
|
|
49
|
-
/** `errorMessage` once the field was blurred
|
|
49
|
+
/** `errorMessage` once the field was blurred, or at once while `showErrors` is true. */
|
|
50
50
|
readonly visibleError: import("@angular/core").Signal<string>;
|
|
51
51
|
readonly activeDescendant: import("@angular/core").Signal<string | null>;
|
|
52
52
|
/** Polite announcement for screen readers: searching, the result count, or no results (only while the list is open). */
|
|
@@ -123,7 +123,7 @@ export declare class TemplatePickerComponent {
|
|
|
123
123
|
readonly label: import("@angular/core").Signal<string>;
|
|
124
124
|
/** Shows the red required asterisk (same as the library inputs) — e.g. when a template must be picked to send. */
|
|
125
125
|
readonly required: import("@angular/core").InputSignal<boolean>;
|
|
126
|
-
/** The host's "tried to submit" flag (e.g. after a failed Send click).
|
|
126
|
+
/** The host's "tried to submit" flag (e.g. after a failed Send click). `true` shows the "<label> is required." message at once on a field the user has not left; otherwise it shows after the field was blurred; true -> false hides it again. */
|
|
127
127
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
128
128
|
readonly templateSelected: import("@angular/core").OutputEmitterRef<TemplateItem>;
|
|
129
129
|
readonly previewClick: import("@angular/core").OutputEmitterRef<{
|
|
@@ -146,7 +146,7 @@ export declare class TemplatePickerComponent {
|
|
|
146
146
|
readonly invalid: import("@angular/core").Signal<boolean>;
|
|
147
147
|
/** "<label> is required." while invalid ('' otherwise), shown or not. */
|
|
148
148
|
readonly errorMessage: import("@angular/core").Signal<string>;
|
|
149
|
-
/** `errorMessage` once the field was blurred
|
|
149
|
+
/** `errorMessage` once the field was blurred, or at once while `showErrors` is true. */
|
|
150
150
|
readonly visibleError: import("@angular/core").Signal<string>;
|
|
151
151
|
/** Polite announcement for screen readers: searching, the result count, or no results (only while the list is open). */
|
|
152
152
|
readonly liveText: import("@angular/core").Signal<string>;
|
|
@@ -537,9 +537,9 @@ export declare const DOCUMENT_PURPOSE_OPTIONS: SelectOption[];
|
|
|
537
537
|
*
|
|
538
538
|
* Validity: provides `UiFieldValidity` (`invalid` / `errorMessage`) and the `invalidChange` output. Invalid when `required`
|
|
539
539
|
* and nothing is chosen, when the purpose is "Send as attachment" and a chosen document has no stored file, or when a shown signing
|
|
540
|
-
* setting is blank / out of range. The document message shows
|
|
541
|
-
* (picked or removed a document, changed the purpose, or left the search box)
|
|
542
|
-
*
|
|
540
|
+
* setting is blank / out of range. The document message shows after the user interacted with the document selection
|
|
541
|
+
* (picked or removed a document, changed the purpose, or left the search box) or while `showErrors` is true; switching it back to
|
|
542
|
+
* false clears the touched state. An envelope's fixed (locked) document list has nothing the user can touch, so its status notice (no documents / archived document), which blocks Send, is always shown.
|
|
543
543
|
*/
|
|
544
544
|
export declare class DocumentSendOptionsComponent implements UiFieldValidity {
|
|
545
545
|
protected readonly labels: UiLabelsService;
|
|
@@ -553,7 +553,7 @@ export declare class DocumentSendOptionsComponent implements UiFieldValidity {
|
|
|
553
553
|
readonly label: import("@angular/core").Signal<string>;
|
|
554
554
|
/** When true, at least one document must be chosen. The message forms leave it false: documents are optional there. */
|
|
555
555
|
readonly required: import("@angular/core").InputSignal<boolean>;
|
|
556
|
-
/** The host's "tried to submit" flag.
|
|
556
|
+
/** The host's "tried to submit" flag. `true` shows the document message (and the signing / signer messages) at once; otherwise only the user's own interaction with the selection does; true -> false clears the touched state. */
|
|
557
557
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
558
558
|
protected readonly _reveal: {
|
|
559
559
|
touched: import("@angular/core").WritableSignal<boolean>;
|
package/types/forgeroute-ui.d.ts
CHANGED
|
@@ -3180,8 +3180,8 @@ export declare function requiredIssue(label: string): FieldIssue;
|
|
|
3180
3180
|
export declare function maxLengthIssue(text: string, max: number | undefined | null): FieldIssue | null;
|
|
3181
3181
|
/**
|
|
3182
3182
|
* Touched / reveal bookkeeping shared by the inputs. Messages (built-in AND a host `[error]`) are shown only once the user
|
|
3183
|
-
* interacted with the field itself (blurred it)
|
|
3184
|
-
* 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.
|
|
3185
3185
|
*/
|
|
3186
3186
|
export declare function createFieldReveal(showErrors: Signal<boolean>): {
|
|
3187
3187
|
touched: WritableSignal<boolean>;
|
|
@@ -3264,7 +3264,7 @@ export declare class SelectComponent implements ControlValueAccessor, Validator,
|
|
|
3264
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. */
|
|
3265
3265
|
readonly ariaDescribedBy: import("@angular/core").InputSignal<string>;
|
|
3266
3266
|
readonly error: import("@angular/core").InputSignal<string>;
|
|
3267
|
-
/** 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. */
|
|
3268
3268
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
3269
3269
|
readonly size: import("@angular/core").InputSignal<"default" | "sm">;
|
|
3270
3270
|
readonly _disabledInput: import("@angular/core").InputSignal<boolean>;
|
|
@@ -5472,7 +5472,7 @@ export declare class AudioPlayerComponent {
|
|
|
5472
5472
|
/** Accessible name of the player. */
|
|
5473
5473
|
readonly ariaLabel: import("@angular/core").InputSignal<string>;
|
|
5474
5474
|
/** How much to load before play: 'metadata' (default), 'auto' or 'none'. */
|
|
5475
|
-
readonly preload: import("@angular/core").InputSignal<"
|
|
5475
|
+
readonly preload: import("@angular/core").InputSignal<"metadata" | "auto" | "none">;
|
|
5476
5476
|
/** Fires when the browser can't load or decode the source. */
|
|
5477
5477
|
readonly playbackError: import("@angular/core").OutputEmitterRef<void>;
|
|
5478
5478
|
protected readonly failed: import("@angular/core").WritableSignal<boolean>;
|
|
@@ -5772,7 +5772,7 @@ export declare class NotificationBellComponent {
|
|
|
5772
5772
|
* Enter selects it too and Home / End select the first / last star (handled here). Each radio is named "1 star", "2 stars", ...
|
|
5773
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.
|
|
5774
5774
|
* - Validation follows `ui-radio-group` (`UiFieldValidity`, `Validator`, `invalidChange`): `required` -> "<label> is required." when the value is 0;
|
|
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]`
|
|
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);
|
|
5776
5776
|
* a host `[error]` wins. Disabled and readonly are never invalid.
|
|
5777
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.
|
|
5778
5778
|
*
|
|
@@ -5791,7 +5791,7 @@ export declare class StarRatingComponent implements ControlValueAccessor, Valida
|
|
|
5791
5791
|
readonly hint: import("@angular/core").InputSignal<string>;
|
|
5792
5792
|
readonly error: import("@angular/core").InputSignal<string>;
|
|
5793
5793
|
readonly required: import("@angular/core").InputSignal<boolean>;
|
|
5794
|
-
/** 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. */
|
|
5795
5795
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
5796
5796
|
/** Star size in px (default 24). */
|
|
5797
5797
|
readonly size: import("@angular/core").InputSignal<number>;
|
|
@@ -6026,7 +6026,7 @@ export declare class CheckboxComponent implements ControlValueAccessor, Validato
|
|
|
6026
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.
|
|
6027
6027
|
* Default null: plain label text, exactly as before. Single mode only.
|
|
6028
6028
|
*/
|
|
6029
|
-
readonly headingLevel: import("@angular/core").InputSignal<
|
|
6029
|
+
readonly headingLevel: import("@angular/core").InputSignal<2 | 1 | 3 | 4 | 5 | 6 | null>;
|
|
6030
6030
|
readonly indeterminate: import("@angular/core").InputSignal<boolean>;
|
|
6031
6031
|
readonly checked: import("@angular/core").ModelSignal<boolean>;
|
|
6032
6032
|
/**
|
|
@@ -6087,7 +6087,7 @@ export declare class CheckboxComponent implements ControlValueAccessor, Validato
|
|
|
6087
6087
|
readonly hint: import("@angular/core").InputSignal<string>;
|
|
6088
6088
|
/** Host-provided error message (wins over the built-in one). */
|
|
6089
6089
|
readonly error: import("@angular/core").InputSignal<string>;
|
|
6090
|
-
/** 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. */
|
|
6091
6091
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
6092
6092
|
protected readonly _descId: string;
|
|
6093
6093
|
private readonly _reveal;
|
|
@@ -6633,7 +6633,7 @@ export declare function businessTimeOptions(step?: BusinessHoursStep, hour24?: b
|
|
|
6633
6633
|
* <ui-business-hours label="Schedule" [(ngModel)]="schedule" [step]="15" [hour24]="true" [allowSplitShifts]="true" [showCopyToWeekdays]="true" />
|
|
6634
6634
|
*
|
|
6635
6635
|
* Inputs
|
|
6636
|
-
* - `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`.
|
|
6637
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.
|
|
6638
6638
|
* - `hour24` 24-hour labels ("17:00") instead of "5:00 PM".
|
|
6639
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.
|
|
@@ -6657,7 +6657,7 @@ export declare class BusinessHoursComponent implements ControlValueAccessor, Val
|
|
|
6657
6657
|
readonly hint: import("@angular/core").InputSignal<string>;
|
|
6658
6658
|
/** Host-provided error message (wins over the built-in ones). */
|
|
6659
6659
|
readonly error: import("@angular/core").InputSignal<string>;
|
|
6660
|
-
/** 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. */
|
|
6661
6661
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
6662
6662
|
/** At least one day must be open. */
|
|
6663
6663
|
readonly required: import("@angular/core").InputSignal<boolean>;
|
|
@@ -6820,7 +6820,7 @@ export interface RadioOption {
|
|
|
6820
6820
|
* templates render no extra attributes or ids.
|
|
6821
6821
|
*
|
|
6822
6822
|
* Validity API (same on every ui input): Angular `Validator`, signals `invalid` + `errorMessage`, `invalidChange` output,
|
|
6823
|
-
* 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.
|
|
6824
6824
|
*/
|
|
6825
6825
|
export declare class RadioGroupComponent implements ControlValueAccessor, Validator, UiFieldValidity {
|
|
6826
6826
|
private readonly _labels;
|
|
@@ -6829,7 +6829,7 @@ export declare class RadioGroupComponent implements ControlValueAccessor, Valida
|
|
|
6829
6829
|
readonly required: import("@angular/core").InputSignal<boolean>;
|
|
6830
6830
|
readonly hint: import("@angular/core").InputSignal<string>;
|
|
6831
6831
|
readonly error: import("@angular/core").InputSignal<string>;
|
|
6832
|
-
/** 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. */
|
|
6833
6833
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
6834
6834
|
readonly orientation: import("@angular/core").InputSignal<"vertical" | "horizontal">;
|
|
6835
6835
|
/** Native `name` shared by the radios; a unique one is generated when omitted. */
|
|
@@ -7007,7 +7007,7 @@ export declare class PhoneNumberPickerComponent {
|
|
|
7007
7007
|
protected readonly modeCtl: FormControl<string>;
|
|
7008
7008
|
protected readonly zipCtl: FormControl<string>;
|
|
7009
7009
|
protected readonly areaCtl: FormControl<string>;
|
|
7010
|
-
protected readonly step: import("@angular/core").WritableSignal<
|
|
7010
|
+
protected readonly step: import("@angular/core").WritableSignal<2 | 1 | 3>;
|
|
7011
7011
|
protected readonly mode: import("@angular/core").WritableSignal<PhoneNumberSearchMode>;
|
|
7012
7012
|
private readonly _zip;
|
|
7013
7013
|
private readonly _area;
|
|
@@ -7123,7 +7123,7 @@ export declare class ButtonComponent {
|
|
|
7123
7123
|
* `ghost-start`: a ghost button for list / section toggles - a full-width row with its content aligned to the start, transparent
|
|
7124
7124
|
* background, hover tint and the normal focus ring. Pair it with `ariaExpanded` / `ariaPressed`; the label may contain a heading element.
|
|
7125
7125
|
*/
|
|
7126
|
-
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">;
|
|
7127
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`). */
|
|
7128
7128
|
readonly routerLink: import("@angular/core").InputSignal<string | readonly unknown[] | null>;
|
|
7129
7129
|
/** Query params of the `routerLink` (e.g. `{ section: 'deal-defaults' }`). */
|
|
@@ -7588,7 +7588,7 @@ export declare class ContactPickerComponent {
|
|
|
7588
7588
|
readonly errorId: import("@angular/core").InputSignal<string>;
|
|
7589
7589
|
/** Marks the combobox / selected group `aria-invalid="true"`. The picker renders no error text itself. */
|
|
7590
7590
|
readonly invalid: import("@angular/core").InputSignal<boolean>;
|
|
7591
|
-
/** 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. */
|
|
7592
7592
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
7593
7593
|
readonly showDetails: import("@angular/core").InputSignal<boolean>;
|
|
7594
7594
|
readonly isMultiSelect: import("@angular/core").InputSignal<boolean>;
|
|
@@ -7626,9 +7626,9 @@ export declare class ContactPickerComponent {
|
|
|
7626
7626
|
readonly fieldInvalid: import("@angular/core").Signal<boolean>;
|
|
7627
7627
|
/** "<label> is required." while required-and-empty ('' otherwise), shown or not. */
|
|
7628
7628
|
readonly errorMessage: import("@angular/core").Signal<string>;
|
|
7629
|
-
/** `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. */
|
|
7630
7630
|
readonly visibleErrorMessage: import("@angular/core").Signal<string>;
|
|
7631
|
-
/** 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. */
|
|
7632
7632
|
readonly ariaInvalid: import("@angular/core").Signal<boolean>;
|
|
7633
7633
|
/** The hint is search guidance: hidden while a contact is selected (single-select), back after clear. */
|
|
7634
7634
|
readonly showHint: import("@angular/core").Signal<boolean>;
|
|
@@ -7970,14 +7970,14 @@ export declare const DEFAULT_BANK_HOLDER_TYPE_OPTIONS: SelectOption[];
|
|
|
7970
7970
|
*
|
|
7971
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
|
|
7972
7972
|
* provider validates the real number, and a client checksum would reject test numbers). Account numbers are 4-17 digits.
|
|
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
|
|
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.
|
|
7974
7974
|
* - The form provides `UiFieldValidity` (`invalid` = not submittable), so a host can gate its own button with `viewChildren(UiFieldValidity)`,
|
|
7975
7975
|
* or use `(validChange)`.
|
|
7976
7976
|
* - The host's footer button calls `form.submit()` (via `viewChild`); Enter in a text field submits too.
|
|
7977
7977
|
*/
|
|
7978
7978
|
export declare class BankAccountFormComponent implements UiFieldValidity {
|
|
7979
7979
|
protected readonly labels: UiLabelsService;
|
|
7980
|
-
/** 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. */
|
|
7981
7981
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
7982
7982
|
/** Disables every field and blocks `submit()`. */
|
|
7983
7983
|
readonly disabled: import("@angular/core").InputSignal<boolean>;
|
|
@@ -8011,7 +8011,7 @@ export declare class BankAccountFormComponent implements UiFieldValidity {
|
|
|
8011
8011
|
protected readonly routingFormatter: (raw: string) => string;
|
|
8012
8012
|
protected readonly accountFormatter: (raw: string) => string;
|
|
8013
8013
|
protected readonly locked: import("@angular/core").Signal<boolean>;
|
|
8014
|
-
/** 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. */
|
|
8015
8015
|
protected readonly reveal: import("@angular/core").Signal<boolean>;
|
|
8016
8016
|
protected readonly routingError: import("@angular/core").Signal<string>;
|
|
8017
8017
|
protected readonly accountError: import("@angular/core").Signal<string>;
|
|
@@ -8312,7 +8312,7 @@ export declare class TextInputComponent implements ControlValueAccessor, Validat
|
|
|
8312
8312
|
* `search`, `text`, `none`). Empty (default) = the browser's default for the field, except `type="tel"`, which keeps `tel`.
|
|
8313
8313
|
* It only picks the keyboard; it does not restrict what can be typed or pasted.
|
|
8314
8314
|
*/
|
|
8315
|
-
readonly inputmode: import("@angular/core").InputSignal<"" | "
|
|
8315
|
+
readonly inputmode: import("@angular/core").InputSignal<"" | "email" | "text" | "search" | "numeric" | "decimal" | "none" | "tel" | "url">;
|
|
8316
8316
|
readonly readonly: import("@angular/core").InputSignal<boolean>;
|
|
8317
8317
|
readonly hint: import("@angular/core").InputSignal<string>;
|
|
8318
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. */
|
|
@@ -8352,7 +8352,7 @@ export declare class TextInputComponent implements ControlValueAccessor, Validat
|
|
|
8352
8352
|
* the 0-decimals rule).
|
|
8353
8353
|
*/
|
|
8354
8354
|
readonly integer: import("@angular/core").InputSignal<boolean>;
|
|
8355
|
-
/** 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. */
|
|
8356
8356
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
8357
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. */
|
|
8358
8358
|
readonly valueChange: import("@angular/core").OutputEmitterRef<string | number | null>;
|
|
@@ -8395,6 +8395,8 @@ export declare class TextInputComponent implements ControlValueAccessor, Validat
|
|
|
8395
8395
|
protected readonly _defaultRules: readonly PasswordRule[];
|
|
8396
8396
|
private _warned;
|
|
8397
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;
|
|
8398
8400
|
private readonly _issue;
|
|
8399
8401
|
/** True while the value breaks a built-in rule or the host passed an `[error]`. */
|
|
8400
8402
|
readonly invalid: import("@angular/core").Signal<boolean>;
|
|
@@ -8736,7 +8738,7 @@ export declare class TextareaInputComponent implements ControlValueAccessor, Val
|
|
|
8736
8738
|
readonly error: import("@angular/core").InputSignal<string>;
|
|
8737
8739
|
/** Opt-in. `true` shows the text in a monospace font (HTML / code / merge-tag fields). Default `false` = unchanged. */
|
|
8738
8740
|
readonly monospace: import("@angular/core").InputSignal<boolean>;
|
|
8739
|
-
/** 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. */
|
|
8740
8742
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
8741
8743
|
readonly _disabledInput: import("@angular/core").InputSignal<boolean>;
|
|
8742
8744
|
private readonly _cvaDisabled;
|
|
@@ -8994,7 +8996,7 @@ export declare function acceptLabel(accept: string): string;
|
|
|
8994
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`
|
|
8995
8997
|
* override the wording, also in picker-only mode), and `(fileRejected)` emits `{ file, reason, message }`.
|
|
8996
8998
|
* - `required` is a real rule: Angular `Validator` + `UiFieldValidity` (`invalid`, `errorMessage`, `invalidChange`,
|
|
8997
|
-
* `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.
|
|
8998
9000
|
* - `dropzone`: the field accepts files dropped on it.
|
|
8999
9001
|
* - `showDetails`: file size after the name; `preview`: a thumbnail of a chosen image.
|
|
9000
9002
|
* - `loading` (+ `loadingText`): a `ui-skeleton` replaces the file name while the host works on the file (scanning, uploading).
|
|
@@ -9011,14 +9013,14 @@ export declare class FileInputComponent implements ControlValueAccessor, Validat
|
|
|
9011
9013
|
/** Native `accept` string, e.g. ".pdf,.png". Also enforced on picked and dropped files unless `enforceAccept` is false. */
|
|
9012
9014
|
readonly accept: import("@angular/core").InputSignal<string>;
|
|
9013
9015
|
readonly multiple: import("@angular/core").InputSignal<boolean>;
|
|
9014
|
-
/** 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). */
|
|
9015
9017
|
readonly required: import("@angular/core").InputSignal<boolean>;
|
|
9016
9018
|
readonly hint: import("@angular/core").InputSignal<string>;
|
|
9017
9019
|
/** Host-provided error message (wins over the built-in ones). Shown under a visible field only. */
|
|
9018
9020
|
readonly error: import("@angular/core").InputSignal<string>;
|
|
9019
9021
|
/** false = no visible field; open the picker from the host with `open()`. */
|
|
9020
9022
|
readonly showField: import("@angular/core").InputSignal<boolean>;
|
|
9021
|
-
/** 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. */
|
|
9022
9024
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
9023
9025
|
/**
|
|
9024
9026
|
* Also report every refused file (wrong type, too big, too small, empty) with a `ToastService` error toast that names the file and
|
|
@@ -9424,7 +9426,7 @@ export declare class DateInputComponent implements ControlValueAccessor, Validat
|
|
|
9424
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. */
|
|
9425
9427
|
readonly ariaDescribedBy: import("@angular/core").InputSignal<string>;
|
|
9426
9428
|
readonly error: import("@angular/core").InputSignal<string>;
|
|
9427
|
-
/** 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. */
|
|
9428
9430
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
9429
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. */
|
|
9430
9432
|
readonly _disabledInput: import("@angular/core").InputSignal<boolean>;
|
|
@@ -9522,7 +9524,7 @@ export declare class DatetimeInputComponent implements ControlValueAccessor, Val
|
|
|
9522
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. */
|
|
9523
9525
|
readonly ariaDescribedBy: import("@angular/core").InputSignal<string>;
|
|
9524
9526
|
readonly error: import("@angular/core").InputSignal<string>;
|
|
9525
|
-
/** 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. */
|
|
9526
9528
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
9527
9529
|
readonly _disabledInput: import("@angular/core").InputSignal<boolean>;
|
|
9528
9530
|
private readonly _cvaDisabled;
|
|
@@ -9618,7 +9620,7 @@ export declare class TimeInputComponent implements ControlValueAccessor, Validat
|
|
|
9618
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. */
|
|
9619
9621
|
readonly ariaDescribedBy: import("@angular/core").InputSignal<string>;
|
|
9620
9622
|
readonly error: import("@angular/core").InputSignal<string>;
|
|
9621
|
-
/** 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. */
|
|
9622
9624
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
9623
9625
|
/** Public (like the other inputs) so `[disabled]` can be bound in a host template. */
|
|
9624
9626
|
readonly _disabledInput: import("@angular/core").InputSignal<boolean>;
|
|
@@ -9739,7 +9741,7 @@ export interface ComboboxSelection {
|
|
|
9739
9741
|
* on focus and `(searchChange)` fires with '' so the host can show its initial results.
|
|
9740
9742
|
* - `[debounce]` ms between the last keystroke and `(searchChange)` (default 250). Focus / ArrowDown-open emit immediately.
|
|
9741
9743
|
* - `[label] [ariaLabel] [placeholder] [required] [hint] [error] [disabled] [showErrors]` like `ui-text-input`
|
|
9742
|
-
* (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).
|
|
9743
9745
|
* - `(searchChange)` string, `(valueChange)` `ComboboxOption | null` (the full chosen option, null when cleared),
|
|
9744
9746
|
* `(invalidChange)` boolean, `(focused)`, `(blurred)`. Validity: `UiFieldValidity` token + Angular `Validator`.
|
|
9745
9747
|
*
|
|
@@ -9989,7 +9991,9 @@ export declare class MultiSelectComponent implements ControlValueAccessor {
|
|
|
9989
9991
|
protected readonly _selectedOptions: import("@angular/core").Signal<SelectOption<string>[]>;
|
|
9990
9992
|
protected readonly _filteredOptions: import("@angular/core").Signal<SelectOption<string>[]>;
|
|
9991
9993
|
private _onChange;
|
|
9992
|
-
/** 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;
|
|
9993
9997
|
private readonly _touched;
|
|
9994
9998
|
protected readonly _shownError: import("@angular/core").Signal<string>;
|
|
9995
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. */
|
|
@@ -10061,6 +10065,11 @@ export declare class MultiSelectComponent implements ControlValueAccessor {
|
|
|
10061
10065
|
"required": false;
|
|
10062
10066
|
"isSignal": true;
|
|
10063
10067
|
};
|
|
10068
|
+
"showErrors": {
|
|
10069
|
+
"alias": "showErrors";
|
|
10070
|
+
"required": false;
|
|
10071
|
+
"isSignal": true;
|
|
10072
|
+
};
|
|
10064
10073
|
}, {
|
|
10065
10074
|
"selected": "selectedChange";
|
|
10066
10075
|
}, never, never, true, never>;
|
|
@@ -10141,7 +10150,7 @@ export declare class DropdownComponent {
|
|
|
10141
10150
|
readonly loader: import("@angular/core").InputSignal<(() => Promise<DropdownItem[]>) | null>;
|
|
10142
10151
|
readonly active: import("@angular/core").InputSignal<boolean>;
|
|
10143
10152
|
readonly activeValue: import("@angular/core").InputSignal<string>;
|
|
10144
|
-
readonly variant: import("@angular/core").InputSignal<"
|
|
10153
|
+
readonly variant: import("@angular/core").InputSignal<"button" | "badge">;
|
|
10145
10154
|
/** Trigger size for `variant="button"`: `sm` (default, the compact toolbar look) or `md` (same padding and type as a medium `ui-button`). */
|
|
10146
10155
|
readonly size: import("@angular/core").InputSignal<"sm" | "md">;
|
|
10147
10156
|
readonly menuWidth: import("@angular/core").InputSignal<string>;
|
|
@@ -10457,7 +10466,7 @@ export declare class FormSectionComponent {
|
|
|
10457
10466
|
}, {}, never, ["*"], true, never>;
|
|
10458
10467
|
}
|
|
10459
10468
|
export declare class FormRowComponent {
|
|
10460
|
-
readonly cols: import("@angular/core").InputSignal<
|
|
10469
|
+
readonly cols: import("@angular/core").InputSignal<2 | 1 | 3 | 4>;
|
|
10461
10470
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormRowComponent, never>;
|
|
10462
10471
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormRowComponent, "ui-form-row", never, {
|
|
10463
10472
|
"cols": {
|
|
@@ -12682,7 +12691,7 @@ type AddressField = keyof AddressValue;
|
|
|
12682
12691
|
* 5 digits or 5+4 ("Enter a valid ZIP code."); state must be one of the options ("Select a valid option."); maxlengths
|
|
12683
12692
|
* ("Too long (max N characters)."); `requireComplete` -> once ANY of street / city / state / ZIP is filled the others are required too
|
|
12684
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,
|
|
12685
|
-
*
|
|
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.
|
|
12686
12695
|
*
|
|
12687
12696
|
* Layout: street + unit, then city + state + ZIP in `ui-form-row`s (they collapse to one column on phones).
|
|
12688
12697
|
*/
|
|
@@ -12726,7 +12735,7 @@ export declare class AddressInputComponent implements ControlValueAccessor, Vali
|
|
|
12726
12735
|
readonly zipMaxlength: import("@angular/core").InputSignal<number>;
|
|
12727
12736
|
/** Native select cannot be read-only: while `readonly`, the State select is disabled and the text fields are read-only. */
|
|
12728
12737
|
readonly readonly: import("@angular/core").InputSignal<boolean>;
|
|
12729
|
-
/** 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. */
|
|
12730
12739
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
12731
12740
|
readonly hint: import("@angular/core").InputSignal<string>;
|
|
12732
12741
|
/** Host error for the whole address; shown under the group (replaces the hint), always makes the field invalid. */
|
|
@@ -12741,7 +12750,7 @@ export declare class AddressInputComponent implements ControlValueAccessor, Vali
|
|
|
12741
12750
|
* the object. `valueChange` always emits the object. A written string is read with `parseAddressValue` for display only: the control keeps
|
|
12742
12751
|
* the original text until the user edits a field (so a text the parser cannot split is not rewritten on load).
|
|
12743
12752
|
*/
|
|
12744
|
-
readonly valueFormat: import("@angular/core").InputSignal<"object" | "
|
|
12753
|
+
readonly valueFormat: import("@angular/core").InputSignal<"object" | "text" | "auto">;
|
|
12745
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. */
|
|
12746
12755
|
readonly zipPattern: import("@angular/core").InputSignal<RegExp | null>;
|
|
12747
12756
|
/** Message shown when the ZIP breaks `zipPattern`. */
|
|
@@ -12776,7 +12785,7 @@ export declare class AddressInputComponent implements ControlValueAccessor, Vali
|
|
|
12776
12785
|
readonly errorMessage: import("@angular/core").Signal<string>;
|
|
12777
12786
|
/** Street, city, state and ZIP are required: always with `required`, and with `requireComplete` once any of them has text. */
|
|
12778
12787
|
protected readonly _req: import("@angular/core").Signal<boolean>;
|
|
12779
|
-
/** The host `[error]` shows
|
|
12788
|
+
/** The host `[error]` shows after the user left one of the address fields, or while `showErrors` is true. */
|
|
12780
12789
|
protected readonly _shownError: import("@angular/core").Signal<string>;
|
|
12781
12790
|
protected readonly _describedBy: import("@angular/core").Signal<string | null>;
|
|
12782
12791
|
private _onChange;
|
|
@@ -12797,7 +12806,7 @@ export declare class AddressInputComponent implements ControlValueAccessor, Vali
|
|
|
12797
12806
|
validate(control: AbstractControl): ValidationErrors | null;
|
|
12798
12807
|
protected _set(field: AddressField, text: unknown): void;
|
|
12799
12808
|
protected _onFocusOut(field: AddressField, event: FocusEvent): void;
|
|
12800
|
-
/** 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. */
|
|
12801
12810
|
protected _revealed(field: AddressField): boolean;
|
|
12802
12811
|
protected _fieldError(field: AddressField): string;
|
|
12803
12812
|
private _hasText;
|
|
@@ -13687,9 +13696,12 @@ export declare class RichTextEditorComponent implements ControlValueAccessor {
|
|
|
13687
13696
|
readonly required: import("@angular/core").InputSignal<boolean>;
|
|
13688
13697
|
readonly readonly: import("@angular/core").InputSignal<boolean>;
|
|
13689
13698
|
readonly hint: import("@angular/core").InputSignal<string>;
|
|
13690
|
-
/** 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. */
|
|
13691
13700
|
readonly error: import("@angular/core").InputSignal<string>;
|
|
13692
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;
|
|
13693
13705
|
protected readonly _touched: import("@angular/core").WritableSignal<boolean>;
|
|
13694
13706
|
protected readonly _activeError: import("@angular/core").Signal<string>;
|
|
13695
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. */
|
|
@@ -13827,6 +13839,11 @@ export declare class RichTextEditorComponent implements ControlValueAccessor {
|
|
|
13827
13839
|
"required": false;
|
|
13828
13840
|
"isSignal": true;
|
|
13829
13841
|
};
|
|
13842
|
+
"showErrors": {
|
|
13843
|
+
"alias": "showErrors";
|
|
13844
|
+
"required": false;
|
|
13845
|
+
"isSignal": true;
|
|
13846
|
+
};
|
|
13830
13847
|
"minHeight": {
|
|
13831
13848
|
"alias": "minHeight";
|
|
13832
13849
|
"required": false;
|
|
@@ -14023,7 +14040,7 @@ export declare class SwatchPickerComponent implements ControlValueAccessor, Vali
|
|
|
14023
14040
|
readonly required: import("@angular/core").InputSignal<boolean>;
|
|
14024
14041
|
readonly hint: import("@angular/core").InputSignal<string>;
|
|
14025
14042
|
readonly error: import("@angular/core").InputSignal<string>;
|
|
14026
|
-
/** 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. */
|
|
14027
14044
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
14028
14045
|
/** Fixed number of swatches per row (0 = wrap freely, the default). On a phone the row wraps by width instead. */
|
|
14029
14046
|
readonly columns: import("@angular/core").InputSignal<number>;
|
|
@@ -14140,7 +14157,7 @@ export declare class IconPickerComponent implements ControlValueAccessor, Valida
|
|
|
14140
14157
|
readonly required: import("@angular/core").InputSignal<boolean>;
|
|
14141
14158
|
readonly hint: import("@angular/core").InputSignal<string>;
|
|
14142
14159
|
readonly error: import("@angular/core").InputSignal<string>;
|
|
14143
|
-
/** 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. */
|
|
14144
14161
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
14145
14162
|
/** SVG path drawn for an option: its `path`, else the library icon `iconKey` (default: the option's `value`); '' when unknown. */
|
|
14146
14163
|
protected _path(o: IconPickerOption): string;
|
|
@@ -14276,7 +14293,7 @@ export interface RadioMatrixRow {
|
|
|
14276
14293
|
* ignored (and kept untouched in the model). Disabled matrices are never invalid.
|
|
14277
14294
|
*
|
|
14278
14295
|
* Validity API (same on every ui input): Angular `Validator`, signals `invalid` + `errorMessage`, `invalidChange` output,
|
|
14279
|
-
* 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.
|
|
14280
14297
|
*
|
|
14281
14298
|
* <ui-radio-matrix label="Page permissions" rowHeader="Page" [rows]="pages" [columns]="levels" [(ngModel)]="permissions" />
|
|
14282
14299
|
*/
|
|
@@ -14290,7 +14307,7 @@ export declare class RadioMatrixComponent implements ControlValueAccessor, Valid
|
|
|
14290
14307
|
readonly required: import("@angular/core").InputSignal<boolean>;
|
|
14291
14308
|
readonly hint: import("@angular/core").InputSignal<string>;
|
|
14292
14309
|
readonly error: import("@angular/core").InputSignal<string>;
|
|
14293
|
-
/** 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. */
|
|
14294
14311
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
14295
14312
|
/** Prefix of the native radio `name`s (one name per row); a unique one is generated when omitted. */
|
|
14296
14313
|
readonly name: import("@angular/core").InputSignal<string>;
|
|
@@ -14409,9 +14426,12 @@ export declare class SignaturePadComponent implements ControlValueAccessor {
|
|
|
14409
14426
|
/** Accessible name when there is no visible label. A default describing the keyboard controls is used when neither is set. */
|
|
14410
14427
|
readonly ariaLabel: import("@angular/core").InputSignal<string>;
|
|
14411
14428
|
readonly hint: import("@angular/core").InputSignal<string>;
|
|
14412
|
-
/** 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. */
|
|
14413
14430
|
readonly error: import("@angular/core").InputSignal<string>;
|
|
14414
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;
|
|
14415
14435
|
protected readonly _touched: import("@angular/core").WritableSignal<boolean>;
|
|
14416
14436
|
protected readonly _activeError: import("@angular/core").Signal<string>;
|
|
14417
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. */
|
|
@@ -14522,6 +14542,11 @@ export declare class SignaturePadComponent implements ControlValueAccessor {
|
|
|
14522
14542
|
"required": false;
|
|
14523
14543
|
"isSignal": true;
|
|
14524
14544
|
};
|
|
14545
|
+
"showErrors": {
|
|
14546
|
+
"alias": "showErrors";
|
|
14547
|
+
"required": false;
|
|
14548
|
+
"isSignal": true;
|
|
14549
|
+
};
|
|
14525
14550
|
"width": {
|
|
14526
14551
|
"alias": "width";
|
|
14527
14552
|
"required": false;
|
|
@@ -14744,7 +14769,7 @@ export declare class DetailCardComponent {
|
|
|
14744
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. */
|
|
14745
14770
|
readonly uppercaseTitle: import("@angular/core").InputSignal<boolean>;
|
|
14746
14771
|
/** 1-6 makes the title a real heading for screen readers (role=heading, aria-level); null keeps it plain text. */
|
|
14747
|
-
readonly headingLevel: import("@angular/core").InputSignal<
|
|
14772
|
+
readonly headingLevel: import("@angular/core").InputSignal<2 | 1 | 3 | 4 | 5 | 6 | null>;
|
|
14748
14773
|
/** Optional id for the title text; the card is then labelled by it. Without it the title is the card's aria-label. */
|
|
14749
14774
|
readonly titleId: import("@angular/core").InputSignal<string>;
|
|
14750
14775
|
/** Accessible name of the card when the header gives none (no header, or no title). A visible title wins; blank = no name. */
|
|
@@ -15430,7 +15455,7 @@ export declare function normalizeHexColor(value: string | null | undefined, allo
|
|
|
15430
15455
|
* - Picking in the native picker with an 8-digit value and `allowAlpha` keeps the existing alpha digits.
|
|
15431
15456
|
*
|
|
15432
15457
|
* Validity API (same as the other ui inputs): `Validator` (error keys `required`, `color`), signals `invalid` /
|
|
15433
|
-
* `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.
|
|
15434
15459
|
*
|
|
15435
15460
|
* Cross-browser: the native swatch is styled with `-webkit-appearance` and the `::-webkit-color-swatch` / `::-moz-color-swatch`
|
|
15436
15461
|
* pseudo-elements and sits invisibly over our own preview square, so it looks the same in Chrome, Edge, Firefox and Safari.
|
|
@@ -15446,7 +15471,7 @@ export declare class ColorInputComponent implements ControlValueAccessor, Valida
|
|
|
15446
15471
|
readonly hint: import("@angular/core").InputSignal<string>;
|
|
15447
15472
|
/** Host error message; always wins over the built-in message. */
|
|
15448
15473
|
readonly error: import("@angular/core").InputSignal<string>;
|
|
15449
|
-
/** 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. */
|
|
15450
15475
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
15451
15476
|
/** Accept (and keep) 8-digit `#rrggbbaa` values. */
|
|
15452
15477
|
readonly allowAlpha: import("@angular/core").InputSignal<boolean>;
|