@forgeroute/ui 0.5.4 → 0.5.6
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 +7 -2
- package/fesm2022/forgeroute-ui-map.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-messaging.mjs +72 -10
- package/fesm2022/forgeroute-ui-messaging.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-pdf.mjs +2 -2
- package/fesm2022/forgeroute-ui-pdf.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-quickbooks.mjs +7 -2
- package/fesm2022/forgeroute-ui-quickbooks.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-square.mjs +7 -2
- 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 +47 -24
- package/fesm2022/forgeroute-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/forgeroute-ui-messaging.d.ts +33 -0
- package/types/forgeroute-ui.d.ts +29 -23
package/package.json
CHANGED
|
@@ -1143,6 +1143,12 @@ declare class SendEmailComponent implements OnInit {
|
|
|
1143
1143
|
mergeWarnings: string[];
|
|
1144
1144
|
readonly savingEmail: import("@angular/core").WritableSignal<boolean>;
|
|
1145
1145
|
readonly modeTabs: import("@angular/core").Signal<PillTab[]>;
|
|
1146
|
+
/**
|
|
1147
|
+
* Loads the company's market values (`GET /service-areas?size=100`) for the {{area}}, {{median_price}}, {{dom}} and {{new_listings}} merge tags.
|
|
1148
|
+
* Default true (real-estate apps have the endpoint). An app without that endpoint passes false: no request is made and those tags are
|
|
1149
|
+
* prompted like any other unknown field. A failed request is ignored the same way (the tags stay prompted), never an unhandled error.
|
|
1150
|
+
*/
|
|
1151
|
+
readonly marketValues: import("@angular/core").InputSignal<boolean>;
|
|
1146
1152
|
/** Market values (`area`, `median_price`, `dom`, `new_listings`) — only the ones `/service-areas` returned. */
|
|
1147
1153
|
private marketVars;
|
|
1148
1154
|
ngOnInit(): void;
|
|
@@ -1441,6 +1447,11 @@ declare class SendEmailComponent implements OnInit {
|
|
|
1441
1447
|
"required": false;
|
|
1442
1448
|
"isSignal": true;
|
|
1443
1449
|
};
|
|
1450
|
+
"marketValues": {
|
|
1451
|
+
"alias": "marketValues";
|
|
1452
|
+
"required": false;
|
|
1453
|
+
"isSignal": true;
|
|
1454
|
+
};
|
|
1444
1455
|
}, {
|
|
1445
1456
|
"sent": "sent";
|
|
1446
1457
|
"bulkResult": "bulkResult";
|
|
@@ -1726,6 +1737,12 @@ declare class SendTextComponent implements OnInit {
|
|
|
1726
1737
|
readonly mediaUploading: import("@angular/core").WritableSignal<boolean>;
|
|
1727
1738
|
readonly savingPhone: import("@angular/core").WritableSignal<boolean>;
|
|
1728
1739
|
readonly modeTabs: import("@angular/core").Signal<PillTab[]>;
|
|
1740
|
+
/**
|
|
1741
|
+
* Loads the company's market values (`GET /service-areas?size=100`) for the {{area}}, {{median_price}}, {{dom}} and {{new_listings}} merge tags.
|
|
1742
|
+
* Default true (real-estate apps have the endpoint). An app without that endpoint passes false: no request is made and those tags are
|
|
1743
|
+
* prompted like any other unknown field. A failed request is ignored the same way (the tags stay prompted), never an unhandled error.
|
|
1744
|
+
*/
|
|
1745
|
+
readonly marketValues: import("@angular/core").InputSignal<boolean>;
|
|
1729
1746
|
/** Market values (`area`, `median_price`, `dom`, `new_listings`) — only the ones `/service-areas` returned. */
|
|
1730
1747
|
private marketVars;
|
|
1731
1748
|
ngOnInit(): void;
|
|
@@ -1937,6 +1954,11 @@ declare class SendTextComponent implements OnInit {
|
|
|
1937
1954
|
"required": false;
|
|
1938
1955
|
"isSignal": true;
|
|
1939
1956
|
};
|
|
1957
|
+
"marketValues": {
|
|
1958
|
+
"alias": "marketValues";
|
|
1959
|
+
"required": false;
|
|
1960
|
+
"isSignal": true;
|
|
1961
|
+
};
|
|
1940
1962
|
}, {
|
|
1941
1963
|
"sent": "sent";
|
|
1942
1964
|
"bulkResult": "bulkResult";
|
|
@@ -2030,6 +2052,12 @@ export declare class SendMessagePanelComponent {
|
|
|
2030
2052
|
readonly documentsEnabled: import("@angular/core").InputSignal<boolean>;
|
|
2031
2053
|
/** Email tab only: adds a CC field; the addresses are sent as `SendEmailPayload.cc`. */
|
|
2032
2054
|
readonly showCc: import("@angular/core").InputSignal<boolean>;
|
|
2055
|
+
/**
|
|
2056
|
+
* Passed to both forms. Loads the company's market values (`GET /service-areas?size=100`) for the {{area}}, {{median_price}}, {{dom}} and {{new_listings}} merge tags.
|
|
2057
|
+
* Default true (real-estate apps have the endpoint). An app without that endpoint passes false: no request is made and those tags are
|
|
2058
|
+
* prompted like any other unknown field. A failed request is ignored the same way (the tags stay prompted), never an unhandled error.
|
|
2059
|
+
*/
|
|
2060
|
+
readonly marketValues: import("@angular/core").InputSignal<boolean>;
|
|
2033
2061
|
/**
|
|
2034
2062
|
* `'contact'` (default) = the message goes by email or text to the contact's address. `'in-app'` = the message is NOT delivered by email or
|
|
2035
2063
|
* text but handed to the host's `sendMessage` function (e.g. a client portal message to the agent): the contact needs no email or phone, the
|
|
@@ -2340,6 +2368,11 @@ export declare class SendMessagePanelComponent {
|
|
|
2340
2368
|
"required": false;
|
|
2341
2369
|
"isSignal": true;
|
|
2342
2370
|
};
|
|
2371
|
+
"marketValues": {
|
|
2372
|
+
"alias": "marketValues";
|
|
2373
|
+
"required": false;
|
|
2374
|
+
"isSignal": true;
|
|
2375
|
+
};
|
|
2343
2376
|
"recipientMode": {
|
|
2344
2377
|
"alias": "recipientMode";
|
|
2345
2378
|
"required": false;
|
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.";
|
|
@@ -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>;
|
|
@@ -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
|
/**
|
|
@@ -9255,7 +9254,7 @@ export declare class TextInputComponent implements ControlValueAccessor, Validat
|
|
|
9255
9254
|
readonly passwordRequirements: import("@angular/core").InputSignal<boolean>;
|
|
9256
9255
|
/** Rules for `passwordRequirements`; default = the library's five rules (8+ characters, upper, lower, digit, special). */
|
|
9257
9256
|
readonly passwordRules: import("@angular/core").InputSignal<readonly PasswordRule[] | undefined>;
|
|
9258
|
-
readonly type: import("@angular/core").InputSignal<"number" | "email" | "text" | "
|
|
9257
|
+
readonly type: import("@angular/core").InputSignal<"number" | "email" | "text" | "tel" | "password" | "url">;
|
|
9259
9258
|
readonly maxlength: import("@angular/core").InputSignal<number | undefined>;
|
|
9260
9259
|
readonly required: import("@angular/core").InputSignal<boolean>;
|
|
9261
9260
|
readonly autocomplete: import("@angular/core").InputSignal<string>;
|
|
@@ -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" | "search" | "none" | "text" | "tel" | "numeric" | "decimal" | "url">;
|
|
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. */
|
|
@@ -9336,7 +9335,7 @@ export declare class TextInputComponent implements ControlValueAccessor, Validat
|
|
|
9336
9335
|
protected readonly _stepAttr: import("@angular/core").Signal<string | null>;
|
|
9337
9336
|
protected readonly _revealable: import("@angular/core").Signal<boolean>;
|
|
9338
9337
|
protected readonly _shown: import("@angular/core").WritableSignal<boolean>;
|
|
9339
|
-
protected readonly _inputType: import("@angular/core").Signal<"number" | "email" | "text" | "
|
|
9338
|
+
protected readonly _inputType: import("@angular/core").Signal<"number" | "email" | "text" | "tel" | "password" | "url">;
|
|
9340
9339
|
protected readonly _eyePath: string;
|
|
9341
9340
|
protected readonly _eyeOffPath: string;
|
|
9342
9341
|
protected readonly _showRequirements: import("@angular/core").Signal<boolean>;
|
|
@@ -9955,7 +9954,7 @@ export declare class CopyFieldComponent implements OnDestroy {
|
|
|
9955
9954
|
/** Neither the Clipboard API nor the fallback could copy. */
|
|
9956
9955
|
readonly copyFailed: import("@angular/core").OutputEmitterRef<void>;
|
|
9957
9956
|
protected readonly _id: string;
|
|
9958
|
-
protected readonly _state: import("@angular/core").WritableSignal<"
|
|
9957
|
+
protected readonly _state: import("@angular/core").WritableSignal<"failed" | "idle" | "copied">;
|
|
9959
9958
|
protected readonly _announcement: import("@angular/core").Signal<string>;
|
|
9960
9959
|
protected readonly _buttonName: import("@angular/core").Signal<string>;
|
|
9961
9960
|
protected readonly _describedBy: import("@angular/core").Signal<string | null>;
|
|
@@ -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, {
|
|
@@ -12417,9 +12416,9 @@ export declare class ChipGroupComponent {
|
|
|
12417
12416
|
readonly spaceAbove: import("@angular/core").InputSignal<"none" | "sm" | "md">;
|
|
12418
12417
|
/** Space below the chip group. */
|
|
12419
12418
|
readonly spaceBelow: import("@angular/core").InputSignal<"none" | "sm" | "md">;
|
|
12420
|
-
protected readonly _gap: import("@angular/core").Signal<"
|
|
12421
|
-
protected readonly _spaceAbove: import("@angular/core").Signal<"0" | "
|
|
12422
|
-
protected readonly _spaceBelow: import("@angular/core").Signal<"0" | "
|
|
12419
|
+
protected readonly _gap: import("@angular/core").Signal<"6px" | "12px" | "8px">;
|
|
12420
|
+
protected readonly _spaceAbove: import("@angular/core").Signal<"0" | "6px" | "12px">;
|
|
12421
|
+
protected readonly _spaceBelow: import("@angular/core").Signal<"0" | "6px" | "12px">;
|
|
12423
12422
|
static ɵfac: i0.ɵɵFactoryDeclaration<ChipGroupComponent, never>;
|
|
12424
12423
|
static ɵcmp: i0.ɵɵComponentDeclaration<ChipGroupComponent, "ui-chip-group", never, {
|
|
12425
12424
|
"gap": {
|
|
@@ -12879,7 +12878,7 @@ export declare class IconComponent {
|
|
|
12879
12878
|
readonly ariaLabel: import("@angular/core").InputSignal<string>;
|
|
12880
12879
|
/** Icon size in px. */
|
|
12881
12880
|
readonly size: import("@angular/core").InputSignal<number>;
|
|
12882
|
-
readonly variant: import("@angular/core").InputSignal<"
|
|
12881
|
+
readonly variant: import("@angular/core").InputSignal<"danger" | "default">;
|
|
12883
12882
|
readonly disabled: import("@angular/core").InputSignal<boolean>;
|
|
12884
12883
|
/** 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. */
|
|
12885
12884
|
readonly loading: import("@angular/core").InputSignal<boolean>;
|
|
@@ -13383,7 +13382,7 @@ export declare class AddressInputComponent implements ControlValueAccessor, Vali
|
|
|
13383
13382
|
* the object. `valueChange` always emits the object. A written string is read with `parseAddressValue` for display only: the control keeps
|
|
13384
13383
|
* the original text until the user edits a field (so a text the parser cannot split is not rewritten on load).
|
|
13385
13384
|
*/
|
|
13386
|
-
readonly valueFormat: import("@angular/core").InputSignal<"object" | "
|
|
13385
|
+
readonly valueFormat: import("@angular/core").InputSignal<"object" | "auto" | "text">;
|
|
13387
13386
|
/** 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. */
|
|
13388
13387
|
readonly zipPattern: import("@angular/core").InputSignal<RegExp | null>;
|
|
13389
13388
|
/** Message shown when the ZIP breaks `zipPattern`. */
|
|
@@ -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. */
|
|
@@ -15374,7 +15373,7 @@ export declare class DetailCardComponent {
|
|
|
15374
15373
|
/** Background colour of the footer bar (the `[card-footer]` slot) as any CSS colour. Empty = no colour of its own. */
|
|
15375
15374
|
readonly footerBackground: import("@angular/core").InputSignal<string>;
|
|
15376
15375
|
/** Alignment of the `[card-footer]` content: `'start'` (default, unchanged) or `'end'` = a right-aligned action row with an 8px gap. */
|
|
15377
|
-
readonly footerAlign: import("@angular/core").InputSignal<"
|
|
15376
|
+
readonly footerAlign: import("@angular/core").InputSignal<"end" | "start">;
|
|
15378
15377
|
/** Text colour as any CSS colour (`#fff`, `var(--on-dark)` …). Empty = the default colours. Colours the title, subtitle, chevron and body text. */
|
|
15379
15378
|
readonly textColor: import("@angular/core").InputSignal<string>;
|
|
15380
15379
|
/** false = no header at all (no title, edit button, toggle or divider): the card is only the body, always open. */
|
|
@@ -19245,7 +19244,7 @@ export declare function conversationDateLabel(iso: string, now?: Date, ui?: UiLa
|
|
|
19245
19244
|
/** First letter of the name, upper case, for the avatar ('?' for a blank name). */
|
|
19246
19245
|
export declare function conversationInitial(name: string | null | undefined): string;
|
|
19247
19246
|
/** Each message with the date separator that goes above it ('' when it shares the day of the previous message). */
|
|
19248
|
-
export declare function groupMessagesByDay(messages: readonly ConversationMessage[], now?: Date): ConversationMessageRow[];
|
|
19247
|
+
export declare function groupMessagesByDay(messages: readonly ConversationMessage[], now?: Date, ui?: UiLabelsService): ConversationMessageRow[];
|
|
19249
19248
|
/** What the status mark beside an outbound message says to a screen reader ('' for a status that shows nothing). */
|
|
19250
19249
|
export declare function conversationMessageStatusLabel(status: string | null | undefined): string;
|
|
19251
19250
|
/** The mark shown beside an outbound message: ticks for sent / delivered, the word for the rest. */
|
|
@@ -20423,6 +20422,8 @@ export declare class PaymentSidePanelComponent {
|
|
|
20423
20422
|
protected readonly exclusive: import("@angular/core").WritableSignal<boolean>;
|
|
20424
20423
|
private readonly pluginPrimary;
|
|
20425
20424
|
private cancelHook;
|
|
20425
|
+
/** The method value that was a live plugin method when last checked ('' = none), to notice the plugin disappearing under a selected method. */
|
|
20426
|
+
private liveMethodValue;
|
|
20426
20427
|
private completed;
|
|
20427
20428
|
/** The plugin's last report was `verification` (a bank payment that has NOT started): its "Done" is announced as "payment not started", never as "Payment recorded". */
|
|
20428
20429
|
private verificationReported;
|
|
@@ -20455,7 +20456,7 @@ export declare class PaymentSidePanelComponent {
|
|
|
20455
20456
|
private readonly terminalAvailable;
|
|
20456
20457
|
/** value -> label of every live method the rendered plugins contribute (the first plugin wins a duplicate value). */
|
|
20457
20458
|
private readonly liveMethods;
|
|
20458
|
-
protected readonly kind: import("@angular/core").Signal<"none" | "
|
|
20459
|
+
protected readonly kind: import("@angular/core").Signal<"none" | "manual" | "live" | "terminal">;
|
|
20459
20460
|
private kindOf;
|
|
20460
20461
|
/** 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
20462
|
readonly methodList: import("@angular/core").Signal<PaymentMethodOption[]>;
|
|
@@ -20493,6 +20494,8 @@ export declare class PaymentSidePanelComponent {
|
|
|
20493
20494
|
protected readonly primaryLoading: import("@angular/core").Signal<boolean>;
|
|
20494
20495
|
protected readonly primaryDisabled: import("@angular/core").Signal<boolean>;
|
|
20495
20496
|
constructor();
|
|
20497
|
+
/** The panel is gone: a late answer of a plugin (its confirmation came after the panel closed) must not emit on outputs nobody listens to any more (Angular NG0953). */
|
|
20498
|
+
private destroyed;
|
|
20496
20499
|
private init;
|
|
20497
20500
|
private teardown;
|
|
20498
20501
|
private resetForm;
|
|
@@ -20744,17 +20747,19 @@ export interface PaymentAttemptResult<T> {
|
|
|
20744
20747
|
* 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
20748
|
* 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
20749
|
* - 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)
|
|
20750
|
+
* `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),
|
|
20751
|
+
* `reader_busy` (a card reader that still holds a payment: the DELETE of the reader was refused, nothing charged);
|
|
20748
20752
|
* - 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
20753
|
* `idempotency_in_progress`, `idempotency_key_reused`, `idempotency_error`, `payment_intent_unexpected_state`;
|
|
20750
20754
|
* - 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`,
|
|
20755
|
+
* `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`,
|
|
20756
|
+
* `verification_attempts_exceeded`, `verification_timeout`, `verification_failed`);
|
|
20752
20757
|
* - `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
20758
|
*/
|
|
20754
20759
|
export declare const PAYMENT_NO_CHARGE_CODES: readonly string[];
|
|
20755
20760
|
/**
|
|
20756
20761
|
* 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.
|
|
20762
|
+
* 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
20763
|
*/
|
|
20759
20764
|
export declare const PAYMENT_FAILURE_CODES: readonly string[];
|
|
20760
20765
|
/** 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 +20776,9 @@ export declare function isFinalPaymentRefusal(error: unknown): boolean;
|
|
|
20771
20776
|
/**
|
|
20772
20777
|
* Classifies a failed HOST call (the charge request) for `run()`:
|
|
20773
20778
|
* - `'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;
|
|
20779
|
+
* (`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
20780
|
* - `'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`);
|
|
20781
|
+
* `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
20782
|
* - `'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
20783
|
* 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
20784
|
* status** (a wrapped `Error`, an error object of a client library): nothing proves it was refused, so only a recognised definitive code decides it;
|
|
@@ -22287,6 +22292,7 @@ export declare class KanbanBoardComponent<T = unknown> {
|
|
|
22287
22292
|
private readonly host;
|
|
22288
22293
|
private readonly doc;
|
|
22289
22294
|
private readonly injector;
|
|
22295
|
+
private readonly zone;
|
|
22290
22296
|
/** The columns in display order. */
|
|
22291
22297
|
readonly columns: import("@angular/core").InputSignal<readonly KanbanColumn[]>;
|
|
22292
22298
|
/** Every card of the board, in the order they should appear inside their column. Cards whose column is not in `columns` are not shown. */
|