@forgeroute/ui 0.4.95 → 0.4.97
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 +93 -12
- 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 -55
package/types/forgeroute-ui.d.ts
CHANGED
|
@@ -3178,10 +3178,21 @@ export declare function issueToErrors(issue: FieldIssue | null): ValidationError
|
|
|
3178
3178
|
export declare function requiredIssue(label: string): FieldIssue;
|
|
3179
3179
|
/** "Too long (max N characters)." when the trimmed text is longer than `max`. */
|
|
3180
3180
|
export declare function maxLengthIssue(text: string, max: number | undefined | null): FieldIssue | null;
|
|
3181
|
+
/**
|
|
3182
|
+
* An overlay that keeps the fields projected into it ALIVE while it is closed (`ui-side-panel`, `ui-modal`: Angular creates projected content with the host's template,
|
|
3183
|
+
* whether or not the overlay renders it). It provides this token, and every field (through [createFieldReveal]) forgets that it was blurred each time the overlay opens or
|
|
3184
|
+
* closes, so a field the user left before pressing Cancel / the close button is clean again when the overlay is opened the next time.
|
|
3185
|
+
*/
|
|
3186
|
+
export interface UiFieldRevealHost {
|
|
3187
|
+
readonly open: Signal<boolean>;
|
|
3188
|
+
}
|
|
3189
|
+
export declare const UI_FIELD_REVEAL_HOST: InjectionToken<UiFieldRevealHost>;
|
|
3181
3190
|
/**
|
|
3182
3191
|
* 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
|
|
3192
|
+
* interacted with the field itself (blurred it) OR the host sets `showErrors` (a failed Save / submit click), which reveals an untouched field at once.
|
|
3193
|
+
* 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.
|
|
3194
|
+
* A field inside a `ui-side-panel` / `ui-modal` ([UI_FIELD_REVEAL_HOST]) also clears the touched state whenever that overlay opens or closes: a message never shows on open,
|
|
3195
|
+
* on close or after Cancel for a field the user did not leave in THIS visit. Must be called from an injection context.
|
|
3185
3196
|
*/
|
|
3186
3197
|
export declare function createFieldReveal(showErrors: Signal<boolean>): {
|
|
3187
3198
|
touched: WritableSignal<boolean>;
|
|
@@ -3264,7 +3275,7 @@ export declare class SelectComponent implements ControlValueAccessor, Validator,
|
|
|
3264
3275
|
/** 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
3276
|
readonly ariaDescribedBy: import("@angular/core").InputSignal<string>;
|
|
3266
3277
|
readonly error: import("@angular/core").InputSignal<string>;
|
|
3267
|
-
/** The host's "tried to submit" flag (e.g. after a failed Save click).
|
|
3278
|
+
/** 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
3279
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
3269
3280
|
readonly size: import("@angular/core").InputSignal<"default" | "sm">;
|
|
3270
3281
|
readonly _disabledInput: import("@angular/core").InputSignal<boolean>;
|
|
@@ -4693,7 +4704,7 @@ export declare class ModalComponent implements OnInit, OnDestroy {
|
|
|
4693
4704
|
*/
|
|
4694
4705
|
readonly describedBy: import("@angular/core").InputSignal<string | null>;
|
|
4695
4706
|
readonly maxWidth: import("@angular/core").InputSignal<string>;
|
|
4696
|
-
readonly bodyOverflow: import("@angular/core").InputSignal<"auto" | "
|
|
4707
|
+
readonly bodyOverflow: import("@angular/core").InputSignal<"auto" | "visible" | "hidden">;
|
|
4697
4708
|
/** `data-testid` of the dialog element itself (the host `<ui-modal>` is always in the page, the dialog only while open). None when empty. */
|
|
4698
4709
|
readonly dialogTestId: import("@angular/core").InputSignal<string>;
|
|
4699
4710
|
/** Hides the header X button (e.g. while a request is running). Escape and a backdrop click still close unless `closable` is false. */
|
|
@@ -5472,7 +5483,7 @@ export declare class AudioPlayerComponent {
|
|
|
5472
5483
|
/** Accessible name of the player. */
|
|
5473
5484
|
readonly ariaLabel: import("@angular/core").InputSignal<string>;
|
|
5474
5485
|
/** How much to load before play: 'metadata' (default), 'auto' or 'none'. */
|
|
5475
|
-
readonly preload: import("@angular/core").InputSignal<"
|
|
5486
|
+
readonly preload: import("@angular/core").InputSignal<"none" | "auto" | "metadata">;
|
|
5476
5487
|
/** Fires when the browser can't load or decode the source. */
|
|
5477
5488
|
readonly playbackError: import("@angular/core").OutputEmitterRef<void>;
|
|
5478
5489
|
protected readonly failed: import("@angular/core").WritableSignal<boolean>;
|
|
@@ -5772,7 +5783,7 @@ export declare class NotificationBellComponent {
|
|
|
5772
5783
|
* Enter selects it too and Home / End select the first / last star (handled here). Each radio is named "1 star", "2 stars", ...
|
|
5773
5784
|
* - `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
5785
|
* - 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]`
|
|
5786
|
+
* 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
5787
|
* a host `[error]` wins. Disabled and readonly are never invalid.
|
|
5777
5788
|
* - 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
5789
|
*
|
|
@@ -5791,7 +5802,7 @@ export declare class StarRatingComponent implements ControlValueAccessor, Valida
|
|
|
5791
5802
|
readonly hint: import("@angular/core").InputSignal<string>;
|
|
5792
5803
|
readonly error: import("@angular/core").InputSignal<string>;
|
|
5793
5804
|
readonly required: import("@angular/core").InputSignal<boolean>;
|
|
5794
|
-
/** The host's "tried to submit" flag (e.g. after a failed Save click).
|
|
5805
|
+
/** 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
5806
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
5796
5807
|
/** Star size in px (default 24). */
|
|
5797
5808
|
readonly size: import("@angular/core").InputSignal<number>;
|
|
@@ -6026,7 +6037,7 @@ export declare class CheckboxComponent implements ControlValueAccessor, Validato
|
|
|
6026
6037
|
* 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
6038
|
* Default null: plain label text, exactly as before. Single mode only.
|
|
6028
6039
|
*/
|
|
6029
|
-
readonly headingLevel: import("@angular/core").InputSignal<
|
|
6040
|
+
readonly headingLevel: import("@angular/core").InputSignal<3 | 2 | 1 | 4 | 5 | 6 | null>;
|
|
6030
6041
|
readonly indeterminate: import("@angular/core").InputSignal<boolean>;
|
|
6031
6042
|
readonly checked: import("@angular/core").ModelSignal<boolean>;
|
|
6032
6043
|
/**
|
|
@@ -6087,7 +6098,7 @@ export declare class CheckboxComponent implements ControlValueAccessor, Validato
|
|
|
6087
6098
|
readonly hint: import("@angular/core").InputSignal<string>;
|
|
6088
6099
|
/** Host-provided error message (wins over the built-in one). */
|
|
6089
6100
|
readonly error: import("@angular/core").InputSignal<string>;
|
|
6090
|
-
/** The host's "tried to submit" flag (e.g. after a failed Save click).
|
|
6101
|
+
/** 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
6102
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
6092
6103
|
protected readonly _descId: string;
|
|
6093
6104
|
private readonly _reveal;
|
|
@@ -6633,7 +6644,7 @@ export declare function businessTimeOptions(step?: BusinessHoursStep, hour24?: b
|
|
|
6633
6644
|
* <ui-business-hours label="Schedule" [(ngModel)]="schedule" [step]="15" [hour24]="true" [allowSplitShifts]="true" [showCopyToWeekdays]="true" />
|
|
6634
6645
|
*
|
|
6635
6646
|
* Inputs
|
|
6636
|
-
* - `label` (names the group), `hint`, `error` (host message, wins), `showErrors` (the host's "tried to submit" flag:
|
|
6647
|
+
* - `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
6648
|
* - `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
6649
|
* - `hour24` 24-hour labels ("17:00") instead of "5:00 PM".
|
|
6639
6650
|
* - `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 +6668,7 @@ export declare class BusinessHoursComponent implements ControlValueAccessor, Val
|
|
|
6657
6668
|
readonly hint: import("@angular/core").InputSignal<string>;
|
|
6658
6669
|
/** Host-provided error message (wins over the built-in ones). */
|
|
6659
6670
|
readonly error: import("@angular/core").InputSignal<string>;
|
|
6660
|
-
/** The host's "tried to submit" flag.
|
|
6671
|
+
/** 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
6672
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
6662
6673
|
/** At least one day must be open. */
|
|
6663
6674
|
readonly required: import("@angular/core").InputSignal<boolean>;
|
|
@@ -6820,7 +6831,7 @@ export interface RadioOption {
|
|
|
6820
6831
|
* templates render no extra attributes or ids.
|
|
6821
6832
|
*
|
|
6822
6833
|
* 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]`
|
|
6834
|
+
* 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
6835
|
*/
|
|
6825
6836
|
export declare class RadioGroupComponent implements ControlValueAccessor, Validator, UiFieldValidity {
|
|
6826
6837
|
private readonly _labels;
|
|
@@ -6829,7 +6840,7 @@ export declare class RadioGroupComponent implements ControlValueAccessor, Valida
|
|
|
6829
6840
|
readonly required: import("@angular/core").InputSignal<boolean>;
|
|
6830
6841
|
readonly hint: import("@angular/core").InputSignal<string>;
|
|
6831
6842
|
readonly error: import("@angular/core").InputSignal<string>;
|
|
6832
|
-
/** The host's "tried to submit" flag (e.g. after a failed Save click).
|
|
6843
|
+
/** 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
6844
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
6834
6845
|
readonly orientation: import("@angular/core").InputSignal<"vertical" | "horizontal">;
|
|
6835
6846
|
/** Native `name` shared by the radios; a unique one is generated when omitted. */
|
|
@@ -7007,7 +7018,7 @@ export declare class PhoneNumberPickerComponent {
|
|
|
7007
7018
|
protected readonly modeCtl: FormControl<string>;
|
|
7008
7019
|
protected readonly zipCtl: FormControl<string>;
|
|
7009
7020
|
protected readonly areaCtl: FormControl<string>;
|
|
7010
|
-
protected readonly step: import("@angular/core").WritableSignal<
|
|
7021
|
+
protected readonly step: import("@angular/core").WritableSignal<3 | 2 | 1>;
|
|
7011
7022
|
protected readonly mode: import("@angular/core").WritableSignal<PhoneNumberSearchMode>;
|
|
7012
7023
|
private readonly _zip;
|
|
7013
7024
|
private readonly _area;
|
|
@@ -7123,7 +7134,7 @@ export declare class ButtonComponent {
|
|
|
7123
7134
|
* `ghost-start`: a ghost button for list / section toggles - a full-width row with its content aligned to the start, transparent
|
|
7124
7135
|
* background, hover tint and the normal focus ring. Pair it with `ariaExpanded` / `ariaPressed`; the label may contain a heading element.
|
|
7125
7136
|
*/
|
|
7126
|
-
readonly variant: import("@angular/core").InputSignal<"
|
|
7137
|
+
readonly variant: import("@angular/core").InputSignal<"link" | "primary" | "danger" | "warning" | "secondary" | "ghost" | "ghost-start" | "tab" | "icon" | "icon-danger">;
|
|
7127
7138
|
/** 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
7139
|
readonly routerLink: import("@angular/core").InputSignal<string | readonly unknown[] | null>;
|
|
7129
7140
|
/** Query params of the `routerLink` (e.g. `{ section: 'deal-defaults' }`). */
|
|
@@ -7144,7 +7155,7 @@ export declare class ButtonComponent {
|
|
|
7144
7155
|
*/
|
|
7145
7156
|
readonly href: import("@angular/core").InputSignal<string | null>;
|
|
7146
7157
|
/** Where to open the `href` (`_blank` = a new tab). */
|
|
7147
|
-
readonly target: import("@angular/core").InputSignal<"
|
|
7158
|
+
readonly target: import("@angular/core").InputSignal<"_blank" | "_self" | "_parent" | "_top" | null>;
|
|
7148
7159
|
/** `rel` of the `href` link. A `_blank` target always gets `noopener noreferrer` added. */
|
|
7149
7160
|
readonly rel: import("@angular/core").InputSignal<string | null>;
|
|
7150
7161
|
/** The href when it is allowed (http, https, mailto, tel, sms or a relative URL), else null. */
|
|
@@ -7419,7 +7430,7 @@ export declare class PillTabsComponent {
|
|
|
7419
7430
|
*/
|
|
7420
7431
|
readonly showDescription: import("@angular/core").InputSignal<boolean>;
|
|
7421
7432
|
/** Heading level of the active tab's title when `showDescription` is on: 2 (default) or 3. */
|
|
7422
|
-
readonly headingLevel: import("@angular/core").InputSignal<
|
|
7433
|
+
readonly headingLevel: import("@angular/core").InputSignal<3 | 2>;
|
|
7423
7434
|
readonly tabChange: import("@angular/core").OutputEmitterRef<string>;
|
|
7424
7435
|
protected readonly activeTab: import("@angular/core").Signal<PillTab | null>;
|
|
7425
7436
|
protected titleId(): string;
|
|
@@ -7588,7 +7599,7 @@ export declare class ContactPickerComponent {
|
|
|
7588
7599
|
readonly errorId: import("@angular/core").InputSignal<string>;
|
|
7589
7600
|
/** Marks the combobox / selected group `aria-invalid="true"`. The picker renders no error text itself. */
|
|
7590
7601
|
readonly invalid: import("@angular/core").InputSignal<boolean>;
|
|
7591
|
-
/** The host's "tried to submit" flag (e.g. after a failed Save click).
|
|
7602
|
+
/** 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
7603
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
7593
7604
|
readonly showDetails: import("@angular/core").InputSignal<boolean>;
|
|
7594
7605
|
readonly isMultiSelect: import("@angular/core").InputSignal<boolean>;
|
|
@@ -7626,9 +7637,9 @@ export declare class ContactPickerComponent {
|
|
|
7626
7637
|
readonly fieldInvalid: import("@angular/core").Signal<boolean>;
|
|
7627
7638
|
/** "<label> is required." while required-and-empty ('' otherwise), shown or not. */
|
|
7628
7639
|
readonly errorMessage: import("@angular/core").Signal<string>;
|
|
7629
|
-
/** `errorMessage` only after the user left the picker (`showErrors`
|
|
7640
|
+
/** `errorMessage` only after the user left the picker (or `showErrors` is true) — render it in a `<ui-error>` under the picker. */
|
|
7630
7641
|
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:
|
|
7642
|
+
/** 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
7643
|
readonly ariaInvalid: import("@angular/core").Signal<boolean>;
|
|
7633
7644
|
/** The hint is search guidance: hidden while a contact is selected (single-select), back after clear. */
|
|
7634
7645
|
readonly showHint: import("@angular/core").Signal<boolean>;
|
|
@@ -7970,14 +7981,14 @@ export declare const DEFAULT_BANK_HOLDER_TYPE_OPTIONS: SelectOption[];
|
|
|
7970
7981
|
*
|
|
7971
7982
|
* - 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
7983
|
* 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
|
|
7984
|
+
* - 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
7985
|
* - The form provides `UiFieldValidity` (`invalid` = not submittable), so a host can gate its own button with `viewChildren(UiFieldValidity)`,
|
|
7975
7986
|
* or use `(validChange)`.
|
|
7976
7987
|
* - The host's footer button calls `form.submit()` (via `viewChild`); Enter in a text field submits too.
|
|
7977
7988
|
*/
|
|
7978
7989
|
export declare class BankAccountFormComponent implements UiFieldValidity {
|
|
7979
7990
|
protected readonly labels: UiLabelsService;
|
|
7980
|
-
/** The host's "tried to submit" flag (e.g. a panel's `touched()`).
|
|
7991
|
+
/** 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
7992
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
7982
7993
|
/** Disables every field and blocks `submit()`. */
|
|
7983
7994
|
readonly disabled: import("@angular/core").InputSignal<boolean>;
|
|
@@ -8011,7 +8022,7 @@ export declare class BankAccountFormComponent implements UiFieldValidity {
|
|
|
8011
8022
|
protected readonly routingFormatter: (raw: string) => string;
|
|
8012
8023
|
protected readonly accountFormatter: (raw: string) => string;
|
|
8013
8024
|
protected readonly locked: import("@angular/core").Signal<boolean>;
|
|
8014
|
-
/** Handed to the inputs as `[showErrors]`.
|
|
8025
|
+
/** 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
8026
|
protected readonly reveal: import("@angular/core").Signal<boolean>;
|
|
8016
8027
|
protected readonly routingError: import("@angular/core").Signal<string>;
|
|
8017
8028
|
protected readonly accountError: import("@angular/core").Signal<string>;
|
|
@@ -8312,7 +8323,7 @@ export declare class TextInputComponent implements ControlValueAccessor, Validat
|
|
|
8312
8323
|
* `search`, `text`, `none`). Empty (default) = the browser's default for the field, except `type="tel"`, which keeps `tel`.
|
|
8313
8324
|
* It only picks the keyboard; it does not restrict what can be typed or pasted.
|
|
8314
8325
|
*/
|
|
8315
|
-
readonly inputmode: import("@angular/core").InputSignal<"" | "
|
|
8326
|
+
readonly inputmode: import("@angular/core").InputSignal<"" | "email" | "text" | "decimal" | "none" | "tel" | "url" | "numeric" | "search">;
|
|
8316
8327
|
readonly readonly: import("@angular/core").InputSignal<boolean>;
|
|
8317
8328
|
readonly hint: import("@angular/core").InputSignal<string>;
|
|
8318
8329
|
/** 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 +8363,7 @@ export declare class TextInputComponent implements ControlValueAccessor, Validat
|
|
|
8352
8363
|
* the 0-decimals rule).
|
|
8353
8364
|
*/
|
|
8354
8365
|
readonly integer: import("@angular/core").InputSignal<boolean>;
|
|
8355
|
-
/** The host's "tried to submit" flag (e.g. after a failed Save click).
|
|
8366
|
+
/** 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
8367
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
8357
8368
|
/** 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
8369
|
readonly valueChange: import("@angular/core").OutputEmitterRef<string | number | null>;
|
|
@@ -8395,6 +8406,8 @@ export declare class TextInputComponent implements ControlValueAccessor, Validat
|
|
|
8395
8406
|
protected readonly _defaultRules: readonly PasswordRule[];
|
|
8396
8407
|
private _warned;
|
|
8397
8408
|
private readonly _formatting;
|
|
8409
|
+
/** 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. */
|
|
8410
|
+
private readonly _hostText;
|
|
8398
8411
|
private readonly _issue;
|
|
8399
8412
|
/** True while the value breaks a built-in rule or the host passed an `[error]`. */
|
|
8400
8413
|
readonly invalid: import("@angular/core").Signal<boolean>;
|
|
@@ -8736,7 +8749,7 @@ export declare class TextareaInputComponent implements ControlValueAccessor, Val
|
|
|
8736
8749
|
readonly error: import("@angular/core").InputSignal<string>;
|
|
8737
8750
|
/** Opt-in. `true` shows the text in a monospace font (HTML / code / merge-tag fields). Default `false` = unchanged. */
|
|
8738
8751
|
readonly monospace: import("@angular/core").InputSignal<boolean>;
|
|
8739
|
-
/** The host's "tried to submit" flag (e.g. after a failed Save click).
|
|
8752
|
+
/** 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
8753
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
8741
8754
|
readonly _disabledInput: import("@angular/core").InputSignal<boolean>;
|
|
8742
8755
|
private readonly _cvaDisabled;
|
|
@@ -8994,7 +9007,7 @@ export declare function acceptLabel(accept: string): string;
|
|
|
8994
9007
|
* 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
9008
|
* override the wording, also in picker-only mode), and `(fileRejected)` emits `{ file, reason, message }`.
|
|
8996
9009
|
* - `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]`
|
|
9010
|
+
* `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
9011
|
* - `dropzone`: the field accepts files dropped on it.
|
|
8999
9012
|
* - `showDetails`: file size after the name; `preview`: a thumbnail of a chosen image.
|
|
9000
9013
|
* - `loading` (+ `loadingText`): a `ui-skeleton` replaces the file name while the host works on the file (scanning, uploading).
|
|
@@ -9011,14 +9024,14 @@ export declare class FileInputComponent implements ControlValueAccessor, Validat
|
|
|
9011
9024
|
/** Native `accept` string, e.g. ".pdf,.png". Also enforced on picked and dropped files unless `enforceAccept` is false. */
|
|
9012
9025
|
readonly accept: import("@angular/core").InputSignal<string>;
|
|
9013
9026
|
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`
|
|
9027
|
+
/** 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
9028
|
readonly required: import("@angular/core").InputSignal<boolean>;
|
|
9016
9029
|
readonly hint: import("@angular/core").InputSignal<string>;
|
|
9017
9030
|
/** Host-provided error message (wins over the built-in ones). Shown under a visible field only. */
|
|
9018
9031
|
readonly error: import("@angular/core").InputSignal<string>;
|
|
9019
9032
|
/** false = no visible field; open the picker from the host with `open()`. */
|
|
9020
9033
|
readonly showField: import("@angular/core").InputSignal<boolean>;
|
|
9021
|
-
/** The host's "tried to submit" flag (e.g. after a failed Save click).
|
|
9034
|
+
/** 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
9035
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
9023
9036
|
/**
|
|
9024
9037
|
* Also report every refused file (wrong type, too big, too small, empty) with a `ToastService` error toast that names the file and
|
|
@@ -9335,7 +9348,7 @@ export declare class CopyFieldComponent implements OnDestroy {
|
|
|
9335
9348
|
/** Neither the Clipboard API nor the fallback could copy. */
|
|
9336
9349
|
readonly copyFailed: import("@angular/core").OutputEmitterRef<void>;
|
|
9337
9350
|
protected readonly _id: string;
|
|
9338
|
-
protected readonly _state: import("@angular/core").WritableSignal<"idle" | "
|
|
9351
|
+
protected readonly _state: import("@angular/core").WritableSignal<"idle" | "failed" | "copied">;
|
|
9339
9352
|
protected readonly _announcement: import("@angular/core").Signal<string>;
|
|
9340
9353
|
protected readonly _buttonName: import("@angular/core").Signal<string>;
|
|
9341
9354
|
protected readonly _describedBy: import("@angular/core").Signal<string | null>;
|
|
@@ -9424,7 +9437,7 @@ export declare class DateInputComponent implements ControlValueAccessor, Validat
|
|
|
9424
9437
|
/** 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
9438
|
readonly ariaDescribedBy: import("@angular/core").InputSignal<string>;
|
|
9426
9439
|
readonly error: import("@angular/core").InputSignal<string>;
|
|
9427
|
-
/** The host's "tried to submit" flag (e.g. after a failed Save click).
|
|
9440
|
+
/** 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
9441
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
9429
9442
|
/** 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
9443
|
readonly _disabledInput: import("@angular/core").InputSignal<boolean>;
|
|
@@ -9522,7 +9535,7 @@ export declare class DatetimeInputComponent implements ControlValueAccessor, Val
|
|
|
9522
9535
|
/** 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
9536
|
readonly ariaDescribedBy: import("@angular/core").InputSignal<string>;
|
|
9524
9537
|
readonly error: import("@angular/core").InputSignal<string>;
|
|
9525
|
-
/** The host's "tried to submit" flag (e.g. after a failed Save click).
|
|
9538
|
+
/** 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
9539
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
9527
9540
|
readonly _disabledInput: import("@angular/core").InputSignal<boolean>;
|
|
9528
9541
|
private readonly _cvaDisabled;
|
|
@@ -9618,7 +9631,7 @@ export declare class TimeInputComponent implements ControlValueAccessor, Validat
|
|
|
9618
9631
|
/** 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
9632
|
readonly ariaDescribedBy: import("@angular/core").InputSignal<string>;
|
|
9620
9633
|
readonly error: import("@angular/core").InputSignal<string>;
|
|
9621
|
-
/** The host's "tried to submit" flag (e.g. after a failed Save click).
|
|
9634
|
+
/** 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
9635
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
9623
9636
|
/** Public (like the other inputs) so `[disabled]` can be bound in a host template. */
|
|
9624
9637
|
readonly _disabledInput: import("@angular/core").InputSignal<boolean>;
|
|
@@ -9739,7 +9752,7 @@ export interface ComboboxSelection {
|
|
|
9739
9752
|
* on focus and `(searchChange)` fires with '' so the host can show its initial results.
|
|
9740
9753
|
* - `[debounce]` ms between the last keystroke and `(searchChange)` (default 250). Focus / ArrowDown-open emit immediately.
|
|
9741
9754
|
* - `[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`
|
|
9755
|
+
* (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
9756
|
* - `(searchChange)` string, `(valueChange)` `ComboboxOption | null` (the full chosen option, null when cleared),
|
|
9744
9757
|
* `(invalidChange)` boolean, `(focused)`, `(blurred)`. Validity: `UiFieldValidity` token + Angular `Validator`.
|
|
9745
9758
|
*
|
|
@@ -9989,7 +10002,9 @@ export declare class MultiSelectComponent implements ControlValueAccessor {
|
|
|
9989
10002
|
protected readonly _selectedOptions: import("@angular/core").Signal<SelectOption<string>[]>;
|
|
9990
10003
|
protected readonly _filteredOptions: import("@angular/core").Signal<SelectOption<string>[]>;
|
|
9991
10004
|
private _onChange;
|
|
9992
|
-
/** The host `
|
|
10005
|
+
/** 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). */
|
|
10006
|
+
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
10007
|
+
private readonly _reveal;
|
|
9993
10008
|
private readonly _touched;
|
|
9994
10009
|
protected readonly _shownError: import("@angular/core").Signal<string>;
|
|
9995
10010
|
/** 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 +10076,11 @@ export declare class MultiSelectComponent implements ControlValueAccessor {
|
|
|
10061
10076
|
"required": false;
|
|
10062
10077
|
"isSignal": true;
|
|
10063
10078
|
};
|
|
10079
|
+
"showErrors": {
|
|
10080
|
+
"alias": "showErrors";
|
|
10081
|
+
"required": false;
|
|
10082
|
+
"isSignal": true;
|
|
10083
|
+
};
|
|
10064
10084
|
}, {
|
|
10065
10085
|
"selected": "selectedChange";
|
|
10066
10086
|
}, never, never, true, never>;
|
|
@@ -10457,7 +10477,7 @@ export declare class FormSectionComponent {
|
|
|
10457
10477
|
}, {}, never, ["*"], true, never>;
|
|
10458
10478
|
}
|
|
10459
10479
|
export declare class FormRowComponent {
|
|
10460
|
-
readonly cols: import("@angular/core").InputSignal<
|
|
10480
|
+
readonly cols: import("@angular/core").InputSignal<3 | 2 | 1 | 4>;
|
|
10461
10481
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormRowComponent, never>;
|
|
10462
10482
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormRowComponent, "ui-form-row", never, {
|
|
10463
10483
|
"cols": {
|
|
@@ -10474,7 +10494,7 @@ export declare class FormRowComponent {
|
|
|
10474
10494
|
* child simply takes the full width. Keep a numeric span within the row's `cols` (use `all` for the whole row).
|
|
10475
10495
|
*/
|
|
10476
10496
|
export declare class FormColSpanDirective {
|
|
10477
|
-
readonly uiColSpan: import("@angular/core").InputSignal<"" |
|
|
10497
|
+
readonly uiColSpan: import("@angular/core").InputSignal<"" | 3 | 2 | "3" | "2" | "all">;
|
|
10478
10498
|
protected readonly _class: import("@angular/core").Signal<string>;
|
|
10479
10499
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormColSpanDirective, never>;
|
|
10480
10500
|
static ɵdir: i0.ɵɵDirectiveDeclaration<FormColSpanDirective, "[uiColSpan]", never, {
|
|
@@ -11790,7 +11810,7 @@ export declare class ChipGroupComponent {
|
|
|
11790
11810
|
readonly spaceAbove: import("@angular/core").InputSignal<"none" | "sm" | "md">;
|
|
11791
11811
|
/** Space below the chip group. */
|
|
11792
11812
|
readonly spaceBelow: import("@angular/core").InputSignal<"none" | "sm" | "md">;
|
|
11793
|
-
protected readonly _gap: import("@angular/core").Signal<"
|
|
11813
|
+
protected readonly _gap: import("@angular/core").Signal<"8px" | "6px" | "12px">;
|
|
11794
11814
|
protected readonly _spaceAbove: import("@angular/core").Signal<"0" | "6px" | "12px">;
|
|
11795
11815
|
protected readonly _spaceBelow: import("@angular/core").Signal<"0" | "6px" | "12px">;
|
|
11796
11816
|
static ɵfac: i0.ɵɵFactoryDeclaration<ChipGroupComponent, never>;
|
|
@@ -12237,7 +12257,7 @@ export declare class IconComponent {
|
|
|
12237
12257
|
readonly ariaLabel: import("@angular/core").InputSignal<string>;
|
|
12238
12258
|
/** Icon size in px. */
|
|
12239
12259
|
readonly size: import("@angular/core").InputSignal<number>;
|
|
12240
|
-
readonly variant: import("@angular/core").InputSignal<"
|
|
12260
|
+
readonly variant: import("@angular/core").InputSignal<"danger" | "default">;
|
|
12241
12261
|
readonly disabled: import("@angular/core").InputSignal<boolean>;
|
|
12242
12262
|
/** The host is running the request this icon started: a spinner replaces the picture and the button is disabled (no click) until it is false again. */
|
|
12243
12263
|
readonly loading: import("@angular/core").InputSignal<boolean>;
|
|
@@ -12682,7 +12702,7 @@ type AddressField = keyof AddressValue;
|
|
|
12682
12702
|
* 5 digits or 5+4 ("Enter a valid ZIP code."); state must be one of the options ("Select a valid option."); maxlengths
|
|
12683
12703
|
* ("Too long (max N characters)."); `requireComplete` -> once ANY of street / city / state / ZIP is filled the others are required too
|
|
12684
12704
|
* (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
|
-
*
|
|
12705
|
+
* 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
12706
|
*
|
|
12687
12707
|
* Layout: street + unit, then city + state + ZIP in `ui-form-row`s (they collapse to one column on phones).
|
|
12688
12708
|
*/
|
|
@@ -12726,7 +12746,7 @@ export declare class AddressInputComponent implements ControlValueAccessor, Vali
|
|
|
12726
12746
|
readonly zipMaxlength: import("@angular/core").InputSignal<number>;
|
|
12727
12747
|
/** Native select cannot be read-only: while `readonly`, the State select is disabled and the text fields are read-only. */
|
|
12728
12748
|
readonly readonly: import("@angular/core").InputSignal<boolean>;
|
|
12729
|
-
/** The host's "tried to submit" flag.
|
|
12749
|
+
/** 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
12750
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
12731
12751
|
readonly hint: import("@angular/core").InputSignal<string>;
|
|
12732
12752
|
/** Host error for the whole address; shown under the group (replaces the hint), always makes the field invalid. */
|
|
@@ -12741,7 +12761,7 @@ export declare class AddressInputComponent implements ControlValueAccessor, Vali
|
|
|
12741
12761
|
* the object. `valueChange` always emits the object. A written string is read with `parseAddressValue` for display only: the control keeps
|
|
12742
12762
|
* the original text until the user edits a field (so a text the parser cannot split is not rewritten on load).
|
|
12743
12763
|
*/
|
|
12744
|
-
readonly valueFormat: import("@angular/core").InputSignal<"object" | "
|
|
12764
|
+
readonly valueFormat: import("@angular/core").InputSignal<"object" | "text" | "auto">;
|
|
12745
12765
|
/** 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
12766
|
readonly zipPattern: import("@angular/core").InputSignal<RegExp | null>;
|
|
12747
12767
|
/** Message shown when the ZIP breaks `zipPattern`. */
|
|
@@ -12776,7 +12796,7 @@ export declare class AddressInputComponent implements ControlValueAccessor, Vali
|
|
|
12776
12796
|
readonly errorMessage: import("@angular/core").Signal<string>;
|
|
12777
12797
|
/** Street, city, state and ZIP are required: always with `required`, and with `requireComplete` once any of them has text. */
|
|
12778
12798
|
protected readonly _req: import("@angular/core").Signal<boolean>;
|
|
12779
|
-
/** The host `[error]` shows
|
|
12799
|
+
/** The host `[error]` shows after the user left one of the address fields, or while `showErrors` is true. */
|
|
12780
12800
|
protected readonly _shownError: import("@angular/core").Signal<string>;
|
|
12781
12801
|
protected readonly _describedBy: import("@angular/core").Signal<string | null>;
|
|
12782
12802
|
private _onChange;
|
|
@@ -12797,7 +12817,7 @@ export declare class AddressInputComponent implements ControlValueAccessor, Vali
|
|
|
12797
12817
|
validate(control: AbstractControl): ValidationErrors | null;
|
|
12798
12818
|
protected _set(field: AddressField, text: unknown): void;
|
|
12799
12819
|
protected _onFocusOut(field: AddressField, event: FocusEvent): void;
|
|
12800
|
-
/** True while the field's own message may show:
|
|
12820
|
+
/** 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
12821
|
protected _revealed(field: AddressField): boolean;
|
|
12802
12822
|
protected _fieldError(field: AddressField): string;
|
|
12803
12823
|
private _hasText;
|
|
@@ -13687,9 +13707,12 @@ export declare class RichTextEditorComponent implements ControlValueAccessor {
|
|
|
13687
13707
|
readonly required: import("@angular/core").InputSignal<boolean>;
|
|
13688
13708
|
readonly readonly: import("@angular/core").InputSignal<boolean>;
|
|
13689
13709
|
readonly hint: import("@angular/core").InputSignal<string>;
|
|
13690
|
-
/** Host error message. Shown (with the red state, aria-invalid and aria-describedby)
|
|
13710
|
+
/** 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
13711
|
readonly error: import("@angular/core").InputSignal<string>;
|
|
13692
13712
|
/** True once the user left the editor. */
|
|
13713
|
+
/** 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). */
|
|
13714
|
+
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
13715
|
+
private readonly _reveal;
|
|
13693
13716
|
protected readonly _touched: import("@angular/core").WritableSignal<boolean>;
|
|
13694
13717
|
protected readonly _activeError: import("@angular/core").Signal<string>;
|
|
13695
13718
|
/** 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 +13850,11 @@ export declare class RichTextEditorComponent implements ControlValueAccessor {
|
|
|
13827
13850
|
"required": false;
|
|
13828
13851
|
"isSignal": true;
|
|
13829
13852
|
};
|
|
13853
|
+
"showErrors": {
|
|
13854
|
+
"alias": "showErrors";
|
|
13855
|
+
"required": false;
|
|
13856
|
+
"isSignal": true;
|
|
13857
|
+
};
|
|
13830
13858
|
"minHeight": {
|
|
13831
13859
|
"alias": "minHeight";
|
|
13832
13860
|
"required": false;
|
|
@@ -14023,7 +14051,7 @@ export declare class SwatchPickerComponent implements ControlValueAccessor, Vali
|
|
|
14023
14051
|
readonly required: import("@angular/core").InputSignal<boolean>;
|
|
14024
14052
|
readonly hint: import("@angular/core").InputSignal<string>;
|
|
14025
14053
|
readonly error: import("@angular/core").InputSignal<string>;
|
|
14026
|
-
/** The host's "tried to submit" flag (e.g. after a failed Save click).
|
|
14054
|
+
/** 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
14055
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
14028
14056
|
/** Fixed number of swatches per row (0 = wrap freely, the default). On a phone the row wraps by width instead. */
|
|
14029
14057
|
readonly columns: import("@angular/core").InputSignal<number>;
|
|
@@ -14140,7 +14168,7 @@ export declare class IconPickerComponent implements ControlValueAccessor, Valida
|
|
|
14140
14168
|
readonly required: import("@angular/core").InputSignal<boolean>;
|
|
14141
14169
|
readonly hint: import("@angular/core").InputSignal<string>;
|
|
14142
14170
|
readonly error: import("@angular/core").InputSignal<string>;
|
|
14143
|
-
/** The host's "tried to submit" flag (e.g. after a failed Save click).
|
|
14171
|
+
/** 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
14172
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
14145
14173
|
/** SVG path drawn for an option: its `path`, else the library icon `iconKey` (default: the option's `value`); '' when unknown. */
|
|
14146
14174
|
protected _path(o: IconPickerOption): string;
|
|
@@ -14276,7 +14304,7 @@ export interface RadioMatrixRow {
|
|
|
14276
14304
|
* ignored (and kept untouched in the model). Disabled matrices are never invalid.
|
|
14277
14305
|
*
|
|
14278
14306
|
* 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]`
|
|
14307
|
+
* 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
14308
|
*
|
|
14281
14309
|
* <ui-radio-matrix label="Page permissions" rowHeader="Page" [rows]="pages" [columns]="levels" [(ngModel)]="permissions" />
|
|
14282
14310
|
*/
|
|
@@ -14290,7 +14318,7 @@ export declare class RadioMatrixComponent implements ControlValueAccessor, Valid
|
|
|
14290
14318
|
readonly required: import("@angular/core").InputSignal<boolean>;
|
|
14291
14319
|
readonly hint: import("@angular/core").InputSignal<string>;
|
|
14292
14320
|
readonly error: import("@angular/core").InputSignal<string>;
|
|
14293
|
-
/** The host's "tried to submit" flag (e.g. after a failed Save click).
|
|
14321
|
+
/** 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
14322
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
14295
14323
|
/** Prefix of the native radio `name`s (one name per row); a unique one is generated when omitted. */
|
|
14296
14324
|
readonly name: import("@angular/core").InputSignal<string>;
|
|
@@ -14409,9 +14437,12 @@ export declare class SignaturePadComponent implements ControlValueAccessor {
|
|
|
14409
14437
|
/** Accessible name when there is no visible label. A default describing the keyboard controls is used when neither is set. */
|
|
14410
14438
|
readonly ariaLabel: import("@angular/core").InputSignal<string>;
|
|
14411
14439
|
readonly hint: import("@angular/core").InputSignal<string>;
|
|
14412
|
-
/** Host error message. Shown (with the red state and aria-invalid)
|
|
14440
|
+
/** 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
14441
|
readonly error: import("@angular/core").InputSignal<string>;
|
|
14414
14442
|
/** True once the user drew on the pad or tabbed away from it. */
|
|
14443
|
+
/** 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). */
|
|
14444
|
+
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
14445
|
+
private readonly _reveal;
|
|
14415
14446
|
protected readonly _touched: import("@angular/core").WritableSignal<boolean>;
|
|
14416
14447
|
protected readonly _activeError: import("@angular/core").Signal<string>;
|
|
14417
14448
|
/** 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 +14553,11 @@ export declare class SignaturePadComponent implements ControlValueAccessor {
|
|
|
14522
14553
|
"required": false;
|
|
14523
14554
|
"isSignal": true;
|
|
14524
14555
|
};
|
|
14556
|
+
"showErrors": {
|
|
14557
|
+
"alias": "showErrors";
|
|
14558
|
+
"required": false;
|
|
14559
|
+
"isSignal": true;
|
|
14560
|
+
};
|
|
14525
14561
|
"width": {
|
|
14526
14562
|
"alias": "width";
|
|
14527
14563
|
"required": false;
|
|
@@ -14744,7 +14780,7 @@ export declare class DetailCardComponent {
|
|
|
14744
14780
|
/** 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
14781
|
readonly uppercaseTitle: import("@angular/core").InputSignal<boolean>;
|
|
14746
14782
|
/** 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<
|
|
14783
|
+
readonly headingLevel: import("@angular/core").InputSignal<3 | 2 | 1 | 4 | 5 | 6 | null>;
|
|
14748
14784
|
/** Optional id for the title text; the card is then labelled by it. Without it the title is the card's aria-label. */
|
|
14749
14785
|
readonly titleId: import("@angular/core").InputSignal<string>;
|
|
14750
14786
|
/** Accessible name of the card when the header gives none (no header, or no title). A visible title wins; blank = no name. */
|
|
@@ -14758,7 +14794,7 @@ export declare class DetailCardComponent {
|
|
|
14758
14794
|
/** Background colour of the footer bar (the `[card-footer]` slot) as any CSS colour. Empty = no colour of its own. */
|
|
14759
14795
|
readonly footerBackground: import("@angular/core").InputSignal<string>;
|
|
14760
14796
|
/** Alignment of the `[card-footer]` content: `'start'` (default, unchanged) or `'end'` = a right-aligned action row with an 8px gap. */
|
|
14761
|
-
readonly footerAlign: import("@angular/core").InputSignal<"
|
|
14797
|
+
readonly footerAlign: import("@angular/core").InputSignal<"end" | "start">;
|
|
14762
14798
|
/** Text colour as any CSS colour (`#fff`, `var(--on-dark)` …). Empty = the default colours. Colours the title, subtitle, chevron and body text. */
|
|
14763
14799
|
readonly textColor: import("@angular/core").InputSignal<string>;
|
|
14764
14800
|
/** false = no header at all (no title, edit button, toggle or divider): the card is only the body, always open. */
|
|
@@ -15430,7 +15466,7 @@ export declare function normalizeHexColor(value: string | null | undefined, allo
|
|
|
15430
15466
|
* - Picking in the native picker with an 8-digit value and `allowAlpha` keeps the existing alpha digits.
|
|
15431
15467
|
*
|
|
15432
15468
|
* 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]`
|
|
15469
|
+
* `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
15470
|
*
|
|
15435
15471
|
* Cross-browser: the native swatch is styled with `-webkit-appearance` and the `::-webkit-color-swatch` / `::-moz-color-swatch`
|
|
15436
15472
|
* pseudo-elements and sits invisibly over our own preview square, so it looks the same in Chrome, Edge, Firefox and Safari.
|
|
@@ -15446,7 +15482,7 @@ export declare class ColorInputComponent implements ControlValueAccessor, Valida
|
|
|
15446
15482
|
readonly hint: import("@angular/core").InputSignal<string>;
|
|
15447
15483
|
/** Host error message; always wins over the built-in message. */
|
|
15448
15484
|
readonly error: import("@angular/core").InputSignal<string>;
|
|
15449
|
-
/** The host's "tried to submit" flag (e.g. after a failed Save click).
|
|
15485
|
+
/** 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
15486
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
15451
15487
|
/** Accept (and keep) 8-digit `#rrggbbaa` values. */
|
|
15452
15488
|
readonly allowAlpha: import("@angular/core").InputSignal<boolean>;
|
|
@@ -19822,7 +19858,7 @@ export declare class PaymentSidePanelComponent {
|
|
|
19822
19858
|
private readonly terminalAvailable;
|
|
19823
19859
|
/** value -> label of every live method the rendered plugins contribute (the first plugin wins a duplicate value). */
|
|
19824
19860
|
private readonly liveMethods;
|
|
19825
|
-
protected readonly kind: import("@angular/core").Signal<"none" | "
|
|
19861
|
+
protected readonly kind: import("@angular/core").Signal<"none" | "manual" | "live" | "terminal">;
|
|
19826
19862
|
private kindOf;
|
|
19827
19863
|
/** The method list as shown: record-only built-ins (a plugin takes over its own values), plugin extras, and only manual ones while a split is being built. */
|
|
19828
19864
|
readonly methodList: import("@angular/core").Signal<PaymentMethodOption[]>;
|