@forgeroute/ui 0.4.79 → 0.4.80

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.4.79",
3
+ "version": "0.4.80",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=22.0.0",
6
6
  "@angular/core": ">=22.0.0",
@@ -407,6 +407,9 @@ export type BulkUpdateOption<T = any> = string | {
407
407
  /**
408
408
  * Direct action only: the past-tense word in the result toast. "N <doneLabel>, M skipped." when anything was skipped / not allowed,
409
409
  * else "N <itemLabel>(s) <doneLabel>.". Default 'updated'.
410
+ * English keeps the past-tense word ('resent' -> "N contacts resent."). In Spanish the summary reads "<doneLabel>: N <items>." and the word is
411
+ * a capitalised NOUN, not a participle: pass 'Reenvío' ("Reenvío: 3 contactos."), not 'enviados' ("enviados: 3 contactos."). The built-in
412
+ * default ('updated') is translated by the dictionary and needs nothing.
410
413
  */
411
414
  doneLabel?: string;
412
415
  /**
@@ -2944,7 +2947,7 @@ export declare class SelectComponent implements ControlValueAccessor, Validator,
2944
2947
  readonly error: import("@angular/core").InputSignal<string>;
2945
2948
  /** Reveal the built-in error messages now (e.g. after a failed Save click), without waiting for blur. */
2946
2949
  readonly showErrors: import("@angular/core").InputSignal<boolean>;
2947
- readonly size: import("@angular/core").InputSignal<"sm" | "default">;
2950
+ readonly size: import("@angular/core").InputSignal<"default" | "sm">;
2948
2951
  readonly _disabledInput: import("@angular/core").InputSignal<boolean>;
2949
2952
  private readonly _cvaDisabled;
2950
2953
  protected readonly disabled: import("@angular/core").Signal<boolean>;
@@ -4173,7 +4176,7 @@ export declare class SidePanelComponent implements OnDestroy {
4173
4176
  readonly cancelLabel: import("@angular/core").Signal<string>;
4174
4177
  /** Right-aligned primary action button label. Empty string = hidden. */
4175
4178
  readonly primaryLabel: import("@angular/core").InputSignal<string>;
4176
- readonly primaryVariant: import("@angular/core").InputSignal<"primary" | "danger" | "warning">;
4179
+ readonly primaryVariant: import("@angular/core").InputSignal<"danger" | "warning" | "primary">;
4177
4180
  readonly primaryLoading: import("@angular/core").InputSignal<boolean>;
4178
4181
  readonly primaryDisabled: import("@angular/core").InputSignal<boolean>;
4179
4182
  /** `data-testid` of the Cancel button; none when empty (default). */
@@ -4305,7 +4308,7 @@ export declare class ModalComponent implements OnInit, OnDestroy {
4305
4308
  */
4306
4309
  readonly describedBy: import("@angular/core").InputSignal<string | null>;
4307
4310
  readonly maxWidth: import("@angular/core").InputSignal<string>;
4308
- readonly bodyOverflow: import("@angular/core").InputSignal<"hidden" | "visible" | "auto">;
4311
+ readonly bodyOverflow: import("@angular/core").InputSignal<"auto" | "hidden" | "visible">;
4309
4312
  /** `data-testid` of the dialog element itself (the host `<ui-modal>` is always in the page, the dialog only while open). None when empty. */
4310
4313
  readonly dialogTestId: import("@angular/core").InputSignal<string>;
4311
4314
  /** Hides the header X button (e.g. while a request is running). Escape and a backdrop click still close unless `closable` is false. */
@@ -4970,7 +4973,7 @@ export declare class AudioPlayerComponent {
4970
4973
  /** Accessible name of the player. */
4971
4974
  readonly ariaLabel: import("@angular/core").InputSignal<string>;
4972
4975
  /** How much to load before play: 'metadata' (default), 'auto' or 'none'. */
4973
- readonly preload: import("@angular/core").InputSignal<"none" | "metadata" | "auto">;
4976
+ readonly preload: import("@angular/core").InputSignal<"none" | "auto" | "metadata">;
4974
4977
  /** Fires when the browser can't load or decode the source. */
4975
4978
  readonly playbackError: import("@angular/core").OutputEmitterRef<void>;
4976
4979
  protected readonly failed: import("@angular/core").WritableSignal<boolean>;
@@ -5391,7 +5394,7 @@ export declare class CheckboxComponent implements ControlValueAccessor, Validato
5391
5394
  * 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.
5392
5395
  * Default null: plain label text, exactly as before. Single mode only.
5393
5396
  */
5394
- readonly headingLevel: import("@angular/core").InputSignal<1 | 3 | 4 | 2 | 5 | 6 | null>;
5397
+ readonly headingLevel: import("@angular/core").InputSignal<2 | 3 | 4 | 1 | 6 | 5 | null>;
5395
5398
  readonly indeterminate: import("@angular/core").InputSignal<boolean>;
5396
5399
  readonly checked: import("@angular/core").ModelSignal<boolean>;
5397
5400
  /**
@@ -5820,7 +5823,7 @@ export declare class StepperComponent {
5820
5823
  * its circle, one continuous line behind the circles that fills as steps complete; a complete step shows a check, the current step an
5821
5824
  * accent ring with a dot, an upcoming step an empty circle (no numbers). Circles are 40px (32px with `size="sm"`).
5822
5825
  */
5823
- readonly labelPosition: import("@angular/core").InputSignal<"beside" | "below">;
5826
+ readonly labelPosition: import("@angular/core").InputSignal<"below" | "beside">;
5824
5827
  /** Viewport width in px below which a horizontal stepper is drawn vertical (labels beside the circles), e.g. `640`. null (default) = never. */
5825
5828
  readonly stackBelow: import("@angular/core").InputSignal<number | null>;
5826
5829
  /** CSS length (e.g. `10.5rem`): horizontal only - the list gets `min-width: calc(<step count> * <value>)`. Empty (default) = no minimum. */
@@ -6366,7 +6369,7 @@ export declare class PhoneNumberPickerComponent {
6366
6369
  protected readonly modeCtl: FormControl<string>;
6367
6370
  protected readonly zipCtl: FormControl<string>;
6368
6371
  protected readonly areaCtl: FormControl<string>;
6369
- protected readonly step: import("@angular/core").WritableSignal<1 | 3 | 2>;
6372
+ protected readonly step: import("@angular/core").WritableSignal<2 | 3 | 1>;
6370
6373
  protected readonly mode: import("@angular/core").WritableSignal<PhoneNumberSearchMode>;
6371
6374
  private readonly _zip;
6372
6375
  private readonly _area;
@@ -6482,7 +6485,7 @@ export declare class ButtonComponent {
6482
6485
  * `ghost-start`: a ghost button for list / section toggles - a full-width row with its content aligned to the start, transparent
6483
6486
  * background, hover tint and the normal focus ring. Pair it with `ariaExpanded` / `ariaPressed`; the label may contain a heading element.
6484
6487
  */
6485
- readonly variant: import("@angular/core").InputSignal<"primary" | "secondary" | "link" | "danger" | "warning" | "ghost" | "ghost-start" | "tab" | "icon" | "icon-danger">;
6488
+ readonly variant: import("@angular/core").InputSignal<"link" | "danger" | "warning" | "primary" | "secondary" | "icon" | "ghost" | "ghost-start" | "tab" | "icon-danger">;
6486
6489
  /** 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`). */
6487
6490
  readonly routerLink: import("@angular/core").InputSignal<string | readonly unknown[] | null>;
6488
6491
  /** Query params of the `routerLink` (e.g. `{ section: 'deal-defaults' }`). */
@@ -6528,7 +6531,7 @@ export declare class ButtonComponent {
6528
6531
  readonly color: import("@angular/core").InputSignal<string | undefined>;
6529
6532
  readonly active: import("@angular/core").InputSignal<boolean>;
6530
6533
  readonly size: import("@angular/core").InputSignal<"sm" | "md" | "lg" | "xs">;
6531
- readonly type: import("@angular/core").InputSignal<"button" | "submit" | "reset">;
6534
+ readonly type: import("@angular/core").InputSignal<"button" | "reset" | "submit">;
6532
6535
  readonly disabled: import("@angular/core").InputSignal<boolean>;
6533
6536
  readonly loading: import("@angular/core").InputSignal<boolean>;
6534
6537
  readonly fullWidth: import("@angular/core").InputSignal<boolean>;
@@ -6778,7 +6781,7 @@ export declare class PillTabsComponent {
6778
6781
  */
6779
6782
  readonly showDescription: import("@angular/core").InputSignal<boolean>;
6780
6783
  /** Heading level of the active tab's title when `showDescription` is on: 2 (default) or 3. */
6781
- readonly headingLevel: import("@angular/core").InputSignal<3 | 2>;
6784
+ readonly headingLevel: import("@angular/core").InputSignal<2 | 3>;
6782
6785
  readonly tabChange: import("@angular/core").OutputEmitterRef<string>;
6783
6786
  protected readonly activeTab: import("@angular/core").Signal<PillTab | null>;
6784
6787
  protected titleId(): string;
@@ -7115,7 +7118,7 @@ export declare class BulkMessagePanelComponent {
7115
7118
  readonly sending: import("@angular/core").InputSignal<boolean>;
7116
7119
  readonly closed: import("@angular/core").OutputEmitterRef<void>;
7117
7120
  readonly send: import("@angular/core").OutputEmitterRef<BulkMessageSendEvent>;
7118
- readonly channel: import("@angular/core").WritableSignal<"text" | "email">;
7121
+ readonly channel: import("@angular/core").WritableSignal<"email" | "text">;
7119
7122
  private readonly _subject;
7120
7123
  private readonly _body;
7121
7124
  get subject(): string;
@@ -7659,7 +7662,7 @@ export declare class TextInputComponent implements ControlValueAccessor, Validat
7659
7662
  readonly passwordRequirements: import("@angular/core").InputSignal<boolean>;
7660
7663
  /** Rules for `passwordRequirements`; default = the library's five rules (8+ characters, upper, lower, digit, special). */
7661
7664
  readonly passwordRules: import("@angular/core").InputSignal<readonly PasswordRule[] | undefined>;
7662
- readonly type: import("@angular/core").InputSignal<"number" | "text" | "email" | "password" | "tel" | "url">;
7665
+ readonly type: import("@angular/core").InputSignal<"number" | "email" | "text" | "tel" | "password" | "url">;
7663
7666
  readonly maxlength: import("@angular/core").InputSignal<number | undefined>;
7664
7667
  readonly required: import("@angular/core").InputSignal<boolean>;
7665
7668
  readonly autocomplete: import("@angular/core").InputSignal<string>;
@@ -7668,7 +7671,7 @@ export declare class TextInputComponent implements ControlValueAccessor, Validat
7668
7671
  * `search`, `text`, `none`). Empty (default) = the browser's default for the field, except `type="tel"`, which keeps `tel`.
7669
7672
  * It only picks the keyboard; it does not restrict what can be typed or pasted.
7670
7673
  */
7671
- readonly inputmode: import("@angular/core").InputSignal<"" | "text" | "search" | "none" | "email" | "tel" | "numeric" | "decimal" | "url">;
7674
+ readonly inputmode: import("@angular/core").InputSignal<"" | "email" | "text" | "decimal" | "none" | "numeric" | "search" | "tel" | "url">;
7672
7675
  readonly readonly: import("@angular/core").InputSignal<boolean>;
7673
7676
  readonly hint: import("@angular/core").InputSignal<string>;
7674
7677
  /** 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. */
@@ -7740,7 +7743,7 @@ export declare class TextInputComponent implements ControlValueAccessor, Validat
7740
7743
  protected readonly _stepAttr: import("@angular/core").Signal<string | null>;
7741
7744
  protected readonly _revealable: import("@angular/core").Signal<boolean>;
7742
7745
  protected readonly _shown: import("@angular/core").WritableSignal<boolean>;
7743
- protected readonly _inputType: import("@angular/core").Signal<"number" | "text" | "email" | "password" | "tel" | "url">;
7746
+ protected readonly _inputType: import("@angular/core").Signal<"number" | "email" | "text" | "tel" | "password" | "url">;
7744
7747
  protected readonly _eyePath: string;
7745
7748
  protected readonly _eyeOffPath: string;
7746
7749
  protected readonly _showRequirements: import("@angular/core").Signal<boolean>;
@@ -9488,7 +9491,7 @@ export declare class DropdownComponent {
9488
9491
  readonly loader: import("@angular/core").InputSignal<(() => Promise<DropdownItem[]>) | null>;
9489
9492
  readonly active: import("@angular/core").InputSignal<boolean>;
9490
9493
  readonly activeValue: import("@angular/core").InputSignal<string>;
9491
- readonly variant: import("@angular/core").InputSignal<"badge" | "button">;
9494
+ readonly variant: import("@angular/core").InputSignal<"button" | "badge">;
9492
9495
  /** Trigger size for `variant="button"`: `sm` (default, the compact toolbar look) or `md` (same padding and type as a medium `ui-button`). */
9493
9496
  readonly size: import("@angular/core").InputSignal<"sm" | "md">;
9494
9497
  readonly menuWidth: import("@angular/core").InputSignal<string>;
@@ -9804,7 +9807,7 @@ export declare class FormSectionComponent {
9804
9807
  }, {}, never, ["*"], true, never>;
9805
9808
  }
9806
9809
  export declare class FormRowComponent {
9807
- readonly cols: import("@angular/core").InputSignal<1 | 3 | 4 | 2>;
9810
+ readonly cols: import("@angular/core").InputSignal<2 | 3 | 4 | 1>;
9808
9811
  static ɵfac: i0.ɵɵFactoryDeclaration<FormRowComponent, never>;
9809
9812
  static ɵcmp: i0.ɵɵComponentDeclaration<FormRowComponent, "ui-form-row", never, {
9810
9813
  "cols": {
@@ -9821,7 +9824,7 @@ export declare class FormRowComponent {
9821
9824
  * child simply takes the full width. Keep a numeric span within the row's `cols` (use `all` for the whole row).
9822
9825
  */
9823
9826
  export declare class FormColSpanDirective {
9824
- readonly uiColSpan: import("@angular/core").InputSignal<"" | "2" | "3" | 3 | 2 | "all">;
9827
+ readonly uiColSpan: import("@angular/core").InputSignal<"" | 2 | "2" | 3 | "3" | "all">;
9825
9828
  protected readonly _class: import("@angular/core").Signal<string>;
9826
9829
  static ɵfac: i0.ɵɵFactoryDeclaration<FormColSpanDirective, never>;
9827
9830
  static ɵdir: i0.ɵɵDirectiveDeclaration<FormColSpanDirective, "[uiColSpan]", never, {
@@ -9901,7 +9904,7 @@ export type ListItemIconColor = 'slate' | 'amber' | 'red' | 'blue' | 'green' | '
9901
9904
  export declare class ListItemComponent implements AfterContentChecked {
9902
9905
  private readonly host;
9903
9906
  /** Show a radio button, checkbox, or nothing on the left. */
9904
- readonly leading: import("@angular/core").InputSignal<"none" | "checkbox" | "radio">;
9907
+ readonly leading: import("@angular/core").InputSignal<"none" | "radio" | "checkbox">;
9905
9908
  /** `name` attribute for the radio/checkbox (groups radios together). */
9906
9909
  readonly inputName: import("@angular/core").InputSignal<string>;
9907
9910
  /** `id` attribute for the radio/checkbox (links the label). */
@@ -11055,7 +11058,7 @@ export declare class ChipGroupComponent {
11055
11058
  readonly spaceAbove: import("@angular/core").InputSignal<"none" | "sm" | "md">;
11056
11059
  /** Space below the chip group. */
11057
11060
  readonly spaceBelow: import("@angular/core").InputSignal<"none" | "sm" | "md">;
11058
- protected readonly _gap: import("@angular/core").Signal<"8px" | "6px" | "12px">;
11061
+ protected readonly _gap: import("@angular/core").Signal<"6px" | "12px" | "8px">;
11059
11062
  protected readonly _spaceAbove: import("@angular/core").Signal<"0" | "6px" | "12px">;
11060
11063
  protected readonly _spaceBelow: import("@angular/core").Signal<"0" | "6px" | "12px">;
11061
11064
  static ɵfac: i0.ɵɵFactoryDeclaration<ChipGroupComponent, never>;
@@ -11476,7 +11479,7 @@ export declare class IconComponent {
11476
11479
  readonly ariaLabel: import("@angular/core").InputSignal<string>;
11477
11480
  /** Icon size in px. */
11478
11481
  readonly size: import("@angular/core").InputSignal<number>;
11479
- readonly variant: import("@angular/core").InputSignal<"danger" | "default">;
11482
+ readonly variant: import("@angular/core").InputSignal<"default" | "danger">;
11480
11483
  readonly disabled: import("@angular/core").InputSignal<boolean>;
11481
11484
  /** 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. */
11482
11485
  readonly loading: import("@angular/core").InputSignal<boolean>;
@@ -11601,7 +11604,7 @@ export declare class TimelineComponent {
11601
11604
  /** Any CSS length (e.g. `600px`). When set, the list scrolls inside a keyboard-focusable region of at most this height. Empty = no wrapper. */
11602
11605
  readonly maxHeight: import("@angular/core").InputSignal<string>;
11603
11606
  /** `below` (default): the time is under the title / description. `end`: the time sits right-aligned on the title row. */
11604
- readonly timePosition: import("@angular/core").InputSignal<"end" | "below">;
11607
+ readonly timePosition: import("@angular/core").InputSignal<"below" | "end">;
11605
11608
  /**
11606
11609
  * Group the items under a heading per calendar day of `dateTime` ("Today", "Yesterday", "Oct 3", "Oct 3, 2025"). Default false = no headings,
11607
11610
  * DOM unchanged. The given order is kept: consecutive items of one day share a heading, the same day appearing again later starts a new group.
@@ -13779,7 +13782,7 @@ export declare class PdfHotspotComponent {
13779
13782
  /** `ready`: clickable; `blocked`: disabled (a prerequisite is missing); `signed`: shows `image`. */
13780
13783
  readonly state: import("@angular/core").InputSignal<"ready" | "blocked" | "signed">;
13781
13784
  /** `warning` gives the ready state an amber look (e.g. for initials), default is blue. */
13782
- readonly tone: import("@angular/core").InputSignal<"primary" | "warning">;
13785
+ readonly tone: import("@angular/core").InputSignal<"warning" | "primary">;
13783
13786
  /** Text of the ready button (e.g. "Sign Here"). */
13784
13787
  readonly labelInput: import("@angular/core").InputSignal<string | null>;
13785
13788
  readonly label: import("@angular/core").Signal<string>;
@@ -13919,7 +13922,7 @@ export declare class DetailCardComponent {
13919
13922
  /** true (default) = the title is displayed in capitals (CSS only); false = shown as written. The text, aria-label and heading name are never changed. */
13920
13923
  readonly uppercaseTitle: import("@angular/core").InputSignal<boolean>;
13921
13924
  /** 1-6 makes the title a real heading for screen readers (role=heading, aria-level); null keeps it plain text. */
13922
- readonly headingLevel: import("@angular/core").InputSignal<1 | 3 | 4 | 2 | 5 | 6 | null>;
13925
+ readonly headingLevel: import("@angular/core").InputSignal<2 | 3 | 4 | 1 | 6 | 5 | null>;
13923
13926
  /** Optional id for the title text; the card is then labelled by it. Without it the title is the card's aria-label. */
13924
13927
  readonly titleId: import("@angular/core").InputSignal<string>;
13925
13928
  /** Accessible name of the card when the header gives none (no header, or no title). A visible title wins; blank = no name. */
@@ -13933,7 +13936,7 @@ export declare class DetailCardComponent {
13933
13936
  /** Background colour of the footer bar (the `[card-footer]` slot) as any CSS colour. Empty = no colour of its own. */
13934
13937
  readonly footerBackground: import("@angular/core").InputSignal<string>;
13935
13938
  /** Alignment of the `[card-footer]` content: `'start'` (default, unchanged) or `'end'` = a right-aligned action row with an 8px gap. */
13936
- readonly footerAlign: import("@angular/core").InputSignal<"start" | "end">;
13939
+ readonly footerAlign: import("@angular/core").InputSignal<"end" | "start">;
13937
13940
  /** Text colour as any CSS colour (`#fff`, `var(--on-dark)` …). Empty = the default colours. Colours the title, subtitle, chevron and body text. */
13938
13941
  readonly textColor: import("@angular/core").InputSignal<string>;
13939
13942
  /** false = no header at all (no title, edit button, toggle or divider): the card is only the body, always open. */
@@ -19187,15 +19190,15 @@ export declare function uiFormatDate(value: Date | string | number | null | unde
19187
19190
  export declare function uiFormatNumber(value: number | null | undefined, locale?: string, options?: Intl.NumberFormatOptions): string;
19188
19191
  /**
19189
19192
  * `{ currencyDisplay: 'narrowSymbol' }` for US dollars in a locale that would print the bare ISO code ("USD 12.50") and has no "$" money of its own, else `{}`.
19190
- * A locale where "$" also names the local currency (es-MX, es-AR, en-AU) gets `{}` here because a bare "$" would be ambiguous: use `uiCurrencyFormatter` (or
19191
- * `uiFormatCurrency`), which writes "US$12.50" there. Other currencies always get `{}`.
19193
+ * A locale where "$" also names the local currency (it depends on the ICU data which ones do; es-MX and en-AU are typical, some ICU versions already print "US$" for es-AR) gets `{}` here because a bare "$" would be ambiguous: use `uiCurrencyFormatter` (or
19194
+ * `uiFormatCurrency`), which writes "US$12.50" there when the data would otherwise print a bare "$". Other currencies always get `{}`.
19192
19195
  */
19193
19196
  export declare function usdCurrencyDisplay(currency: string, locale?: string): {
19194
19197
  currencyDisplay?: 'narrowSymbol';
19195
19198
  };
19196
19199
  /**
19197
19200
  * A number formatter for money. The rule for US dollars (see `usdPlan`): "$12.50" in en-US / es-US, the locale's own unambiguous writing where it has one
19198
- * (en-CA "US$12.50", de-DE "12,50 $", ja-JP "$12.50"), "US$12.50" where the locale would print the bare "USD" and its own money also uses "$" (es-MX, es-AR, en-AU).
19201
+ * (en-CA "US$12.50", de-DE "12,50 $", ja-JP "$12.50"), "US$12.50" where the locale would print the bare "USD" and its own money also uses "$" (depends on the ICU data: es-MX and en-AU are typical; where ICU already prints "US$" nothing is added).
19199
19202
  * An explicit `currencyDisplay` in `options` and every other currency are left to Intl. Works on `formatToParts`, so it does not depend on one ICU version's patterns.
19200
19203
  */
19201
19204
  export declare function uiCurrencyFormatter(currency: string, locale?: string, options?: Intl.NumberFormatOptions): Pick<Intl.NumberFormat, 'format'>;