@forgeroute/ui 0.4.92 → 0.4.93
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/forgeroute-ui-map.mjs +11 -4
- package/fesm2022/forgeroute-ui-map.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-messaging.mjs +37 -13
- package/fesm2022/forgeroute-ui-messaging.mjs.map +1 -1
- package/fesm2022/forgeroute-ui.mjs +164 -79
- package/fesm2022/forgeroute-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/forgeroute-ui-map.d.ts +4 -0
- package/types/forgeroute-ui-messaging.d.ts +17 -7
- package/types/forgeroute-ui.d.ts +105 -56
package/types/forgeroute-ui.d.ts
CHANGED
|
@@ -3061,8 +3061,8 @@ export declare function requiredIssue(label: string): FieldIssue;
|
|
|
3061
3061
|
/** "Too long (max N characters)." when the trimmed text is longer than `max`. */
|
|
3062
3062
|
export declare function maxLengthIssue(text: string, max: number | undefined | null): FieldIssue | null;
|
|
3063
3063
|
/**
|
|
3064
|
-
* Touched / reveal bookkeeping shared by the inputs.
|
|
3065
|
-
*
|
|
3064
|
+
* Touched / reveal bookkeeping shared by the inputs. Messages (built-in AND a host `[error]`) are shown only once the user
|
|
3065
|
+
* interacted with the field itself (blurred it); `showErrors` never reveals an untouched field. Switching `showErrors` from true back to false (the host re-initialising its form) clears the
|
|
3066
3066
|
* touched state again. Must be called from an injection context.
|
|
3067
3067
|
*/
|
|
3068
3068
|
export declare function createFieldReveal(showErrors: Signal<boolean>): {
|
|
@@ -3146,9 +3146,9 @@ export declare class SelectComponent implements ControlValueAccessor, Validator,
|
|
|
3146
3146
|
/** Id(s) of an external element that also describes this control (e.g. one shared error text for a group of fields). Space separated; MERGED after the control's own hint / error id in `aria-describedby`, never replacing it. Empty = unchanged. */
|
|
3147
3147
|
readonly ariaDescribedBy: import("@angular/core").InputSignal<string>;
|
|
3148
3148
|
readonly error: import("@angular/core").InputSignal<string>;
|
|
3149
|
-
/**
|
|
3149
|
+
/** The host's "tried to submit" flag (e.g. after a failed Save click). It never reveals a message on a field the user has not left (messages show only after the user left THIS field); switching it from true back to false forgets that the field was left. */
|
|
3150
3150
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
3151
|
-
readonly size: import("@angular/core").InputSignal<"
|
|
3151
|
+
readonly size: import("@angular/core").InputSignal<"sm" | "default">;
|
|
3152
3152
|
readonly _disabledInput: import("@angular/core").InputSignal<boolean>;
|
|
3153
3153
|
private readonly _cvaDisabled;
|
|
3154
3154
|
protected readonly disabled: import("@angular/core").Signal<boolean>;
|
|
@@ -3548,6 +3548,12 @@ export declare class DataTableComponent<T extends Record<string, any>> implement
|
|
|
3548
3548
|
* are unaffected. The table still hides the menu by itself when it is empty and unfiltered.
|
|
3549
3549
|
*/
|
|
3550
3550
|
readonly showMoreActions: import("@angular/core").InputSignal<boolean>;
|
|
3551
|
+
/**
|
|
3552
|
+
* Words a quick-filter tab. Called with the tab's key (a key of `/counts`, e.g. `no-deals`); the text it returns is the tab's label. Return `null`, `undefined` or `''` for a key the host does not
|
|
3553
|
+
* word and the table reads it as before (the label of a column with a `badgeFn` that has that value, else the key split into capitalised words: `no-deals` → "No Deals"). Use it when a tab has no
|
|
3554
|
+
* column to take its text from, e.g. a Spanish app wording `no-deals` → "Sin negocios". The tab's `value` (the key sent to the backend) never changes. Default: none (every label as before).
|
|
3555
|
+
*/
|
|
3556
|
+
readonly quickTabLabelFn: import("@angular/core").InputSignal<((key: string) => string | null | undefined) | null>;
|
|
3551
3557
|
/**
|
|
3552
3558
|
* Show the search box above the table. Defaults true. Set false for small fixed tables where searching is meaningless
|
|
3553
3559
|
* (a handful of summary rows). Quick-filter tabs and the toolbar are unaffected; when the search box, the tabs and the
|
|
@@ -4236,6 +4242,11 @@ export declare class DataTableComponent<T extends Record<string, any>> implement
|
|
|
4236
4242
|
"required": false;
|
|
4237
4243
|
"isSignal": true;
|
|
4238
4244
|
};
|
|
4245
|
+
"quickTabLabelFn": {
|
|
4246
|
+
"alias": "quickTabLabelFn";
|
|
4247
|
+
"required": false;
|
|
4248
|
+
"isSignal": true;
|
|
4249
|
+
};
|
|
4239
4250
|
"showSearch": {
|
|
4240
4251
|
"alias": "showSearch";
|
|
4241
4252
|
"required": false;
|
|
@@ -4392,7 +4403,7 @@ export declare class SidePanelComponent implements OnDestroy {
|
|
|
4392
4403
|
readonly cancelLabel: import("@angular/core").Signal<string>;
|
|
4393
4404
|
/** Right-aligned primary action button label. Empty string = hidden. */
|
|
4394
4405
|
readonly primaryLabel: import("@angular/core").InputSignal<string>;
|
|
4395
|
-
readonly primaryVariant: import("@angular/core").InputSignal<"
|
|
4406
|
+
readonly primaryVariant: import("@angular/core").InputSignal<"warning" | "primary" | "danger">;
|
|
4396
4407
|
readonly primaryLoading: import("@angular/core").InputSignal<boolean>;
|
|
4397
4408
|
readonly primaryDisabled: import("@angular/core").InputSignal<boolean>;
|
|
4398
4409
|
/** `data-testid` of the Cancel button; none when empty (default). */
|
|
@@ -4524,7 +4535,7 @@ export declare class ModalComponent implements OnInit, OnDestroy {
|
|
|
4524
4535
|
*/
|
|
4525
4536
|
readonly describedBy: import("@angular/core").InputSignal<string | null>;
|
|
4526
4537
|
readonly maxWidth: import("@angular/core").InputSignal<string>;
|
|
4527
|
-
readonly bodyOverflow: import("@angular/core").InputSignal<"
|
|
4538
|
+
readonly bodyOverflow: import("@angular/core").InputSignal<"hidden" | "auto" | "visible">;
|
|
4528
4539
|
/** `data-testid` of the dialog element itself (the host `<ui-modal>` is always in the page, the dialog only while open). None when empty. */
|
|
4529
4540
|
readonly dialogTestId: import("@angular/core").InputSignal<string>;
|
|
4530
4541
|
/** Hides the header X button (e.g. while a request is running). Escape and a backdrop click still close unless `closable` is false. */
|
|
@@ -5303,7 +5314,7 @@ export declare class AudioPlayerComponent {
|
|
|
5303
5314
|
/** Accessible name of the player. */
|
|
5304
5315
|
readonly ariaLabel: import("@angular/core").InputSignal<string>;
|
|
5305
5316
|
/** How much to load before play: 'metadata' (default), 'auto' or 'none'. */
|
|
5306
|
-
readonly preload: import("@angular/core").InputSignal<"
|
|
5317
|
+
readonly preload: import("@angular/core").InputSignal<"none" | "metadata" | "auto">;
|
|
5307
5318
|
/** Fires when the browser can't load or decode the source. */
|
|
5308
5319
|
readonly playbackError: import("@angular/core").OutputEmitterRef<void>;
|
|
5309
5320
|
protected readonly failed: import("@angular/core").WritableSignal<boolean>;
|
|
@@ -5603,7 +5614,7 @@ export declare class NotificationBellComponent {
|
|
|
5603
5614
|
* Enter selects it too and Home / End select the first / last star (handled here). Each radio is named "1 star", "2 stars", ...
|
|
5604
5615
|
* - `readonly`: all `max` stars are drawn (filled up to the value, the rest outlined) as one `role="img"` named "4 stars out of 5" ("No rating" for 0; with a `label`: "Quality: 4 stars out of 5"). No inputs.
|
|
5605
5616
|
* - Validation follows `ui-radio-group` (`UiFieldValidity`, `Validator`, `invalidChange`): `required` -> "<label> is required." when the value is 0;
|
|
5606
|
-
* a value that is not a whole number from 0 to `max` -> "Select a valid option."; messages show after the group lost focus
|
|
5617
|
+
* a value that is not a whole number from 0 to `max` -> "Select a valid option."; messages (built-in and a host `[error]`) show only after the group lost focus (`[showErrors]` alone never reveals an untouched group);
|
|
5607
5618
|
* a host `[error]` wins. Disabled and readonly are never invalid.
|
|
5608
5619
|
* - Stars are gold (same look as `ui-star`, with a darker amber outline so the shape reaches 3:1 against white); empty stars are outlined, so the value never relies on colour alone. 44px touch targets on touch / phones.
|
|
5609
5620
|
*
|
|
@@ -5622,7 +5633,7 @@ export declare class StarRatingComponent implements ControlValueAccessor, Valida
|
|
|
5622
5633
|
readonly hint: import("@angular/core").InputSignal<string>;
|
|
5623
5634
|
readonly error: import("@angular/core").InputSignal<string>;
|
|
5624
5635
|
readonly required: import("@angular/core").InputSignal<boolean>;
|
|
5625
|
-
/**
|
|
5636
|
+
/** The host's "tried to submit" flag (e.g. after a failed Save click). It never reveals a message on a field the user has not left (messages show only after the user left THIS field); switching it from true back to false forgets that the field was left. */
|
|
5626
5637
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
5627
5638
|
/** Star size in px (default 24). */
|
|
5628
5639
|
readonly size: import("@angular/core").InputSignal<number>;
|
|
@@ -5918,7 +5929,7 @@ export declare class CheckboxComponent implements ControlValueAccessor, Validato
|
|
|
5918
5929
|
readonly hint: import("@angular/core").InputSignal<string>;
|
|
5919
5930
|
/** Host-provided error message (wins over the built-in one). */
|
|
5920
5931
|
readonly error: import("@angular/core").InputSignal<string>;
|
|
5921
|
-
/**
|
|
5932
|
+
/** The host's "tried to submit" flag (e.g. after a failed Save click). It never reveals a message on a control the user has not left (messages show only after the user left THIS control); switching it from true back to false forgets that the control was left. */
|
|
5922
5933
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
5923
5934
|
protected readonly _descId: string;
|
|
5924
5935
|
private readonly _reveal;
|
|
@@ -6464,7 +6475,7 @@ export declare function businessTimeOptions(step?: BusinessHoursStep, hour24?: b
|
|
|
6464
6475
|
* <ui-business-hours label="Schedule" [(ngModel)]="schedule" [step]="15" [hour24]="true" [allowSplitShifts]="true" [showCopyToWeekdays]="true" />
|
|
6465
6476
|
*
|
|
6466
6477
|
* Inputs
|
|
6467
|
-
* - `label` (names the group), `hint`, `error` (host message, wins), `showErrors` (
|
|
6478
|
+
* - `label` (names the group), `hint`, `error` (host message, wins), `showErrors` (the host's "tried to submit" flag: it never reveals an untouched control; messages show after the first change / blur), `disabled`.
|
|
6468
6479
|
* - `step` 15 | 30 | 60 minutes between time options (default 30). A stored time that is not on the grid is still offered, so it never shows blank.
|
|
6469
6480
|
* - `hour24` 24-hour labels ("17:00") instead of "5:00 PM".
|
|
6470
6481
|
* - `allowSplitShifts` adds an "Add shift" / "Remove shift" link per open day for a second shift (`open2` / `close2`), e.g. 9–12 and 1–5.
|
|
@@ -6488,7 +6499,7 @@ export declare class BusinessHoursComponent implements ControlValueAccessor, Val
|
|
|
6488
6499
|
readonly hint: import("@angular/core").InputSignal<string>;
|
|
6489
6500
|
/** Host-provided error message (wins over the built-in ones). */
|
|
6490
6501
|
readonly error: import("@angular/core").InputSignal<string>;
|
|
6491
|
-
/**
|
|
6502
|
+
/** The host's "tried to submit" flag. It never reveals the message on an untouched control (it shows after the first change / blur); switching back to false forgets that. */
|
|
6492
6503
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
6493
6504
|
/** At least one day must be open. */
|
|
6494
6505
|
readonly required: import("@angular/core").InputSignal<boolean>;
|
|
@@ -6651,7 +6662,7 @@ export interface RadioOption {
|
|
|
6651
6662
|
* templates render no extra attributes or ids.
|
|
6652
6663
|
*
|
|
6653
6664
|
* Validity API (same on every ui input): Angular `Validator`, signals `invalid` + `errorMessage`, `invalidChange` output,
|
|
6654
|
-
* provides `UiFieldValidity`. Messages show after the group lost focus
|
|
6665
|
+
* provides `UiFieldValidity`. Messages (built-in and a host `[error]`) show only after the group lost focus; `[showErrors]` alone never reveals an untouched group.
|
|
6655
6666
|
*/
|
|
6656
6667
|
export declare class RadioGroupComponent implements ControlValueAccessor, Validator, UiFieldValidity {
|
|
6657
6668
|
private readonly _labels;
|
|
@@ -6660,7 +6671,7 @@ export declare class RadioGroupComponent implements ControlValueAccessor, Valida
|
|
|
6660
6671
|
readonly required: import("@angular/core").InputSignal<boolean>;
|
|
6661
6672
|
readonly hint: import("@angular/core").InputSignal<string>;
|
|
6662
6673
|
readonly error: import("@angular/core").InputSignal<string>;
|
|
6663
|
-
/**
|
|
6674
|
+
/** The host's "tried to submit" flag (e.g. after a failed Save click). It never reveals a message on a field the user has not left (messages show only after the user left THIS field); switching it from true back to false forgets that the field was left. */
|
|
6664
6675
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
6665
6676
|
readonly orientation: import("@angular/core").InputSignal<"vertical" | "horizontal">;
|
|
6666
6677
|
/** Native `name` shared by the radios; a unique one is generated when omitted. */
|
|
@@ -6954,7 +6965,7 @@ export declare class ButtonComponent {
|
|
|
6954
6965
|
* `ghost-start`: a ghost button for list / section toggles - a full-width row with its content aligned to the start, transparent
|
|
6955
6966
|
* background, hover tint and the normal focus ring. Pair it with `ariaExpanded` / `ariaPressed`; the label may contain a heading element.
|
|
6956
6967
|
*/
|
|
6957
|
-
readonly variant: import("@angular/core").InputSignal<"
|
|
6968
|
+
readonly variant: import("@angular/core").InputSignal<"warning" | "link" | "primary" | "secondary" | "danger" | "ghost" | "ghost-start" | "tab" | "icon" | "icon-danger">;
|
|
6958
6969
|
/** Renders an anchor to this route instead of a button (use with `variant="link"` for an inline text link). `['/settings']` or `'/settings'`. While `disabled` or `loading` it renders a non-clickable `<span role="link" aria-disabled>` with no href (like `href`). */
|
|
6959
6970
|
readonly routerLink: import("@angular/core").InputSignal<string | readonly unknown[] | null>;
|
|
6960
6971
|
/** Query params of the `routerLink` (e.g. `{ section: 'deal-defaults' }`). */
|
|
@@ -6975,7 +6986,7 @@ export declare class ButtonComponent {
|
|
|
6975
6986
|
*/
|
|
6976
6987
|
readonly href: import("@angular/core").InputSignal<string | null>;
|
|
6977
6988
|
/** Where to open the `href` (`_blank` = a new tab). */
|
|
6978
|
-
readonly target: import("@angular/core").InputSignal<"
|
|
6989
|
+
readonly target: import("@angular/core").InputSignal<"_blank" | "_self" | "_parent" | "_top" | null>;
|
|
6979
6990
|
/** `rel` of the `href` link. A `_blank` target always gets `noopener noreferrer` added. */
|
|
6980
6991
|
readonly rel: import("@angular/core").InputSignal<string | null>;
|
|
6981
6992
|
/** The href when it is allowed (http, https, mailto, tel, sms or a relative URL), else null. */
|
|
@@ -7000,7 +7011,7 @@ export declare class ButtonComponent {
|
|
|
7000
7011
|
readonly color: import("@angular/core").InputSignal<string | undefined>;
|
|
7001
7012
|
readonly active: import("@angular/core").InputSignal<boolean>;
|
|
7002
7013
|
readonly size: import("@angular/core").InputSignal<"sm" | "md" | "lg" | "xs">;
|
|
7003
|
-
readonly type: import("@angular/core").InputSignal<"
|
|
7014
|
+
readonly type: import("@angular/core").InputSignal<"button" | "reset" | "submit">;
|
|
7004
7015
|
readonly disabled: import("@angular/core").InputSignal<boolean>;
|
|
7005
7016
|
readonly loading: import("@angular/core").InputSignal<boolean>;
|
|
7006
7017
|
readonly fullWidth: import("@angular/core").InputSignal<boolean>;
|
|
@@ -7419,7 +7430,7 @@ export declare class ContactPickerComponent {
|
|
|
7419
7430
|
readonly errorId: import("@angular/core").InputSignal<string>;
|
|
7420
7431
|
/** Marks the combobox / selected group `aria-invalid="true"`. The picker renders no error text itself. */
|
|
7421
7432
|
readonly invalid: import("@angular/core").InputSignal<boolean>;
|
|
7422
|
-
/**
|
|
7433
|
+
/** The host's "tried to submit" flag (e.g. after a failed Save click). It never reveals `visibleErrorMessage` on a picker the user has not left. */
|
|
7423
7434
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
7424
7435
|
readonly showDetails: import("@angular/core").InputSignal<boolean>;
|
|
7425
7436
|
readonly isMultiSelect: import("@angular/core").InputSignal<boolean>;
|
|
@@ -7457,9 +7468,9 @@ export declare class ContactPickerComponent {
|
|
|
7457
7468
|
readonly fieldInvalid: import("@angular/core").Signal<boolean>;
|
|
7458
7469
|
/** "<label> is required." while required-and-empty ('' otherwise), shown or not. */
|
|
7459
7470
|
readonly errorMessage: import("@angular/core").Signal<string>;
|
|
7460
|
-
/** `errorMessage` only after the
|
|
7471
|
+
/** `errorMessage` only after the user left the picker (`showErrors` alone does not reveal it) — render it in a `<ui-error>` under the picker. */
|
|
7461
7472
|
readonly visibleErrorMessage: import("@angular/core").Signal<string>;
|
|
7462
|
-
/** aria-invalid: the host flag
|
|
7473
|
+
/** aria-invalid: only once the user left the picker, and then when the host `[invalid]` flag is set or it is required-and-empty. Never before that: neither the host flag nor `showErrors` alone marks an untouched picker. */
|
|
7463
7474
|
readonly ariaInvalid: import("@angular/core").Signal<boolean>;
|
|
7464
7475
|
/** The hint is search guidance: hidden while a contact is selected (single-select), back after clear. */
|
|
7465
7476
|
readonly showHint: import("@angular/core").Signal<boolean>;
|
|
@@ -7482,6 +7493,8 @@ export declare class ContactPickerComponent {
|
|
|
7482
7493
|
constructor();
|
|
7483
7494
|
onInput(): void;
|
|
7484
7495
|
onFocus(): void;
|
|
7496
|
+
/** Focus left the selected-contact group (its clear button or the group itself): the picker counts as touched, so a host `[invalid]` can mark it. */
|
|
7497
|
+
onSelectedFocusOut(): void;
|
|
7485
7498
|
/** Delayed so a click on an option still lands; cancelled if focus returns (or the user types) first. */
|
|
7486
7499
|
onBlur(): void;
|
|
7487
7500
|
private clearBlurTimer;
|
|
@@ -7643,7 +7656,7 @@ export declare class ImportSourceGridComponent {
|
|
|
7643
7656
|
/** The `value` of the picked source (highlighted). `tile` only: the `card` appearance does not keep a selection. */
|
|
7644
7657
|
readonly selected: import("@angular/core").InputSignal<string>;
|
|
7645
7658
|
/** `tile`: the compact buttons of the import window. `card`: one `ui-detail-card` per source with its own select button (used on a page). */
|
|
7646
|
-
readonly appearance: import("@angular/core").InputSignal<"
|
|
7659
|
+
readonly appearance: import("@angular/core").InputSignal<"tile" | "card">;
|
|
7647
7660
|
/** `card`: disables every card's button (for example while the page is saving). */
|
|
7648
7661
|
readonly disabled: import("@angular/core").InputSignal<boolean>;
|
|
7649
7662
|
/** `card`: the text of each card's button. */
|
|
@@ -7799,14 +7812,14 @@ export declare const DEFAULT_BANK_HOLDER_TYPE_OPTIONS: SelectOption[];
|
|
|
7799
7812
|
*
|
|
7800
7813
|
* - Validation is inline through the inputs' own `[error]` / built-in rules. The routing number is only checked for 9 digits (no ABA checksum: the
|
|
7801
7814
|
* provider validates the real number, and a client checksum would reject test numbers). Account numbers are 4-17 digits.
|
|
7802
|
-
* -
|
|
7815
|
+
* - Every message (the built-in ones and the form's own routing / account / confirm messages, which are passed to the inputs as `[error]`) shows only after the user left THAT field (blur). `[showErrors]` and a failed `submit()` reveal nothing on a field the user never left; they only block submitting. Switching the reveal flag from true back to false (the host's `showErrors` going false, or `reset()`) clears every field's touched state.
|
|
7803
7816
|
* - The form provides `UiFieldValidity` (`invalid` = not submittable), so a host can gate its own button with `viewChildren(UiFieldValidity)`,
|
|
7804
7817
|
* or use `(validChange)`.
|
|
7805
7818
|
* - The host's footer button calls `form.submit()` (via `viewChild`); Enter in a text field submits too.
|
|
7806
7819
|
*/
|
|
7807
7820
|
export declare class BankAccountFormComponent implements UiFieldValidity {
|
|
7808
7821
|
protected readonly labels: UiLabelsService;
|
|
7809
|
-
/**
|
|
7822
|
+
/** The host's "tried to submit" flag (e.g. a panel's `touched()`). It never reveals a message on a field the user has not left; it only blocks submitting, and switching it from true back to false clears every field's touched state. */
|
|
7810
7823
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
7811
7824
|
/** Disables every field and blocks `submit()`. */
|
|
7812
7825
|
readonly disabled: import("@angular/core").InputSignal<boolean>;
|
|
@@ -7840,6 +7853,7 @@ export declare class BankAccountFormComponent implements UiFieldValidity {
|
|
|
7840
7853
|
protected readonly routingFormatter: (raw: string) => string;
|
|
7841
7854
|
protected readonly accountFormatter: (raw: string) => string;
|
|
7842
7855
|
protected readonly locked: import("@angular/core").Signal<boolean>;
|
|
7856
|
+
/** Handed to the inputs as `[showErrors]`. An input never reveals an untouched field because of it; it exists so true -> false (host flag off, or `reset()` after a failed `submit()`) clears each input's touched state. */
|
|
7843
7857
|
protected readonly reveal: import("@angular/core").Signal<boolean>;
|
|
7844
7858
|
protected readonly routingError: import("@angular/core").Signal<string>;
|
|
7845
7859
|
protected readonly accountError: import("@angular/core").Signal<string>;
|
|
@@ -7854,7 +7868,7 @@ export declare class BankAccountFormComponent implements UiFieldValidity {
|
|
|
7854
7868
|
constructor();
|
|
7855
7869
|
protected id(name: string): string;
|
|
7856
7870
|
protected onEnter(event: Event): void;
|
|
7857
|
-
/** Validates and, when valid, emits `submitted`. An invalid form reveals
|
|
7871
|
+
/** Validates and, when valid, emits `submitted`. An invalid form emits nothing and reveals no message on a field the user never left. Ignored while `disabled` / `busy`. */
|
|
7858
7872
|
submit(): void;
|
|
7859
7873
|
/** Clears every field back to the defaults (checking, individual, authorization unticked, holder name = `accountHolderNameDefault`). */
|
|
7860
7874
|
reset(): void;
|
|
@@ -8131,7 +8145,7 @@ export declare class TextInputComponent implements ControlValueAccessor, Validat
|
|
|
8131
8145
|
readonly passwordRequirements: import("@angular/core").InputSignal<boolean>;
|
|
8132
8146
|
/** Rules for `passwordRequirements`; default = the library's five rules (8+ characters, upper, lower, digit, special). */
|
|
8133
8147
|
readonly passwordRules: import("@angular/core").InputSignal<readonly PasswordRule[] | undefined>;
|
|
8134
|
-
readonly type: import("@angular/core").InputSignal<"number" | "email" | "text" | "
|
|
8148
|
+
readonly type: import("@angular/core").InputSignal<"number" | "email" | "text" | "password" | "tel" | "url">;
|
|
8135
8149
|
readonly maxlength: import("@angular/core").InputSignal<number | undefined>;
|
|
8136
8150
|
readonly required: import("@angular/core").InputSignal<boolean>;
|
|
8137
8151
|
readonly autocomplete: import("@angular/core").InputSignal<string>;
|
|
@@ -8140,7 +8154,7 @@ export declare class TextInputComponent implements ControlValueAccessor, Validat
|
|
|
8140
8154
|
* `search`, `text`, `none`). Empty (default) = the browser's default for the field, except `type="tel"`, which keeps `tel`.
|
|
8141
8155
|
* It only picks the keyboard; it does not restrict what can be typed or pasted.
|
|
8142
8156
|
*/
|
|
8143
|
-
readonly inputmode: import("@angular/core").InputSignal<"" | "email" | "text" | "
|
|
8157
|
+
readonly inputmode: import("@angular/core").InputSignal<"" | "email" | "text" | "decimal" | "none" | "search" | "tel" | "url" | "numeric">;
|
|
8144
8158
|
readonly readonly: import("@angular/core").InputSignal<boolean>;
|
|
8145
8159
|
readonly hint: import("@angular/core").InputSignal<string>;
|
|
8146
8160
|
/** Id(s) of an external element that also describes this control (e.g. one shared error text for a group of fields). Space separated; MERGED after the control's own hint / error id in `aria-describedby`, never replacing it. Empty = unchanged. */
|
|
@@ -8180,7 +8194,7 @@ export declare class TextInputComponent implements ControlValueAccessor, Validat
|
|
|
8180
8194
|
* the 0-decimals rule).
|
|
8181
8195
|
*/
|
|
8182
8196
|
readonly integer: import("@angular/core").InputSignal<boolean>;
|
|
8183
|
-
/**
|
|
8197
|
+
/** The host's "tried to submit" flag (e.g. after a failed Save click). It never reveals a message on a field the user has not left (messages show only after the user left THIS field); switching it from true back to false forgets that the field was left. */
|
|
8184
8198
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
8185
8199
|
/** Emits the new value when the USER changes it (typing, paste, autofill) - the same value the form control receives. Not emitted for values the host writes. */
|
|
8186
8200
|
readonly valueChange: import("@angular/core").OutputEmitterRef<string | number | null>;
|
|
@@ -8212,7 +8226,7 @@ export declare class TextInputComponent implements ControlValueAccessor, Validat
|
|
|
8212
8226
|
protected readonly _stepAttr: import("@angular/core").Signal<string | null>;
|
|
8213
8227
|
protected readonly _revealable: import("@angular/core").Signal<boolean>;
|
|
8214
8228
|
protected readonly _shown: import("@angular/core").WritableSignal<boolean>;
|
|
8215
|
-
protected readonly _inputType: import("@angular/core").Signal<"number" | "email" | "text" | "
|
|
8229
|
+
protected readonly _inputType: import("@angular/core").Signal<"number" | "email" | "text" | "password" | "tel" | "url">;
|
|
8216
8230
|
protected readonly _eyePath: string;
|
|
8217
8231
|
protected readonly _eyeOffPath: string;
|
|
8218
8232
|
protected readonly _showRequirements: import("@angular/core").Signal<boolean>;
|
|
@@ -8564,7 +8578,7 @@ export declare class TextareaInputComponent implements ControlValueAccessor, Val
|
|
|
8564
8578
|
readonly error: import("@angular/core").InputSignal<string>;
|
|
8565
8579
|
/** Opt-in. `true` shows the text in a monospace font (HTML / code / merge-tag fields). Default `false` = unchanged. */
|
|
8566
8580
|
readonly monospace: import("@angular/core").InputSignal<boolean>;
|
|
8567
|
-
/**
|
|
8581
|
+
/** The host's "tried to submit" flag (e.g. after a failed Save click). It never reveals a message on a field the user has not left (messages show only after the user left THIS field); switching it from true back to false forgets that the field was left. */
|
|
8568
8582
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
8569
8583
|
readonly _disabledInput: import("@angular/core").InputSignal<boolean>;
|
|
8570
8584
|
private readonly _cvaDisabled;
|
|
@@ -8822,7 +8836,7 @@ export declare function acceptLabel(accept: string): string;
|
|
|
8822
8836
|
* files, `rejectEmpty` refuses a 0-byte file (`emptyMessage`) and `minSize` (bytes) refuses smaller ones (`minSizeMessage`). A refused file is never added to the value: the field shows the message (`typeMessage` / `sizeMessage`
|
|
8823
8837
|
* override the wording, also in picker-only mode), and `(fileRejected)` emits `{ file, reason, message }`.
|
|
8824
8838
|
* - `required` is a real rule: Angular `Validator` + `UiFieldValidity` (`invalid`, `errorMessage`, `invalidChange`,
|
|
8825
|
-
* `showErrors`), like the other inputs. The message shows after the
|
|
8839
|
+
* `showErrors`), like the other inputs. The message (built-in and host `error`) shows only after the user used the field; `[showErrors]` alone never reveals it. A refused file is always shown at once.
|
|
8826
8840
|
* - `dropzone`: the field accepts files dropped on it.
|
|
8827
8841
|
* - `showDetails`: file size after the name; `preview`: a thumbnail of a chosen image.
|
|
8828
8842
|
* - `loading` (+ `loadingText`): a `ui-skeleton` replaces the file name while the host works on the file (scanning, uploading).
|
|
@@ -8839,14 +8853,14 @@ export declare class FileInputComponent implements ControlValueAccessor, Validat
|
|
|
8839
8853
|
/** Native `accept` string, e.g. ".pdf,.png". Also enforced on picked and dropped files unless `enforceAccept` is false. */
|
|
8840
8854
|
readonly accept: import("@angular/core").InputSignal<string>;
|
|
8841
8855
|
readonly multiple: import("@angular/core").InputSignal<boolean>;
|
|
8842
|
-
/** A file must be chosen (a real rule: Validator + UiFieldValidity, message shown after
|
|
8856
|
+
/** A file must be chosen (a real rule: Validator + UiFieldValidity, message shown only after the user used the field; `showErrors` alone never reveals it). */
|
|
8843
8857
|
readonly required: import("@angular/core").InputSignal<boolean>;
|
|
8844
8858
|
readonly hint: import("@angular/core").InputSignal<string>;
|
|
8845
8859
|
/** Host-provided error message (wins over the built-in ones). Shown under a visible field only. */
|
|
8846
8860
|
readonly error: import("@angular/core").InputSignal<string>;
|
|
8847
8861
|
/** false = no visible field; open the picker from the host with `open()`. */
|
|
8848
8862
|
readonly showField: import("@angular/core").InputSignal<boolean>;
|
|
8849
|
-
/**
|
|
8863
|
+
/** The host's "tried to submit" flag (e.g. after a failed Save click). It never reveals the "required" message before the user used the field. */
|
|
8850
8864
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
8851
8865
|
/**
|
|
8852
8866
|
* Also report every refused file (wrong type, too big, too small, empty) with a `ToastService` error toast that names the file and
|
|
@@ -9163,7 +9177,7 @@ export declare class CopyFieldComponent implements OnDestroy {
|
|
|
9163
9177
|
/** Neither the Clipboard API nor the fallback could copy. */
|
|
9164
9178
|
readonly copyFailed: import("@angular/core").OutputEmitterRef<void>;
|
|
9165
9179
|
protected readonly _id: string;
|
|
9166
|
-
protected readonly _state: import("@angular/core").WritableSignal<"idle" | "
|
|
9180
|
+
protected readonly _state: import("@angular/core").WritableSignal<"idle" | "failed" | "copied">;
|
|
9167
9181
|
protected readonly _announcement: import("@angular/core").Signal<string>;
|
|
9168
9182
|
protected readonly _buttonName: import("@angular/core").Signal<string>;
|
|
9169
9183
|
protected readonly _describedBy: import("@angular/core").Signal<string | null>;
|
|
@@ -9252,7 +9266,7 @@ export declare class DateInputComponent implements ControlValueAccessor, Validat
|
|
|
9252
9266
|
/** Id(s) of an external element that also describes this control (e.g. one shared error text for a group of fields). Space separated; MERGED after the control's own hint / error id in `aria-describedby`, never replacing it. Empty = unchanged. */
|
|
9253
9267
|
readonly ariaDescribedBy: import("@angular/core").InputSignal<string>;
|
|
9254
9268
|
readonly error: import("@angular/core").InputSignal<string>;
|
|
9255
|
-
/**
|
|
9269
|
+
/** The host's "tried to submit" flag (e.g. after a failed Save click). It never reveals a message on a field the user has not left (messages show only after the user left THIS field); switching it from true back to false forgets that the field was left. */
|
|
9256
9270
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
9257
9271
|
/** The `[disabled]` input. Public so `[disabled]="x"` in a host template type-checks (a protected alias target fails with TS2445); disabled when this OR the form control says so. */
|
|
9258
9272
|
readonly _disabledInput: import("@angular/core").InputSignal<boolean>;
|
|
@@ -9350,7 +9364,7 @@ export declare class DatetimeInputComponent implements ControlValueAccessor, Val
|
|
|
9350
9364
|
/** Id(s) of an external element that also describes this control (e.g. one shared error text for a group of fields). Space separated; MERGED after the control's own hint / error id in `aria-describedby`, never replacing it. Empty = unchanged. */
|
|
9351
9365
|
readonly ariaDescribedBy: import("@angular/core").InputSignal<string>;
|
|
9352
9366
|
readonly error: import("@angular/core").InputSignal<string>;
|
|
9353
|
-
/**
|
|
9367
|
+
/** The host's "tried to submit" flag (e.g. after a failed Save click). It never reveals a message on a field the user has not left (messages show only after the user left THIS field); switching it from true back to false forgets that the field was left. */
|
|
9354
9368
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
9355
9369
|
readonly _disabledInput: import("@angular/core").InputSignal<boolean>;
|
|
9356
9370
|
private readonly _cvaDisabled;
|
|
@@ -9446,7 +9460,7 @@ export declare class TimeInputComponent implements ControlValueAccessor, Validat
|
|
|
9446
9460
|
/** Id(s) of an external element that also describes this control (e.g. one shared error text for a group of fields). Space separated; MERGED after the control's own hint / error id in `aria-describedby`, never replacing it. Empty = unchanged. */
|
|
9447
9461
|
readonly ariaDescribedBy: import("@angular/core").InputSignal<string>;
|
|
9448
9462
|
readonly error: import("@angular/core").InputSignal<string>;
|
|
9449
|
-
/**
|
|
9463
|
+
/** The host's "tried to submit" flag (e.g. after a failed Save click). It never reveals a message on a field the user has not left (messages show only after the user left THIS field); switching it from true back to false forgets that the field was left. */
|
|
9450
9464
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
9451
9465
|
/** Public (like the other inputs) so `[disabled]` can be bound in a host template. */
|
|
9452
9466
|
readonly _disabledInput: import("@angular/core").InputSignal<boolean>;
|
|
@@ -9567,7 +9581,7 @@ export interface ComboboxSelection {
|
|
|
9567
9581
|
* on focus and `(searchChange)` fires with '' so the host can show its initial results.
|
|
9568
9582
|
* - `[debounce]` ms between the last keystroke and `(searchChange)` (default 250). Focus / ArrowDown-open emit immediately.
|
|
9569
9583
|
* - `[label] [ariaLabel] [placeholder] [required] [hint] [error] [disabled] [showErrors]` like `ui-text-input`
|
|
9570
|
-
* (host `[error]` wins over the built-in "<label> is required."; messages show after
|
|
9584
|
+
* (host `[error]` wins over the built-in "<label> is required."; messages (built-in and host) show only after the user left the field, `showErrors` alone never reveals an untouched field).
|
|
9571
9585
|
* - `(searchChange)` string, `(valueChange)` `ComboboxOption | null` (the full chosen option, null when cleared),
|
|
9572
9586
|
* `(invalidChange)` boolean, `(focused)`, `(blurred)`. Validity: `UiFieldValidity` token + Angular `Validator`.
|
|
9573
9587
|
*
|
|
@@ -9817,12 +9831,19 @@ export declare class MultiSelectComponent implements ControlValueAccessor {
|
|
|
9817
9831
|
protected readonly _selectedOptions: import("@angular/core").Signal<SelectOption<string>[]>;
|
|
9818
9832
|
protected readonly _filteredOptions: import("@angular/core").Signal<SelectOption<string>[]>;
|
|
9819
9833
|
private _onChange;
|
|
9834
|
+
/** The host `[error]` shows only after the user interacted with the field: closed the list, or moved focus out of the control (Tab away) even if the list stayed open. */
|
|
9835
|
+
private readonly _touched;
|
|
9836
|
+
protected readonly _shownError: import("@angular/core").Signal<string>;
|
|
9837
|
+
/** Forgets that the user interacted (call it when the host resets its form): a host `error` is hidden again until the list is closed or focus leaves. Same method on ui-signature-pad and ui-rich-text-editor. */
|
|
9838
|
+
resetTouched(): void;
|
|
9820
9839
|
private _onTouched;
|
|
9821
9840
|
writeValue(val: string[] | null): void;
|
|
9822
9841
|
registerOnChange(fn: (v: string[]) => void): void;
|
|
9823
9842
|
registerOnTouched(fn: () => void): void;
|
|
9824
9843
|
setDisabledState(d: boolean): void;
|
|
9825
9844
|
protected onDocumentClick(event: Event): void;
|
|
9845
|
+
/** Focus moved to another element outside the control (Tab away): the field counts as touched even when the list stayed open. */
|
|
9846
|
+
protected onFocusOut(event: FocusEvent): void;
|
|
9826
9847
|
/** Escape with the list open closes ONLY the list (focus back on the trigger) and is not passed on, so a surrounding side panel / modal stays open. */
|
|
9827
9848
|
protected onEscape(event: Event): void;
|
|
9828
9849
|
protected toggleOpen(): void;
|
|
@@ -11611,7 +11632,7 @@ export declare class ChipGroupComponent {
|
|
|
11611
11632
|
readonly spaceAbove: import("@angular/core").InputSignal<"none" | "sm" | "md">;
|
|
11612
11633
|
/** Space below the chip group. */
|
|
11613
11634
|
readonly spaceBelow: import("@angular/core").InputSignal<"none" | "sm" | "md">;
|
|
11614
|
-
protected readonly _gap: import("@angular/core").Signal<"
|
|
11635
|
+
protected readonly _gap: import("@angular/core").Signal<"8px" | "6px" | "12px">;
|
|
11615
11636
|
protected readonly _spaceAbove: import("@angular/core").Signal<"0" | "6px" | "12px">;
|
|
11616
11637
|
protected readonly _spaceBelow: import("@angular/core").Signal<"0" | "6px" | "12px">;
|
|
11617
11638
|
static ɵfac: i0.ɵɵFactoryDeclaration<ChipGroupComponent, never>;
|
|
@@ -12050,7 +12071,7 @@ export declare class IconComponent {
|
|
|
12050
12071
|
readonly ariaLabel: import("@angular/core").InputSignal<string>;
|
|
12051
12072
|
/** Icon size in px. */
|
|
12052
12073
|
readonly size: import("@angular/core").InputSignal<number>;
|
|
12053
|
-
readonly variant: import("@angular/core").InputSignal<"
|
|
12074
|
+
readonly variant: import("@angular/core").InputSignal<"danger" | "default">;
|
|
12054
12075
|
readonly disabled: import("@angular/core").InputSignal<boolean>;
|
|
12055
12076
|
/** The host is running the request this icon started: a spinner replaces the picture and the button is disabled (no click) until it is false again. */
|
|
12056
12077
|
readonly loading: import("@angular/core").InputSignal<boolean>;
|
|
@@ -12495,7 +12516,7 @@ type AddressField = keyof AddressValue;
|
|
|
12495
12516
|
* 5 digits or 5+4 ("Enter a valid ZIP code."); state must be one of the options ("Select a valid option."); maxlengths
|
|
12496
12517
|
* ("Too long (max N characters)."); `requireComplete` -> once ANY of street / city / state / ZIP is filled the others are required too
|
|
12497
12518
|
* (for an optional address that must not be half-filled). The unit is never required. Messages show per field after that field was left,
|
|
12498
|
-
*
|
|
12519
|
+
* never revealed by `showErrors` alone (only a sub-field the user left shows its message); the host `error` is shown under the group and always counts as invalid.
|
|
12499
12520
|
*
|
|
12500
12521
|
* Layout: street + unit, then city + state + ZIP in `ui-form-row`s (they collapse to one column on phones).
|
|
12501
12522
|
*/
|
|
@@ -12539,7 +12560,7 @@ export declare class AddressInputComponent implements ControlValueAccessor, Vali
|
|
|
12539
12560
|
readonly zipMaxlength: import("@angular/core").InputSignal<number>;
|
|
12540
12561
|
/** Native select cannot be read-only: while `readonly`, the State select is disabled and the text fields are read-only. */
|
|
12541
12562
|
readonly readonly: import("@angular/core").InputSignal<boolean>;
|
|
12542
|
-
/**
|
|
12563
|
+
/** The host's "tried to submit" flag. It never reveals a message on a sub-field the user has not left; switching back to false forgets which fields were left. */
|
|
12543
12564
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
12544
12565
|
readonly hint: import("@angular/core").InputSignal<string>;
|
|
12545
12566
|
/** Host error for the whole address; shown under the group (replaces the hint), always makes the field invalid. */
|
|
@@ -12589,6 +12610,8 @@ export declare class AddressInputComponent implements ControlValueAccessor, Vali
|
|
|
12589
12610
|
readonly errorMessage: import("@angular/core").Signal<string>;
|
|
12590
12611
|
/** Street, city, state and ZIP are required: always with `required`, and with `requireComplete` once any of them has text. */
|
|
12591
12612
|
protected readonly _req: import("@angular/core").Signal<boolean>;
|
|
12613
|
+
/** The host `[error]` shows only after the user left one of the address fields. */
|
|
12614
|
+
protected readonly _shownError: import("@angular/core").Signal<string>;
|
|
12592
12615
|
protected readonly _describedBy: import("@angular/core").Signal<string | null>;
|
|
12593
12616
|
private _onChange;
|
|
12594
12617
|
/** True once a string was written to the control (valueFormat 'auto' then emits strings). */
|
|
@@ -12608,7 +12631,7 @@ export declare class AddressInputComponent implements ControlValueAccessor, Vali
|
|
|
12608
12631
|
validate(control: AbstractControl): ValidationErrors | null;
|
|
12609
12632
|
protected _set(field: AddressField, text: unknown): void;
|
|
12610
12633
|
protected _onFocusOut(field: AddressField, event: FocusEvent): void;
|
|
12611
|
-
/** True while the field's own message may show:
|
|
12634
|
+
/** True while the field's own message may show: only after the field was left (`showErrors` no longer reveals an untouched field). Bound to the child's `showErrors` so a reset clears the child too. */
|
|
12612
12635
|
protected _revealed(field: AddressField): boolean;
|
|
12613
12636
|
protected _fieldError(field: AddressField): string;
|
|
12614
12637
|
private _hasText;
|
|
@@ -13498,7 +13521,13 @@ export declare class RichTextEditorComponent implements ControlValueAccessor {
|
|
|
13498
13521
|
readonly required: import("@angular/core").InputSignal<boolean>;
|
|
13499
13522
|
readonly readonly: import("@angular/core").InputSignal<boolean>;
|
|
13500
13523
|
readonly hint: import("@angular/core").InputSignal<string>;
|
|
13524
|
+
/** Host error message. Shown (with the red state, aria-invalid and aria-describedby) only after the user left the editor (blur). */
|
|
13501
13525
|
readonly error: import("@angular/core").InputSignal<string>;
|
|
13526
|
+
/** True once the user left the editor. */
|
|
13527
|
+
protected readonly _touched: import("@angular/core").WritableSignal<boolean>;
|
|
13528
|
+
protected readonly _activeError: import("@angular/core").Signal<string>;
|
|
13529
|
+
/** Forgets that the user left the editor (call it when the host resets its form): a host `error` is hidden again until the next blur. Same method on ui-signature-pad and ui-multi-select. */
|
|
13530
|
+
resetTouched(): void;
|
|
13502
13531
|
/** Minimum editor height in px. */
|
|
13503
13532
|
readonly minHeight: import("@angular/core").InputSignal<number>;
|
|
13504
13533
|
/** Maximum editor height in px; taller content scrolls. */
|
|
@@ -13828,7 +13857,7 @@ export declare class SwatchPickerComponent implements ControlValueAccessor, Vali
|
|
|
13828
13857
|
readonly required: import("@angular/core").InputSignal<boolean>;
|
|
13829
13858
|
readonly hint: import("@angular/core").InputSignal<string>;
|
|
13830
13859
|
readonly error: import("@angular/core").InputSignal<string>;
|
|
13831
|
-
/**
|
|
13860
|
+
/** The host's "tried to submit" flag (e.g. after a failed Save click). It never reveals a message on a field the user has not left (messages show only after the user left THIS field); switching it from true back to false forgets that the field was left. */
|
|
13832
13861
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
13833
13862
|
/** Fixed number of swatches per row (0 = wrap freely, the default). On a phone the row wraps by width instead. */
|
|
13834
13863
|
readonly columns: import("@angular/core").InputSignal<number>;
|
|
@@ -13945,7 +13974,7 @@ export declare class IconPickerComponent implements ControlValueAccessor, Valida
|
|
|
13945
13974
|
readonly required: import("@angular/core").InputSignal<boolean>;
|
|
13946
13975
|
readonly hint: import("@angular/core").InputSignal<string>;
|
|
13947
13976
|
readonly error: import("@angular/core").InputSignal<string>;
|
|
13948
|
-
/**
|
|
13977
|
+
/** The host's "tried to submit" flag (e.g. after a failed Save click). It never reveals a message on a field the user has not left (messages show only after the user left THIS field); switching it from true back to false forgets that the field was left. */
|
|
13949
13978
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
13950
13979
|
/** SVG path drawn for an option: its `path`, else the library icon `iconKey` (default: the option's `value`); '' when unknown. */
|
|
13951
13980
|
protected _path(o: IconPickerOption): string;
|
|
@@ -14081,7 +14110,7 @@ export interface RadioMatrixRow {
|
|
|
14081
14110
|
* ignored (and kept untouched in the model). Disabled matrices are never invalid.
|
|
14082
14111
|
*
|
|
14083
14112
|
* Validity API (same on every ui input): Angular `Validator`, signals `invalid` + `errorMessage`, `invalidChange` output,
|
|
14084
|
-
* provides `UiFieldValidity`. Messages show after the matrix lost focus
|
|
14113
|
+
* provides `UiFieldValidity`. Messages (built-in and a host `[error]`) show only after the matrix lost focus; `[showErrors]` alone never reveals an untouched matrix.
|
|
14085
14114
|
*
|
|
14086
14115
|
* <ui-radio-matrix label="Page permissions" rowHeader="Page" [rows]="pages" [columns]="levels" [(ngModel)]="permissions" />
|
|
14087
14116
|
*/
|
|
@@ -14095,7 +14124,7 @@ export declare class RadioMatrixComponent implements ControlValueAccessor, Valid
|
|
|
14095
14124
|
readonly required: import("@angular/core").InputSignal<boolean>;
|
|
14096
14125
|
readonly hint: import("@angular/core").InputSignal<string>;
|
|
14097
14126
|
readonly error: import("@angular/core").InputSignal<string>;
|
|
14098
|
-
/**
|
|
14127
|
+
/** The host's "tried to submit" flag (e.g. after a failed Save click). It never reveals a message on a field the user has not left (messages show only after the user left THIS field); switching it from true back to false forgets that the field was left. */
|
|
14099
14128
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
14100
14129
|
/** Prefix of the native radio `name`s (one name per row); a unique one is generated when omitted. */
|
|
14101
14130
|
readonly name: import("@angular/core").InputSignal<string>;
|
|
@@ -14206,7 +14235,7 @@ export declare class RadioMatrixComponent implements ControlValueAccessor, Valid
|
|
|
14206
14235
|
* looks like what was drawn. Changing `width` / `height` after drawing repaints the current signature (scaled to fit) instead of losing it.
|
|
14207
14236
|
* Screen readers get the keyboard instructions as a description of the pad and a polite "Signature captured" / "Signature cleared" announcement.
|
|
14208
14237
|
*
|
|
14209
|
-
* Public methods: `clear()`, `isEmpty()
|
|
14238
|
+
* Public methods: `clear()`, `isEmpty()`, `toDataUrl()` (the current normalized signature, or `null` when empty) and `resetTouched()` (hides a host `error` again after the host reset its form; same method on ui-rich-text-editor and ui-multi-select).
|
|
14210
14239
|
*/
|
|
14211
14240
|
export declare class SignaturePadComponent implements ControlValueAccessor {
|
|
14212
14241
|
protected readonly labels: UiLabelsService;
|
|
@@ -14214,7 +14243,13 @@ export declare class SignaturePadComponent implements ControlValueAccessor {
|
|
|
14214
14243
|
/** Accessible name when there is no visible label. A default describing the keyboard controls is used when neither is set. */
|
|
14215
14244
|
readonly ariaLabel: import("@angular/core").InputSignal<string>;
|
|
14216
14245
|
readonly hint: import("@angular/core").InputSignal<string>;
|
|
14246
|
+
/** Host error message. Shown (with the red state and aria-invalid) only after the user interacted with the pad itself: finished a stroke or left it. */
|
|
14217
14247
|
readonly error: import("@angular/core").InputSignal<string>;
|
|
14248
|
+
/** True once the user drew on the pad or tabbed away from it. */
|
|
14249
|
+
protected readonly _touched: import("@angular/core").WritableSignal<boolean>;
|
|
14250
|
+
protected readonly _activeError: import("@angular/core").Signal<string>;
|
|
14251
|
+
/** Forgets that the user interacted (call it when the host resets its form): a host `error` is hidden again until the next stroke / blur. */
|
|
14252
|
+
resetTouched(): void;
|
|
14218
14253
|
/** Bitmap size of the drawing surface in pixels. The pad is displayed at the container's width with this same aspect ratio, so strokes keep their proportions. */
|
|
14219
14254
|
readonly width: import("@angular/core").InputSignal<number>;
|
|
14220
14255
|
readonly height: import("@angular/core").InputSignal<number>;
|
|
@@ -14403,7 +14438,7 @@ export declare class PdfHotspotComponent {
|
|
|
14403
14438
|
/** `ready`: clickable; `blocked`: disabled (a prerequisite is missing); `signed`: shows `image`. */
|
|
14404
14439
|
readonly state: import("@angular/core").InputSignal<"ready" | "blocked" | "signed">;
|
|
14405
14440
|
/** `warning` gives the ready state an amber look (e.g. for initials), default is blue. */
|
|
14406
|
-
readonly tone: import("@angular/core").InputSignal<"
|
|
14441
|
+
readonly tone: import("@angular/core").InputSignal<"warning" | "primary">;
|
|
14407
14442
|
/** Text of the ready button (e.g. "Sign Here"). */
|
|
14408
14443
|
readonly labelInput: import("@angular/core").InputSignal<string | null>;
|
|
14409
14444
|
readonly label: import("@angular/core").Signal<string>;
|
|
@@ -14557,7 +14592,7 @@ export declare class DetailCardComponent {
|
|
|
14557
14592
|
/** Background colour of the footer bar (the `[card-footer]` slot) as any CSS colour. Empty = no colour of its own. */
|
|
14558
14593
|
readonly footerBackground: import("@angular/core").InputSignal<string>;
|
|
14559
14594
|
/** Alignment of the `[card-footer]` content: `'start'` (default, unchanged) or `'end'` = a right-aligned action row with an 8px gap. */
|
|
14560
|
-
readonly footerAlign: import("@angular/core").InputSignal<"
|
|
14595
|
+
readonly footerAlign: import("@angular/core").InputSignal<"end" | "start">;
|
|
14561
14596
|
/** Text colour as any CSS colour (`#fff`, `var(--on-dark)` …). Empty = the default colours. Colours the title, subtitle, chevron and body text. */
|
|
14562
14597
|
readonly textColor: import("@angular/core").InputSignal<string>;
|
|
14563
14598
|
/** false = no header at all (no title, edit button, toggle or divider): the card is only the body, always open. */
|
|
@@ -15229,8 +15264,7 @@ export declare function normalizeHexColor(value: string | null | undefined, allo
|
|
|
15229
15264
|
* - Picking in the native picker with an 8-digit value and `allowAlpha` keeps the existing alpha digits.
|
|
15230
15265
|
*
|
|
15231
15266
|
* Validity API (same as the other ui inputs): `Validator` (error keys `required`, `color`), signals `invalid` /
|
|
15232
|
-
* `errorMessage`, `invalidChange` output, `UiFieldValidity` token. Messages show after
|
|
15233
|
-
* `[showErrors]="true"`; a host `[error]` always wins. Disabled controls are never invalid.
|
|
15267
|
+
* `errorMessage`, `invalidChange` output, `UiFieldValidity` token. Messages (built-in and a host `[error]`) show only after the user left the field; `[showErrors]` alone never reveals an untouched field. Disabled controls are never invalid.
|
|
15234
15268
|
*
|
|
15235
15269
|
* Cross-browser: the native swatch is styled with `-webkit-appearance` and the `::-webkit-color-swatch` / `::-moz-color-swatch`
|
|
15236
15270
|
* pseudo-elements and sits invisibly over our own preview square, so it looks the same in Chrome, Edge, Firefox and Safari.
|
|
@@ -15246,7 +15280,7 @@ export declare class ColorInputComponent implements ControlValueAccessor, Valida
|
|
|
15246
15280
|
readonly hint: import("@angular/core").InputSignal<string>;
|
|
15247
15281
|
/** Host error message; always wins over the built-in message. */
|
|
15248
15282
|
readonly error: import("@angular/core").InputSignal<string>;
|
|
15249
|
-
/**
|
|
15283
|
+
/** The host's "tried to submit" flag (e.g. after a failed Save click). It never reveals a message on a field the user has not left (messages show only after the user left THIS field); switching it from true back to false forgets that the field was left. */
|
|
15250
15284
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
15251
15285
|
/** Accept (and keep) 8-digit `#rrggbbaa` values. */
|
|
15252
15286
|
readonly allowAlpha: import("@angular/core").InputSignal<boolean>;
|
|
@@ -17732,16 +17766,18 @@ export declare class EmailTemplateEditorComponent {
|
|
|
17732
17766
|
readonly bodyError: import("@angular/core").Signal<string>;
|
|
17733
17767
|
/** "Active From / To" only apply when the template is not "all year"; when both are given To may not be before From. */
|
|
17734
17768
|
readonly datesError: import("@angular/core").Signal<string>;
|
|
17735
|
-
/** Errors are held back until the user has had a chance to act: a field is blurred, the message is edited, or Save
|
|
17769
|
+
/** Errors are held back until the user has had a chance to act: a field is blurred, the message is edited or its blocks are left, or the assignments are changed or left. A failed Save (`submitAttempted`) reveals nothing on an untouched field. */
|
|
17736
17770
|
readonly submitAttempted: import("@angular/core").WritableSignal<boolean>;
|
|
17737
17771
|
readonly nameTouched: import("@angular/core").WritableSignal<boolean>;
|
|
17738
17772
|
readonly subjectTouched: import("@angular/core").WritableSignal<boolean>;
|
|
17739
17773
|
readonly nameErrorShown: import("@angular/core").Signal<string>;
|
|
17740
17774
|
readonly subjectErrorShown: import("@angular/core").Signal<string>;
|
|
17775
|
+
/** True once focus left the message blocks (the body error then shows). Editing the message also counts (`bodyEdited`). A failed Save never reveals it. */
|
|
17776
|
+
readonly bodyBlurred: import("@angular/core").WritableSignal<boolean>;
|
|
17741
17777
|
readonly bodyErrorShown: import("@angular/core").Signal<string>;
|
|
17742
17778
|
/** A template must be assigned to at least one automation (only in an app that offers assignments at all). */
|
|
17743
17779
|
readonly assignmentError: import("@angular/core").Signal<string>;
|
|
17744
|
-
/** True once the user has changed an assignment
|
|
17780
|
+
/** True once the user has changed an assignment or focus left the assignments list; a failed Save never sets it, so the message never shows on a control nobody has touched. */
|
|
17745
17781
|
readonly assignmentsTouched: import("@angular/core").WritableSignal<boolean>;
|
|
17746
17782
|
readonly assignmentErrorShown: import("@angular/core").Signal<string>;
|
|
17747
17783
|
readonly canSave: import("@angular/core").Signal<boolean>;
|
|
@@ -17749,6 +17785,11 @@ export declare class EmailTemplateEditorComponent {
|
|
|
17749
17785
|
readonly saveDisabled: import("@angular/core").Signal<boolean>;
|
|
17750
17786
|
/** What is still missing, shown as the tooltip of the disabled Save button ('' when Save is available or the member cannot write). */
|
|
17751
17787
|
readonly saveHint: import("@angular/core").Signal<string>;
|
|
17788
|
+
/** True once the user left a date input; until then the visible hint does not print the dates message (the tooltip still carries it). */
|
|
17789
|
+
readonly datesTouched: import("@angular/core").WritableSignal<boolean>;
|
|
17790
|
+
/** The visible line under Save: the generic "Add a name, a subject, ..." / "Add a shorter name ..." what-is-missing STATUS text of a disabled button (role=status), shown on an untouched form on purpose; it is never a field-specific error message (those wait for their field, and the dates message waits for `datesTouched`). The 'shorter ...' wording is the same generic status, not the field's own "Too long (max N characters)" error.
|
|
17791
|
+
* Details: a dates-only problem is printed only after the date inputs were touched. */
|
|
17792
|
+
readonly saveHintVisible: import("@angular/core").Signal<string>;
|
|
17752
17793
|
private normalizedLink;
|
|
17753
17794
|
/** Why Insert is disabled: nothing for an empty field, a message for an address that is not a link. */
|
|
17754
17795
|
readonly linkUrlError: import("@angular/core").Signal<string>;
|
|
@@ -17765,6 +17806,10 @@ export declare class EmailTemplateEditorComponent {
|
|
|
17765
17806
|
/** The test email was sent: close the dialog. */
|
|
17766
17807
|
closeTestSend(): void;
|
|
17767
17808
|
private applyTemplate;
|
|
17809
|
+
/** Focus left the message blocks for somewhere outside them: the body error may show now. */
|
|
17810
|
+
onBodyFocusOut(event: FocusEvent): void;
|
|
17811
|
+
/** Focus left the assignments list for somewhere outside it: the assignment error may show now. */
|
|
17812
|
+
onAssignmentsFocusOut(event: FocusEvent): void;
|
|
17768
17813
|
onSave(): void;
|
|
17769
17814
|
private snapshot;
|
|
17770
17815
|
private serialize;
|
|
@@ -19426,7 +19471,7 @@ export interface PaymentMethodContext {
|
|
|
19426
19471
|
readonly currency: string;
|
|
19427
19472
|
/** Every field of the panel is valid (amount, date, note, allocation). */
|
|
19428
19473
|
readonly valid: boolean;
|
|
19429
|
-
/**
|
|
19474
|
+
/** Marks the panel as submit-attempted (as a failed Save click does; it reveals no message on a field the user never left) and returns whether the form is valid. Call it before starting a charge. */
|
|
19430
19475
|
validate(): boolean;
|
|
19431
19476
|
/** Clears the whole form (method, amount, note, split, allocation; the date returns to today). */
|
|
19432
19477
|
reset(): void;
|
|
@@ -19572,6 +19617,8 @@ export declare class PaymentSidePanelComponent {
|
|
|
19572
19617
|
readonly allocationMode: import("@angular/core").WritableSignal<string>;
|
|
19573
19618
|
readonly selectedCharges: import("@angular/core").WritableSignal<SelectedCharges>;
|
|
19574
19619
|
readonly touched: import("@angular/core").WritableSignal<boolean>;
|
|
19620
|
+
/** The user ticked / unticked a charge, edited a charge amount or left the charge list. Only then is the allocation message ("Select at least one charge") shown; a failed Save does not reveal it (it still blocks Save via `hasInvalid`). */
|
|
19621
|
+
readonly allocationTouched: import("@angular/core").WritableSignal<boolean>;
|
|
19575
19622
|
readonly submitting: import("@angular/core").WritableSignal<boolean>;
|
|
19576
19623
|
readonly submitError: import("@angular/core").WritableSignal<string>;
|
|
19577
19624
|
readonly announcement: import("@angular/core").WritableSignal<string>;
|
|
@@ -19609,7 +19656,7 @@ export declare class PaymentSidePanelComponent {
|
|
|
19609
19656
|
private readonly terminalAvailable;
|
|
19610
19657
|
/** value -> label of every live method the rendered plugins contribute (the first plugin wins a duplicate value). */
|
|
19611
19658
|
private readonly liveMethods;
|
|
19612
|
-
protected readonly kind: import("@angular/core").Signal<"none" | "
|
|
19659
|
+
protected readonly kind: import("@angular/core").Signal<"none" | "manual" | "live" | "terminal">;
|
|
19613
19660
|
private kindOf;
|
|
19614
19661
|
/** 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. */
|
|
19615
19662
|
readonly methodList: import("@angular/core").Signal<PaymentMethodOption[]>;
|
|
@@ -19631,6 +19678,8 @@ export declare class PaymentSidePanelComponent {
|
|
|
19631
19678
|
private readonly totalPayment;
|
|
19632
19679
|
protected readonly allocation: import("@angular/core").Signal<AllocationCheck>;
|
|
19633
19680
|
private readonly allocationPayload;
|
|
19681
|
+
/** `allocation().general` limited to what the user has interacted with. */
|
|
19682
|
+
protected readonly allocationMessage: import("@angular/core").Signal<string>;
|
|
19634
19683
|
protected readonly hasInvalid: import("@angular/core").Signal<boolean>;
|
|
19635
19684
|
protected readonly canSplit: import("@angular/core").Signal<boolean>;
|
|
19636
19685
|
protected readonly readerOptions: import("@angular/core").Signal<{
|