@forgeroute/ui 0.5.4 → 0.5.5
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-quickbooks.mjs +0 -1
- package/fesm2022/forgeroute-ui-quickbooks.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-square.mjs +0 -1
- package/fesm2022/forgeroute-ui-square.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-stripe.mjs +0 -1
- package/fesm2022/forgeroute-ui-stripe.mjs.map +1 -1
- package/fesm2022/{forgeroute-ui-ui-labels.es-DZlDY40a.mjs → forgeroute-ui-ui-labels.es-CJy5qCse.mjs} +1 -2
- package/fesm2022/{forgeroute-ui-ui-labels.es-DZlDY40a.mjs.map → forgeroute-ui-ui-labels.es-CJy5qCse.mjs.map} +1 -1
- package/fesm2022/forgeroute-ui.mjs +5 -4
- package/fesm2022/forgeroute-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/forgeroute-ui.d.ts +25 -24
package/package.json
CHANGED
package/types/forgeroute-ui.d.ts
CHANGED
|
@@ -2724,7 +2724,6 @@ export declare const UI_DEFAULT_LABELS: {
|
|
|
2724
2724
|
readonly 'paymentAttempt.offline': "You are offline. Reconnect to the internet to pay: nothing was sent.";
|
|
2725
2725
|
readonly 'paymentAttempt.timeout': "Your payment is taking longer than expected. We are checking whether it went through: do not pay again.";
|
|
2726
2726
|
readonly 'paymentAttempt.offlineInFlight': "You went offline while your payment was being sent. We are checking whether it went through: do not pay again.";
|
|
2727
|
-
readonly 'paymentAttempt.succeededAfterCheck': "Your payment went through. Thank you.";
|
|
2728
2727
|
readonly 'paymentAttempt.failedAfterCheck': "The earlier payment attempt did not go through. You can try again.";
|
|
2729
2728
|
readonly 'paymentAttempt.authRequired': "Your bank needs to verify this payment. Complete the verification window and do not close it.";
|
|
2730
2729
|
readonly 'paymentAttempt.authAbandoned': "The verification was not completed. We are checking whether the payment went through before you can try again.";
|
|
@@ -3565,7 +3564,7 @@ export declare class SelectComponent implements ControlValueAccessor, Validator,
|
|
|
3565
3564
|
readonly error: import("@angular/core").InputSignal<string>;
|
|
3566
3565
|
/** 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. */
|
|
3567
3566
|
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
3568
|
-
readonly size: import("@angular/core").InputSignal<"
|
|
3567
|
+
readonly size: import("@angular/core").InputSignal<"default" | "sm">;
|
|
3569
3568
|
readonly _disabledInput: import("@angular/core").InputSignal<boolean>;
|
|
3570
3569
|
private readonly _cvaDisabled;
|
|
3571
3570
|
protected readonly disabled: import("@angular/core").Signal<boolean>;
|
|
@@ -4862,7 +4861,7 @@ export declare class SidePanelComponent implements OnDestroy {
|
|
|
4862
4861
|
readonly cancelLabel: import("@angular/core").Signal<string>;
|
|
4863
4862
|
/** Right-aligned primary action button label. Empty string = hidden. */
|
|
4864
4863
|
readonly primaryLabel: import("@angular/core").InputSignal<string>;
|
|
4865
|
-
readonly primaryVariant: import("@angular/core").InputSignal<"
|
|
4864
|
+
readonly primaryVariant: import("@angular/core").InputSignal<"warning" | "primary" | "danger">;
|
|
4866
4865
|
readonly primaryLoading: import("@angular/core").InputSignal<boolean>;
|
|
4867
4866
|
readonly primaryDisabled: import("@angular/core").InputSignal<boolean>;
|
|
4868
4867
|
/** `data-testid` of the Cancel button; none when empty (default). */
|
|
@@ -5773,7 +5772,7 @@ export declare class AudioPlayerComponent {
|
|
|
5773
5772
|
/** Accessible name of the player. */
|
|
5774
5773
|
readonly ariaLabel: import("@angular/core").InputSignal<string>;
|
|
5775
5774
|
/** How much to load before play: 'metadata' (default), 'auto' or 'none'. */
|
|
5776
|
-
readonly preload: import("@angular/core").InputSignal<"
|
|
5775
|
+
readonly preload: import("@angular/core").InputSignal<"auto" | "none" | "metadata">;
|
|
5777
5776
|
/** Fires when the browser can't load or decode the source. */
|
|
5778
5777
|
readonly playbackError: import("@angular/core").OutputEmitterRef<void>;
|
|
5779
5778
|
protected readonly failed: import("@angular/core").WritableSignal<boolean>;
|
|
@@ -5861,7 +5860,7 @@ export declare class TooltipDirective {
|
|
|
5861
5860
|
/** Tooltip text; empty or null disables the tooltip. */
|
|
5862
5861
|
readonly uiTooltip: import("@angular/core").InputSignal<string | null | undefined>;
|
|
5863
5862
|
/** Preferred side; flips to the other side when there is no room. */
|
|
5864
|
-
readonly tooltipPosition: import("@angular/core").InputSignal<"
|
|
5863
|
+
readonly tooltipPosition: import("@angular/core").InputSignal<"top" | "bottom">;
|
|
5865
5864
|
private readonly host;
|
|
5866
5865
|
private readonly doc;
|
|
5867
5866
|
private bubble;
|
|
@@ -6978,7 +6977,7 @@ export declare class CheckboxComponent implements ControlValueAccessor, Validato
|
|
|
6978
6977
|
* 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.
|
|
6979
6978
|
* Default null: plain label text, exactly as before. Single mode only.
|
|
6980
6979
|
*/
|
|
6981
|
-
readonly headingLevel: import("@angular/core").InputSignal<1 |
|
|
6980
|
+
readonly headingLevel: import("@angular/core").InputSignal<1 | 4 | 2 | 3 | 5 | 6 | null>;
|
|
6982
6981
|
readonly indeterminate: import("@angular/core").InputSignal<boolean>;
|
|
6983
6982
|
readonly checked: import("@angular/core").ModelSignal<boolean>;
|
|
6984
6983
|
/**
|
|
@@ -7413,7 +7412,7 @@ export declare class StepperComponent {
|
|
|
7413
7412
|
* its circle, one continuous line behind the circles that fills as steps complete; a complete step shows a check, the current step an
|
|
7414
7413
|
* accent ring with a dot, an upcoming step an empty circle (no numbers). Circles are 40px (32px with `size="sm"`).
|
|
7415
7414
|
*/
|
|
7416
|
-
readonly labelPosition: import("@angular/core").InputSignal<"
|
|
7415
|
+
readonly labelPosition: import("@angular/core").InputSignal<"below" | "beside">;
|
|
7417
7416
|
/** Viewport width in px below which a horizontal stepper is drawn vertical (labels beside the circles), e.g. `640`. null (default) = never. */
|
|
7418
7417
|
readonly stackBelow: import("@angular/core").InputSignal<number | null>;
|
|
7419
7418
|
/** CSS length (e.g. `10.5rem`): horizontal only - the list gets `min-width: calc(<step count> * <value>)`. Empty (default) = no minimum. */
|
|
@@ -7445,7 +7444,7 @@ export declare class StepperComponent {
|
|
|
7445
7444
|
protected readonly rows: import("@angular/core").Signal<{
|
|
7446
7445
|
step: StepperStep;
|
|
7447
7446
|
index: number;
|
|
7448
|
-
state: "
|
|
7447
|
+
state: "current" | "complete" | "upcoming";
|
|
7449
7448
|
error: boolean;
|
|
7450
7449
|
errorMessage: string;
|
|
7451
7450
|
selectable: boolean;
|
|
@@ -8075,7 +8074,7 @@ export declare class ButtonComponent {
|
|
|
8075
8074
|
* `ghost-start`: a ghost button for list / section toggles - a full-width row with its content aligned to the start, transparent
|
|
8076
8075
|
* background, hover tint and the normal focus ring. Pair it with `ariaExpanded` / `ariaPressed`; the label may contain a heading element.
|
|
8077
8076
|
*/
|
|
8078
|
-
readonly variant: import("@angular/core").InputSignal<"
|
|
8077
|
+
readonly variant: import("@angular/core").InputSignal<"warning" | "link" | "primary" | "danger" | "secondary" | "ghost" | "tab" | "ghost-start" | "icon" | "icon-danger">;
|
|
8079
8078
|
/** 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`). */
|
|
8080
8079
|
readonly routerLink: import("@angular/core").InputSignal<string | readonly unknown[] | null>;
|
|
8081
8080
|
/** Query params of the `routerLink` (e.g. `{ section: 'deal-defaults' }`). */
|
|
@@ -8096,7 +8095,7 @@ export declare class ButtonComponent {
|
|
|
8096
8095
|
*/
|
|
8097
8096
|
readonly href: import("@angular/core").InputSignal<string | null>;
|
|
8098
8097
|
/** Where to open the `href` (`_blank` = a new tab). */
|
|
8099
|
-
readonly target: import("@angular/core").InputSignal<"
|
|
8098
|
+
readonly target: import("@angular/core").InputSignal<"_blank" | "_self" | "_parent" | "_top" | null>;
|
|
8100
8099
|
/** `rel` of the `href` link. A `_blank` target always gets `noopener noreferrer` added. */
|
|
8101
8100
|
readonly rel: import("@angular/core").InputSignal<string | null>;
|
|
8102
8101
|
/** The href when it is allowed (http, https, mailto, tel, sms or a relative URL), else null. */
|
|
@@ -8120,7 +8119,7 @@ export declare class ButtonComponent {
|
|
|
8120
8119
|
private readonly _narrow;
|
|
8121
8120
|
readonly color: import("@angular/core").InputSignal<string | undefined>;
|
|
8122
8121
|
readonly active: import("@angular/core").InputSignal<boolean>;
|
|
8123
|
-
readonly size: import("@angular/core").InputSignal<"
|
|
8122
|
+
readonly size: import("@angular/core").InputSignal<"xs" | "sm" | "md" | "lg">;
|
|
8124
8123
|
readonly type: import("@angular/core").InputSignal<"button" | "reset" | "submit">;
|
|
8125
8124
|
readonly disabled: import("@angular/core").InputSignal<boolean>;
|
|
8126
8125
|
readonly loading: import("@angular/core").InputSignal<boolean>;
|
|
@@ -8766,7 +8765,7 @@ export declare class ImportSourceGridComponent {
|
|
|
8766
8765
|
/** The `value` of the picked source (highlighted). `tile` only: the `card` appearance does not keep a selection. */
|
|
8767
8766
|
readonly selected: import("@angular/core").InputSignal<string>;
|
|
8768
8767
|
/** `tile`: the compact buttons of the import window. `card`: one `ui-detail-card` per source with its own select button (used on a page). */
|
|
8769
|
-
readonly appearance: import("@angular/core").InputSignal<"
|
|
8768
|
+
readonly appearance: import("@angular/core").InputSignal<"tile" | "card">;
|
|
8770
8769
|
/** `card`: disables every card's button (for example while the page is saving). */
|
|
8771
8770
|
readonly disabled: import("@angular/core").InputSignal<boolean>;
|
|
8772
8771
|
/** `card`: the text of each card's button. */
|
|
@@ -9264,7 +9263,7 @@ export declare class TextInputComponent implements ControlValueAccessor, Validat
|
|
|
9264
9263
|
* `search`, `text`, `none`). Empty (default) = the browser's default for the field, except `type="tel"`, which keeps `tel`.
|
|
9265
9264
|
* It only picks the keyboard; it does not restrict what can be typed or pasted.
|
|
9266
9265
|
*/
|
|
9267
|
-
readonly inputmode: import("@angular/core").InputSignal<"" | "
|
|
9266
|
+
readonly inputmode: import("@angular/core").InputSignal<"" | "email" | "text" | "decimal" | "none" | "search" | "tel" | "url" | "numeric">;
|
|
9268
9267
|
readonly readonly: import("@angular/core").InputSignal<boolean>;
|
|
9269
9268
|
readonly hint: import("@angular/core").InputSignal<string>;
|
|
9270
9269
|
/** 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. */
|
|
@@ -11084,7 +11083,7 @@ export declare class FormSectionComponent {
|
|
|
11084
11083
|
}, {}, never, ["*"], true, never>;
|
|
11085
11084
|
}
|
|
11086
11085
|
export declare class FormRowComponent {
|
|
11087
|
-
readonly cols: import("@angular/core").InputSignal<1 |
|
|
11086
|
+
readonly cols: import("@angular/core").InputSignal<1 | 4 | 2 | 3>;
|
|
11088
11087
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormRowComponent, never>;
|
|
11089
11088
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormRowComponent, "ui-form-row", never, {
|
|
11090
11089
|
"cols": {
|
|
@@ -11101,7 +11100,7 @@ export declare class FormRowComponent {
|
|
|
11101
11100
|
* child simply takes the full width. Keep a numeric span within the row's `cols` (use `all` for the whole row).
|
|
11102
11101
|
*/
|
|
11103
11102
|
export declare class FormColSpanDirective {
|
|
11104
|
-
readonly uiColSpan: import("@angular/core").InputSignal<"" |
|
|
11103
|
+
readonly uiColSpan: import("@angular/core").InputSignal<"" | 2 | 3 | "2" | "3" | "all">;
|
|
11105
11104
|
protected readonly _class: import("@angular/core").Signal<string>;
|
|
11106
11105
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormColSpanDirective, never>;
|
|
11107
11106
|
static ɵdir: i0.ɵɵDirectiveDeclaration<FormColSpanDirective, "[uiColSpan]", never, {
|
|
@@ -15220,7 +15219,7 @@ export declare class PdfHotspotComponent {
|
|
|
15220
15219
|
/** `ready`: clickable; `blocked`: disabled (a prerequisite is missing); `signed`: shows `image`. */
|
|
15221
15220
|
readonly state: import("@angular/core").InputSignal<"ready" | "blocked" | "signed">;
|
|
15222
15221
|
/** `warning` gives the ready state an amber look (e.g. for initials), default is blue. */
|
|
15223
|
-
readonly tone: import("@angular/core").InputSignal<"
|
|
15222
|
+
readonly tone: import("@angular/core").InputSignal<"warning" | "primary">;
|
|
15224
15223
|
/** Text of the ready button (e.g. "Sign Here"). */
|
|
15225
15224
|
readonly labelInput: import("@angular/core").InputSignal<string | null>;
|
|
15226
15225
|
readonly label: import("@angular/core").Signal<string>;
|
|
@@ -15360,7 +15359,7 @@ export declare class DetailCardComponent {
|
|
|
15360
15359
|
/** true (default) = the title is displayed in capitals (CSS only); false = shown as written. The text, aria-label and heading name are never changed. */
|
|
15361
15360
|
readonly uppercaseTitle: import("@angular/core").InputSignal<boolean>;
|
|
15362
15361
|
/** 1-6 makes the title a real heading for screen readers (role=heading, aria-level); null keeps it plain text. */
|
|
15363
|
-
readonly headingLevel: import("@angular/core").InputSignal<1 |
|
|
15362
|
+
readonly headingLevel: import("@angular/core").InputSignal<1 | 4 | 2 | 3 | 5 | 6 | null>;
|
|
15364
15363
|
/** Optional id for the title text; the card is then labelled by it. Without it the title is the card's aria-label. */
|
|
15365
15364
|
readonly titleId: import("@angular/core").InputSignal<string>;
|
|
15366
15365
|
/** Accessible name of the card when the header gives none (no header, or no title). A visible title wins; blank = no name. */
|
|
@@ -18162,7 +18161,7 @@ export declare class SetupWizardComponent {
|
|
|
18162
18161
|
protected customHintId(): string;
|
|
18163
18162
|
protected readonly importBlocked: import("@angular/core").Signal<boolean>;
|
|
18164
18163
|
/** The step's own two parts (`splitLayout`) show as two tabs, one card at a time; this is the open one (it starts on the app's part on every visit). */
|
|
18165
|
-
protected readonly splitTab: import("@angular/core").WritableSignal<"
|
|
18164
|
+
protected readonly splitTab: import("@angular/core").WritableSignal<"extra" | "main">;
|
|
18166
18165
|
protected readonly splitTabs: import("@angular/core").Signal<{
|
|
18167
18166
|
key: string;
|
|
18168
18167
|
label: string;
|
|
@@ -20455,7 +20454,7 @@ export declare class PaymentSidePanelComponent {
|
|
|
20455
20454
|
private readonly terminalAvailable;
|
|
20456
20455
|
/** value -> label of every live method the rendered plugins contribute (the first plugin wins a duplicate value). */
|
|
20457
20456
|
private readonly liveMethods;
|
|
20458
|
-
protected readonly kind: import("@angular/core").Signal<"none" | "
|
|
20457
|
+
protected readonly kind: import("@angular/core").Signal<"none" | "manual" | "live" | "terminal">;
|
|
20459
20458
|
private kindOf;
|
|
20460
20459
|
/** 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. */
|
|
20461
20460
|
readonly methodList: import("@angular/core").Signal<PaymentMethodOption[]>;
|
|
@@ -20744,17 +20743,19 @@ export interface PaymentAttemptResult<T> {
|
|
|
20744
20743
|
* Every machine-readable code of the payments service's money endpoints, mapped explicitly (three groups below). SOURCE: host-kit/contract/payment-errors.json of the forgeroute-payments service (the library
|
|
20745
20744
|
* cannot import it: these tables repeat its codes, and `payment-errors.contract.spec.ts` embeds a verbatim copy and fails when a code has no row; a new code there must be added here).
|
|
20746
20745
|
* - NO CHARGE was made (`not_sent`: release, the key is kept): `events_backlog` (new payments are paused), `exceeds_amount_due`, `already_charged_today`, `merchant_not_ready`, `reconnect_required` and
|
|
20747
|
-
* `processor_account_changed` (the merchant's processor connection needs attention), `reference_changed` (the balance changed since the link was made), `link_in_use` and `link_already_paid` (payment links)
|
|
20746
|
+
* `processor_account_changed` (the merchant's processor connection needs attention), `reference_changed` (the balance changed since the link was made), `link_in_use` and `link_already_paid` (payment links),
|
|
20747
|
+
* `reader_busy` (a card reader that still holds a payment: the DELETE of the reader was refused, nothing charged);
|
|
20748
20748
|
* - the attempt exists or runs (`unknown`: look it up by its key, never start another): `payment_in_flight`, `request_in_progress`, `duplicate_suspected` (an identical payment was made moments ago),
|
|
20749
20749
|
* `idempotency_in_progress`, `idempotency_key_reused`, `idempotency_error`, `payment_intent_unexpected_state`;
|
|
20750
20750
|
* - the request FAILED for good (`failure`, see {@link PAYMENT_FAILURE_CODES}): `attempt_failed_use_new_key` (a replay of a FAILED attempt, the epoch moves), the capture codes, `link_expired`, `link_cancelled`,
|
|
20751
|
-
* `not_supported_by_processor`, and four of the six verify-microdeposits codes (`verification_amounts_mismatch`,
|
|
20751
|
+
* `not_supported_by_processor`, `location_required` (Square connect: the seller has several locations, a definitive 400), and four of the six verify-microdeposits codes (`verification_amounts_mismatch`,
|
|
20752
|
+
* `verification_attempts_exceeded`, `verification_timeout`, `verification_failed`);
|
|
20752
20753
|
* - `not_awaiting_verification` and `verification_rate_limited` (verify-microdeposits call only) are `unknown` too: the payment may already be verified / processing, or the try only has to wait.
|
|
20753
20754
|
*/
|
|
20754
20755
|
export declare const PAYMENT_NO_CHARGE_CODES: readonly string[];
|
|
20755
20756
|
/**
|
|
20756
20757
|
* Codes that are a DEFINITIVE failure of the request, never unknown: the failed-attempt replay (the epoch moves), the capture codes of the staff API (`already_captured`, `exceeds_authorized`, `not_capturable`, 409) and the payment-link /
|
|
20757
|
-
* processor refusals (`link_expired`, `link_cancelled` = 410, `not_supported_by_processor` = 400). Source: host-kit/contract/payment-errors.json.
|
|
20758
|
+
* processor refusals (`link_expired`, `link_cancelled` = 410, `not_supported_by_processor` = 400), the four definitive verify-microdeposits codes and `location_required` (Square connect, 400). Source: host-kit/contract/payment-errors.json.
|
|
20758
20759
|
*/
|
|
20759
20760
|
export declare const PAYMENT_FAILURE_CODES: readonly string[];
|
|
20760
20761
|
/** Is this host error the payments service's "this attempt failed before, use a new attemptKey" answer (code `attempt_failed_use_new_key`)? */
|
|
@@ -20771,9 +20772,9 @@ export declare function isFinalPaymentRefusal(error: unknown): boolean;
|
|
|
20771
20772
|
/**
|
|
20772
20773
|
* Classifies a failed HOST call (the charge request) for `run()`:
|
|
20773
20774
|
* - `'not_sent'`: nothing was charged: the request never left (the offline layer refused it: `OfflineBlockedError` / `offlineBlocked: true`) or the payments service refused it with one of its NO-CHARGE codes
|
|
20774
|
-
* (`events_backlog`, `exceeds_amount_due`, `already_charged_today`, `merchant_not_ready`, `reconnect_required`, `processor_account_changed`, `reference_changed`, `link_in_use`, `link_already_paid`, also as a `409`): release with the key kept, show the message;
|
|
20775
|
+
* (`events_backlog`, `exceeds_amount_due`, `already_charged_today`, `merchant_not_ready`, `reconnect_required`, `processor_account_changed`, `reference_changed`, `link_in_use`, `link_already_paid`, `reader_busy`, also as a `409`): release with the key kept, show the message;
|
|
20775
20776
|
* - `'failure'` for the codes of {@link PAYMENT_FAILURE_CODES} (`attempt_failed_use_new_key`: a replay of a FAILED attempt, even as a `409`, the epoch moves so the next click derives a new key; the capture codes
|
|
20776
|
-
* `already_captured` / `exceeds_authorized` / `not_capturable`; `link_expired`, `link_cancelled`, `not_supported_by_processor`);
|
|
20777
|
+
* `already_captured` / `exceeds_authorized` / `not_capturable`; `link_expired`, `link_cancelled`, `not_supported_by_processor`, `location_required`, and four verify-microdeposits codes: see the list);
|
|
20777
20778
|
* - `'unknown'`: it may have reached the processor: no answer (status `0`, a network `TypeError`, an abort / timeout), `408`, `425`, `429`, `5xx`, **any other `409`** (a service that answers "already in flight / duplicate
|
|
20778
20779
|
* suspected / idempotency in progress" must never make the payer pay again), a body or error `code` naming an idempotency / in-flight conflict, an error flagged `unknown: true`, and **an error that carries NO numeric
|
|
20779
20780
|
* status** (a wrapped `Error`, an error object of a client library): nothing proves it was refused, so only a recognised definitive code decides it;
|