@forgeroute/ui 0.5.22 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forgeroute/ui",
3
- "version": "0.5.22",
3
+ "version": "0.5.24",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=22.0.0",
6
6
  "@angular/core": ">=22.0.0",
@@ -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. Connect a reader you already have, or get one.";
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. Connect a supported reader, or get one.";
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.get': "Get a Square Terminal";
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. Connect a Terminal you already have, or get one.";
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. Connect a Terminal, or get one.";
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<"warning" | "primary" | "secondary" | "danger" | "link" | "ghost" | "ghost-start" | "tab" | "icon" | "icon-danger">;
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<"button" | "submit" | "reset">;
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" | "hidden" | "visible">;
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<"warning" | "primary" | "danger">;
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). */
@@ -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 a reader" of the top card reader banner: the host opens its pairing screen (`ui-stripe-readers`). */
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>;