@forgeroute/ui 0.5.23 → 0.5.24
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-combobox.mjs +26 -8
- package/fesm2022/forgeroute-ui-combobox.mjs.map +1 -1
- package/fesm2022/{forgeroute-ui-core-ui-labels.es-Bado7tzi.mjs → forgeroute-ui-core-ui-labels.es-Dzvm992V.mjs} +9 -6
- package/fesm2022/{forgeroute-ui-core-ui-labels.es-Bado7tzi.mjs.map → forgeroute-ui-core-ui-labels.es-Dzvm992V.mjs.map} +1 -1
- package/fesm2022/forgeroute-ui-core.mjs +9 -6
- package/fesm2022/forgeroute-ui-core.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-messaging.mjs +2 -0
- package/fesm2022/forgeroute-ui-messaging.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-payments.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-square.mjs +30 -22
- package/fesm2022/forgeroute-ui-square.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-stripe.mjs +28 -14
- package/fesm2022/forgeroute-ui-stripe.mjs.map +1 -1
- package/package.json +1 -1
- package/types/forgeroute-ui-combobox.d.ts +10 -0
- package/types/forgeroute-ui-core.d.ts +12 -9
- package/types/forgeroute-ui-messaging.d.ts +5 -5
- package/types/forgeroute-ui-payments.d.ts +2 -2
- package/types/forgeroute-ui-quickbooks.d.ts +2 -2
- package/types/forgeroute-ui-square.d.ts +30 -22
- package/types/forgeroute-ui-stripe.d.ts +28 -19
package/package.json
CHANGED
|
@@ -30,6 +30,8 @@ export interface ComboboxSelection {
|
|
|
30
30
|
* - `[loading]` shows "Searching…" and announces it. `[noResultsText]` (default "No results found").
|
|
31
31
|
* - `[minChars]` (default 0): below it nothing is searched or listed ("Type at least N characters"). 0 = the list opens
|
|
32
32
|
* on focus and `(searchChange)` fires with '' so the host can show its initial results.
|
|
33
|
+
* - `[hideMinCharsHint]` (default false, added 2026-11-22): with a `minChars` above 0, do not open the dropdown at all until the minimum is typed, so no "Type at least N characters" line shows (a picker that must
|
|
34
|
+
* list nothing up front). Searching and listing are unchanged; only the empty dropdown with that prompt is not drawn. Default = the prompt shows as before.
|
|
33
35
|
* - `[debounce]` ms between the last keystroke and `(searchChange)` (default 250). Focus / ArrowDown-open emit immediately.
|
|
34
36
|
* - `[label] [ariaLabel] [placeholder] [required] [hint] [error] [disabled] [showErrors]` like `ui-text-input`
|
|
35
37
|
* (host `[error]` wins over the built-in "<label> is required."; messages (built-in and host) show only after the user left the field, `showErrors` also reveals it on an untouched field).
|
|
@@ -81,6 +83,7 @@ export declare class ComboboxComponent<T = unknown> implements ControlValueAcces
|
|
|
81
83
|
readonly noResultsText: import("@angular/core").Signal<string>;
|
|
82
84
|
/** Characters needed before searching / listing. 0 = open on focus. */
|
|
83
85
|
readonly minChars: import("@angular/core").InputSignal<number>;
|
|
86
|
+
readonly hideMinCharsHint: import("@angular/core").InputSignal<boolean>;
|
|
84
87
|
/** Milliseconds between the last keystroke and `(searchChange)`. */
|
|
85
88
|
readonly debounce: import("@angular/core").InputSignal<number>;
|
|
86
89
|
/** The selection. */
|
|
@@ -123,6 +126,8 @@ export declare class ComboboxComponent<T = unknown> implements ControlValueAcces
|
|
|
123
126
|
protected readonly _inputText: import("@angular/core").Signal<string>;
|
|
124
127
|
protected readonly _showClear: import("@angular/core").Signal<boolean>;
|
|
125
128
|
protected readonly _belowMin: import("@angular/core").Signal<boolean>;
|
|
129
|
+
/** The dropdown is drawn: open, except below the minimum when the host asked not to show the "Type at least N characters" prompt. */
|
|
130
|
+
protected readonly _popupVisible: import("@angular/core").Signal<boolean>;
|
|
126
131
|
protected readonly _statusText: import("@angular/core").Signal<string>;
|
|
127
132
|
protected readonly _liveText: import("@angular/core").Signal<string>;
|
|
128
133
|
protected readonly _activeDescendant: import("@angular/core").Signal<string | null>;
|
|
@@ -217,6 +222,11 @@ export declare class ComboboxComponent<T = unknown> implements ControlValueAcces
|
|
|
217
222
|
"required": false;
|
|
218
223
|
"isSignal": true;
|
|
219
224
|
};
|
|
225
|
+
"hideMinCharsHint": {
|
|
226
|
+
"alias": "hideMinCharsHint";
|
|
227
|
+
"required": false;
|
|
228
|
+
"isSignal": true;
|
|
229
|
+
};
|
|
220
230
|
"debounce": {
|
|
221
231
|
"alias": "debounce";
|
|
222
232
|
"required": false;
|
|
@@ -2429,9 +2429,9 @@ export declare const UI_DEFAULT_LABELS: {
|
|
|
2429
2429
|
readonly 'stripeReader.theReader': "the card reader";
|
|
2430
2430
|
readonly 'stripeReader.status.loading': "Checking the card reader...";
|
|
2431
2431
|
readonly 'stripeReader.status.no_reader.title': "No card reader set up";
|
|
2432
|
-
readonly 'stripeReader.status.no_reader.text': "Your company can take in-person card payments with a card reader.
|
|
2432
|
+
readonly 'stripeReader.status.no_reader.text': "Your company can take in-person card payments with a card reader. Get one to start taking them.";
|
|
2433
2433
|
readonly 'stripeReader.status.unsupported_only.title': "No supported card reader";
|
|
2434
|
-
readonly 'stripeReader.status.unsupported_only.text': "The readers on this account cannot take payments here. Supported readers are the Stripe Reader S700, the Stripe Reader S710 and the BBPOS WisePOS E.
|
|
2434
|
+
readonly 'stripeReader.status.unsupported_only.text': "The readers on this account cannot take payments here. Supported readers are the Stripe Reader S700, the Stripe Reader S710 and the BBPOS WisePOS E. Get a supported reader.";
|
|
2435
2435
|
readonly 'stripeReader.status.reader_offline.title': "Card reader not connected";
|
|
2436
2436
|
readonly 'stripeReader.status.reader_offline.text': "The card reader is turned off or has no connection. Check its power and network, then check again.";
|
|
2437
2437
|
readonly 'stripeReader.status.reader_busy.title': "A card reader payment is waiting";
|
|
@@ -2454,6 +2454,8 @@ export declare const UI_DEFAULT_LABELS: {
|
|
|
2454
2454
|
readonly 'stripeReader.status.manual': "Take a manual payment instead";
|
|
2455
2455
|
readonly 'stripeReader.status.getInfo': "How to get a card reader";
|
|
2456
2456
|
readonly 'stripeReaderBanner.getReader': "Get a card reader to take in-person card payments.";
|
|
2457
|
+
readonly 'stripeReader.banner.notConnected': "Your card reader is not connected.";
|
|
2458
|
+
readonly 'stripeReader.status.connectYours': "Connect Your Reader";
|
|
2457
2459
|
readonly 'stripeReaderBanner.setupFirst': "Set up payments to take card payments, including in person with a card reader.";
|
|
2458
2460
|
readonly 'stripeReaderBanner.sandbox': "Card readers are not available in a sandbox account.";
|
|
2459
2461
|
readonly 'stripeReaderBanner.serviceDisabled': "Card readers are turned off for this account.";
|
|
@@ -2618,13 +2620,14 @@ export declare const UI_DEFAULT_LABELS: {
|
|
|
2618
2620
|
readonly 'stripeReaders.failed.timeout': "The card reader service did not answer in time. The list was checked again: look at it before trying once more.";
|
|
2619
2621
|
readonly 'squareTerminal.banner.getReader': "Get a Square Terminal to take in-person card payments.";
|
|
2620
2622
|
readonly 'squareTerminal.banner.setupFirst': "Set up payments to take card payments, including in person with a Square Terminal.";
|
|
2623
|
+
readonly 'squareTerminal.banner.notConnected': "Your Square Terminal is not connected.";
|
|
2621
2624
|
readonly 'squareTerminal.status.connect': "Connect a Terminal";
|
|
2622
|
-
readonly 'squareTerminal.status.
|
|
2625
|
+
readonly 'squareTerminal.status.connectYours': "Connect Your Terminal";
|
|
2623
2626
|
readonly 'squareTerminal.status.getInfo': "How to get one";
|
|
2624
2627
|
readonly 'squareTerminal.status.no_reader.title': "No Square Terminal set up";
|
|
2625
|
-
readonly 'squareTerminal.status.no_reader.text': "Your company can take in-person card payments with a Square Terminal.
|
|
2628
|
+
readonly 'squareTerminal.status.no_reader.text': "Your company can take in-person card payments with a Square Terminal. Get one to start taking them.";
|
|
2626
2629
|
readonly 'squareTerminal.status.unsupported_only.title': "No supported Square Terminal";
|
|
2627
|
-
readonly 'squareTerminal.status.unsupported_only.text': "The devices on this account cannot take payments here. Only the Square Terminal is supported.
|
|
2630
|
+
readonly 'squareTerminal.status.unsupported_only.text': "The devices on this account cannot take payments here. Only the Square Terminal is supported. Get a Square Terminal.";
|
|
2628
2631
|
readonly 'squareTerminal.status.reader_offline.title': "Square Terminal not connected";
|
|
2629
2632
|
readonly 'squareTerminal.status.reader_offline.text': "The Terminal is turned off or has no connection. Check its power and network, then check again.";
|
|
2630
2633
|
readonly 'squareTerminal.theReader': "the Terminal";
|
|
@@ -2743,7 +2746,7 @@ export declare class ButtonComponent {
|
|
|
2743
2746
|
* `ghost-start`: a ghost button for list / section toggles - a full-width row with its content aligned to the start, transparent
|
|
2744
2747
|
* background, hover tint and the normal focus ring. Pair it with `ariaExpanded` / `ariaPressed`; the label may contain a heading element.
|
|
2745
2748
|
*/
|
|
2746
|
-
readonly variant: import("@angular/core").InputSignal<"
|
|
2749
|
+
readonly variant: import("@angular/core").InputSignal<"primary" | "danger" | "warning" | "link" | "secondary" | "ghost" | "ghost-start" | "tab" | "icon" | "icon-danger">;
|
|
2747
2750
|
/** 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`). */
|
|
2748
2751
|
readonly routerLink: import("@angular/core").InputSignal<string | readonly unknown[] | null>;
|
|
2749
2752
|
/** Query params of the `routerLink` (e.g. `{ section: 'deal-defaults' }`). */
|
|
@@ -2789,7 +2792,7 @@ export declare class ButtonComponent {
|
|
|
2789
2792
|
readonly color: import("@angular/core").InputSignal<string | undefined>;
|
|
2790
2793
|
readonly active: import("@angular/core").InputSignal<boolean>;
|
|
2791
2794
|
readonly size: import("@angular/core").InputSignal<"sm" | "md" | "lg" | "xs">;
|
|
2792
|
-
readonly type: import("@angular/core").InputSignal<"
|
|
2795
|
+
readonly type: import("@angular/core").InputSignal<"reset" | "submit" | "button">;
|
|
2793
2796
|
readonly disabled: import("@angular/core").InputSignal<boolean>;
|
|
2794
2797
|
readonly loading: import("@angular/core").InputSignal<boolean>;
|
|
2795
2798
|
readonly fullWidth: import("@angular/core").InputSignal<boolean>;
|
|
@@ -2938,7 +2941,7 @@ export declare class ModalComponent implements OnInit, OnDestroy {
|
|
|
2938
2941
|
*/
|
|
2939
2942
|
readonly describedBy: import("@angular/core").InputSignal<string | null>;
|
|
2940
2943
|
readonly maxWidth: import("@angular/core").InputSignal<string>;
|
|
2941
|
-
readonly bodyOverflow: import("@angular/core").InputSignal<"auto" | "
|
|
2944
|
+
readonly bodyOverflow: import("@angular/core").InputSignal<"auto" | "visible" | "hidden">;
|
|
2942
2945
|
/** `data-testid` of the dialog element itself (the host `<ui-modal>` is always in the page, the dialog only while open). None when empty. */
|
|
2943
2946
|
readonly dialogTestId: import("@angular/core").InputSignal<string>;
|
|
2944
2947
|
/** Hides the header X button (e.g. while a request is running). Escape and a backdrop click still close unless `closable` is false. */
|
|
@@ -3089,7 +3092,7 @@ export declare class SidePanelComponent implements OnDestroy {
|
|
|
3089
3092
|
readonly cancelLabel: import("@angular/core").Signal<string>;
|
|
3090
3093
|
/** Right-aligned primary action button label. Empty string = hidden. */
|
|
3091
3094
|
readonly primaryLabel: import("@angular/core").InputSignal<string>;
|
|
3092
|
-
readonly primaryVariant: import("@angular/core").InputSignal<"
|
|
3095
|
+
readonly primaryVariant: import("@angular/core").InputSignal<"primary" | "danger" | "warning">;
|
|
3093
3096
|
readonly primaryLoading: import("@angular/core").InputSignal<boolean>;
|
|
3094
3097
|
readonly primaryDisabled: import("@angular/core").InputSignal<boolean>;
|
|
3095
3098
|
/** `data-testid` of the Cancel button; none when empty (default). */
|
|
@@ -122,7 +122,7 @@ export declare class TemplatePickerComponent {
|
|
|
122
122
|
private readonly host;
|
|
123
123
|
private readonly search$;
|
|
124
124
|
/** Filter results to a specific channel: 'email', 'text', or omit for all. */
|
|
125
|
-
readonly channel: import("@angular/core").InputSignal<"" | "
|
|
125
|
+
readonly channel: import("@angular/core").InputSignal<"" | "email" | "text">;
|
|
126
126
|
readonly selectedId: import("@angular/core").InputSignal<string | null>;
|
|
127
127
|
readonly labelInput: import("@angular/core").InputSignal<string | null>;
|
|
128
128
|
readonly label: import("@angular/core").Signal<string>;
|
|
@@ -553,7 +553,7 @@ export declare class DocumentSendOptionsComponent implements UiFieldValidity {
|
|
|
553
553
|
/** API root from FORGEROUTE_CONFIG (e.g. a cross-origin prod API); falls back to same-origin `/api`. */
|
|
554
554
|
private readonly apiBase;
|
|
555
555
|
/** `email` → purpose select + attachment allowed; `text` → link only (purpose fixed to e-signature). */
|
|
556
|
-
readonly channel: import("@angular/core").InputSignal<"
|
|
556
|
+
readonly channel: import("@angular/core").InputSignal<"email" | "text">;
|
|
557
557
|
readonly labelInput: import("@angular/core").InputSignal<string | null>;
|
|
558
558
|
readonly label: import("@angular/core").Signal<string>;
|
|
559
559
|
/** When true, at least one document must be chosen. The message forms leave it false: documents are optional there. */
|
|
@@ -629,7 +629,7 @@ export declare class DocumentSendOptionsComponent implements UiFieldValidity {
|
|
|
629
629
|
/** Roles of documents whose row had no `signerRoles` and that the host resolves (`signers().resolveRoles`). */
|
|
630
630
|
readonly roleStates: import("@angular/core").WritableSignal<Record<string, RoleState>>;
|
|
631
631
|
/** The envelope's documents: `loading` / `error` while the panel reads them (`loadDocuments`), `ready` once known. */
|
|
632
|
-
readonly envelopeStatus: import("@angular/core").WritableSignal<"
|
|
632
|
+
readonly envelopeStatus: import("@angular/core").WritableSignal<"idle" | "loading" | "ready" | "error">;
|
|
633
633
|
private envelopeSub;
|
|
634
634
|
private readonly roleSubs;
|
|
635
635
|
/** The sender opened the collapsed "Signing options" line. */
|
|
@@ -2020,7 +2020,7 @@ export declare class SendMessagePanelComponent {
|
|
|
2020
2020
|
* somebody can receive that channel; otherwise the usual default applies (email if anybody has an email, else text). null (default) = the usual default.
|
|
2021
2021
|
* `textEnabled` must already be known when the panel opens for `'text'` to take effect (bind `[recipients]` after async settings loaded, or re-open).
|
|
2022
2022
|
*/
|
|
2023
|
-
readonly initialChannel: import("@angular/core").InputSignal<"
|
|
2023
|
+
readonly initialChannel: import("@angular/core").InputSignal<"email" | "text" | null>;
|
|
2024
2024
|
/** Bulk mode: the plural noun in "To: 12 residents" (default `recipients`, localized). */
|
|
2025
2025
|
readonly recipientNoun: import("@angular/core").InputSignal<string>;
|
|
2026
2026
|
/** Bulk mode: the singular noun used when exactly one is selected; empty = the plural without a trailing "s". */
|
|
@@ -2256,7 +2256,7 @@ export declare class SendMessagePanelComponent {
|
|
|
2256
2256
|
readonly activeContact: import("@angular/core").WritableSignal<MessageContact | null>;
|
|
2257
2257
|
/** What the sender should know about the picked contact before sending (why a channel is missing, what to add). */
|
|
2258
2258
|
readonly contactNotices: import("@angular/core").Signal<string[]>;
|
|
2259
|
-
readonly channel: import("@angular/core").WritableSignal<"
|
|
2259
|
+
readonly channel: import("@angular/core").WritableSignal<"email" | "text">;
|
|
2260
2260
|
readonly valid: import("@angular/core").WritableSignal<boolean>;
|
|
2261
2261
|
/** A send is in flight in the active form: the Send button spins and stays disabled. */
|
|
2262
2262
|
readonly busy: import("@angular/core").WritableSignal<boolean>;
|
|
@@ -635,7 +635,7 @@ export declare class PaymentSidePanelComponent {
|
|
|
635
635
|
* panel was destroyed while a plugin flow, a terminal payment, an unrecorded terminal payment or a record request was open. Instead of reporting "idle" the panel keeps `busyChange` true until the host calls `releasePending()`.
|
|
636
636
|
*/
|
|
637
637
|
readonly leftPending: import("@angular/core").OutputEmitterRef<PaymentLeftPending>;
|
|
638
|
-
/** "Connect
|
|
638
|
+
/** "Connect Your Reader" / "Connect Your Terminal" of the top banner (a reader that exists but is NOT connected): the host opens its pairing screen (`ui-stripe-readers` / `ui-square-terminals`). */
|
|
639
639
|
readonly readerConnect: import("@angular/core").OutputEmitterRef<void>;
|
|
640
640
|
/** "Get a card reader" / "How to get a card reader" of the top banner: the host opens its order flow or an info card. */
|
|
641
641
|
readonly readerOrder: import("@angular/core").OutputEmitterRef<void>;
|
|
@@ -751,7 +751,7 @@ export declare class PaymentSidePanelComponent {
|
|
|
751
751
|
private readonly terminalAvailable;
|
|
752
752
|
/** value -> label of every live method the rendered plugins contribute (the first plugin wins a duplicate value). */
|
|
753
753
|
private readonly liveMethods;
|
|
754
|
-
protected readonly kind: import("@angular/core").Signal<"terminal" | "
|
|
754
|
+
protected readonly kind: import("@angular/core").Signal<"terminal" | "none" | "manual" | "live">;
|
|
755
755
|
private kindOf;
|
|
756
756
|
/** 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. */
|
|
757
757
|
readonly methodList: import("@angular/core").Signal<PaymentMethodOption[]>;
|
|
@@ -355,7 +355,7 @@ export declare class QboPaymentComponent {
|
|
|
355
355
|
protected readonly postalFormatter: import("@angular/core").Signal<(raw: string) => string>;
|
|
356
356
|
protected readonly postalPlaceholder: import("@angular/core").Signal<"A1A 1A1" | "94086">;
|
|
357
357
|
protected readonly postalInputMode: import("@angular/core").Signal<"text" | "numeric">;
|
|
358
|
-
protected readonly postalMaxLength: import("@angular/core").Signal<
|
|
358
|
+
protected readonly postalMaxLength: import("@angular/core").Signal<7 | 10>;
|
|
359
359
|
protected readonly routingFormatter: (raw: string) => string;
|
|
360
360
|
protected readonly accountFormatter: (raw: string) => string;
|
|
361
361
|
protected readonly tabs: import("@angular/core").Signal<PillTab[]>;
|
|
@@ -792,7 +792,7 @@ export declare class QboConnectComponent {
|
|
|
792
792
|
readonly loading: import("@angular/core").ModelSignal<boolean>;
|
|
793
793
|
protected readonly awaiting: import("@angular/core").WritableSignal<boolean>;
|
|
794
794
|
protected readonly confirming: import("@angular/core").WritableSignal<boolean>;
|
|
795
|
-
protected readonly state: import("@angular/core").Signal<"
|
|
795
|
+
protected readonly state: import("@angular/core").Signal<"none" | "connected" | "reconnect">;
|
|
796
796
|
protected readonly company: import("@angular/core").Signal<string>;
|
|
797
797
|
protected readonly connectedOn: import("@angular/core").Signal<string>;
|
|
798
798
|
/** What the persistent status region says: the current state, plus "Loading." while a request runs. */
|