@forgeroute/ui 0.4.82 → 0.4.83

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.82",
3
+ "version": "0.4.83",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=22.0.0",
6
6
  "@angular/core": ">=22.0.0",
@@ -4204,7 +4204,7 @@ export declare class SidePanelComponent implements OnDestroy {
4204
4204
  readonly cancelLabel: import("@angular/core").Signal<string>;
4205
4205
  /** Right-aligned primary action button label. Empty string = hidden. */
4206
4206
  readonly primaryLabel: import("@angular/core").InputSignal<string>;
4207
- readonly primaryVariant: import("@angular/core").InputSignal<"warning" | "primary" | "danger">;
4207
+ readonly primaryVariant: import("@angular/core").InputSignal<"primary" | "danger" | "warning">;
4208
4208
  readonly primaryLoading: import("@angular/core").InputSignal<boolean>;
4209
4209
  readonly primaryDisabled: import("@angular/core").InputSignal<boolean>;
4210
4210
  /** `data-testid` of the Cancel button; none when empty (default). */
@@ -5089,7 +5089,7 @@ export declare class TooltipDirective {
5089
5089
  /** Tooltip text; empty or null disables the tooltip. */
5090
5090
  readonly uiTooltip: import("@angular/core").InputSignal<string | null | undefined>;
5091
5091
  /** Preferred side; flips to the other side when there is no room. */
5092
- readonly tooltipPosition: import("@angular/core").InputSignal<"top" | "bottom">;
5092
+ readonly tooltipPosition: import("@angular/core").InputSignal<"bottom" | "top">;
5093
5093
  private readonly host;
5094
5094
  private readonly doc;
5095
5095
  private bubble;
@@ -5851,7 +5851,7 @@ export declare class StepperComponent {
5851
5851
  * its circle, one continuous line behind the circles that fills as steps complete; a complete step shows a check, the current step an
5852
5852
  * accent ring with a dot, an upcoming step an empty circle (no numbers). Circles are 40px (32px with `size="sm"`).
5853
5853
  */
5854
- readonly labelPosition: import("@angular/core").InputSignal<"below" | "beside">;
5854
+ readonly labelPosition: import("@angular/core").InputSignal<"beside" | "below">;
5855
5855
  /** Viewport width in px below which a horizontal stepper is drawn vertical (labels beside the circles), e.g. `640`. null (default) = never. */
5856
5856
  readonly stackBelow: import("@angular/core").InputSignal<number | null>;
5857
5857
  /** CSS length (e.g. `10.5rem`): horizontal only - the list gets `min-width: calc(<step count> * <value>)`. Empty (default) = no minimum. */
@@ -5883,7 +5883,7 @@ export declare class StepperComponent {
5883
5883
  protected readonly rows: import("@angular/core").Signal<{
5884
5884
  step: StepperStep;
5885
5885
  index: number;
5886
- state: "current" | "complete" | "upcoming";
5886
+ state: "complete" | "current" | "upcoming";
5887
5887
  error: boolean;
5888
5888
  errorMessage: string;
5889
5889
  selectable: boolean;
@@ -6513,7 +6513,7 @@ export declare class ButtonComponent {
6513
6513
  * `ghost-start`: a ghost button for list / section toggles - a full-width row with its content aligned to the start, transparent
6514
6514
  * background, hover tint and the normal focus ring. Pair it with `ariaExpanded` / `ariaPressed`; the label may contain a heading element.
6515
6515
  */
6516
- readonly variant: import("@angular/core").InputSignal<"warning" | "link" | "primary" | "danger" | "secondary" | "ghost" | "ghost-start" | "tab" | "icon" | "icon-danger">;
6516
+ readonly variant: import("@angular/core").InputSignal<"primary" | "secondary" | "danger" | "warning" | "link" | "ghost" | "ghost-start" | "tab" | "icon" | "icon-danger">;
6517
6517
  /** 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`). */
6518
6518
  readonly routerLink: import("@angular/core").InputSignal<string | readonly unknown[] | null>;
6519
6519
  /** Query params of the `routerLink` (e.g. `{ section: 'deal-defaults' }`). */
@@ -6534,7 +6534,7 @@ export declare class ButtonComponent {
6534
6534
  */
6535
6535
  readonly href: import("@angular/core").InputSignal<string | null>;
6536
6536
  /** Where to open the `href` (`_blank` = a new tab). */
6537
- readonly target: import("@angular/core").InputSignal<"_blank" | "_self" | "_parent" | "_top" | null>;
6537
+ readonly target: import("@angular/core").InputSignal<"_self" | "_blank" | "_parent" | "_top" | null>;
6538
6538
  /** `rel` of the `href` link. A `_blank` target always gets `noopener noreferrer` added. */
6539
6539
  readonly rel: import("@angular/core").InputSignal<string | null>;
6540
6540
  /** The href when it is allowed (http, https, mailto, tel, sms or a relative URL), else null. */
@@ -6558,8 +6558,8 @@ export declare class ButtonComponent {
6558
6558
  private readonly _narrow;
6559
6559
  readonly color: import("@angular/core").InputSignal<string | undefined>;
6560
6560
  readonly active: import("@angular/core").InputSignal<boolean>;
6561
- readonly size: import("@angular/core").InputSignal<"xs" | "sm" | "md" | "lg">;
6562
- readonly type: import("@angular/core").InputSignal<"button" | "reset" | "submit">;
6561
+ readonly size: import("@angular/core").InputSignal<"sm" | "md" | "lg" | "xs">;
6562
+ readonly type: import("@angular/core").InputSignal<"reset" | "submit" | "button">;
6563
6563
  readonly disabled: import("@angular/core").InputSignal<boolean>;
6564
6564
  readonly loading: import("@angular/core").InputSignal<boolean>;
6565
6565
  readonly fullWidth: import("@angular/core").InputSignal<boolean>;
@@ -7202,7 +7202,7 @@ export declare class ImportSourceGridComponent {
7202
7202
  /** The `value` of the picked source (highlighted). `tile` only: the `card` appearance does not keep a selection. */
7203
7203
  readonly selected: import("@angular/core").InputSignal<string>;
7204
7204
  /** `tile`: the compact buttons of the import window. `card`: one `ui-detail-card` per source with its own select button (used on a page). */
7205
- readonly appearance: import("@angular/core").InputSignal<"tile" | "card">;
7205
+ readonly appearance: import("@angular/core").InputSignal<"card" | "tile">;
7206
7206
  /** `card`: disables every card's button (for example while the page is saving). */
7207
7207
  readonly disabled: import("@angular/core").InputSignal<boolean>;
7208
7208
  /** `card`: the text of each card's button. */
@@ -7690,7 +7690,7 @@ export declare class TextInputComponent implements ControlValueAccessor, Validat
7690
7690
  readonly passwordRequirements: import("@angular/core").InputSignal<boolean>;
7691
7691
  /** Rules for `passwordRequirements`; default = the library's five rules (8+ characters, upper, lower, digit, special). */
7692
7692
  readonly passwordRules: import("@angular/core").InputSignal<readonly PasswordRule[] | undefined>;
7693
- readonly type: import("@angular/core").InputSignal<"number" | "email" | "text" | "password" | "tel" | "url">;
7693
+ readonly type: import("@angular/core").InputSignal<"number" | "email" | "text" | "tel" | "password" | "url">;
7694
7694
  readonly maxlength: import("@angular/core").InputSignal<number | undefined>;
7695
7695
  readonly required: import("@angular/core").InputSignal<boolean>;
7696
7696
  readonly autocomplete: import("@angular/core").InputSignal<string>;
@@ -7699,7 +7699,7 @@ export declare class TextInputComponent implements ControlValueAccessor, Validat
7699
7699
  * `search`, `text`, `none`). Empty (default) = the browser's default for the field, except `type="tel"`, which keeps `tel`.
7700
7700
  * It only picks the keyboard; it does not restrict what can be typed or pasted.
7701
7701
  */
7702
- readonly inputmode: import("@angular/core").InputSignal<"" | "email" | "text" | "decimal" | "none" | "search" | "tel" | "url" | "numeric">;
7702
+ readonly inputmode: import("@angular/core").InputSignal<"" | "numeric" | "decimal" | "email" | "text" | "none" | "search" | "tel" | "url">;
7703
7703
  readonly readonly: import("@angular/core").InputSignal<boolean>;
7704
7704
  readonly hint: import("@angular/core").InputSignal<string>;
7705
7705
  /** 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. */
@@ -7771,7 +7771,7 @@ export declare class TextInputComponent implements ControlValueAccessor, Validat
7771
7771
  protected readonly _stepAttr: import("@angular/core").Signal<string | null>;
7772
7772
  protected readonly _revealable: import("@angular/core").Signal<boolean>;
7773
7773
  protected readonly _shown: import("@angular/core").WritableSignal<boolean>;
7774
- protected readonly _inputType: import("@angular/core").Signal<"number" | "email" | "text" | "password" | "tel" | "url">;
7774
+ protected readonly _inputType: import("@angular/core").Signal<"number" | "email" | "text" | "tel" | "password" | "url">;
7775
7775
  protected readonly _eyePath: string;
7776
7776
  protected readonly _eyeOffPath: string;
7777
7777
  protected readonly _showRequirements: import("@angular/core").Signal<boolean>;
@@ -9519,7 +9519,7 @@ export declare class DropdownComponent {
9519
9519
  readonly loader: import("@angular/core").InputSignal<(() => Promise<DropdownItem[]>) | null>;
9520
9520
  readonly active: import("@angular/core").InputSignal<boolean>;
9521
9521
  readonly activeValue: import("@angular/core").InputSignal<string>;
9522
- readonly variant: import("@angular/core").InputSignal<"button" | "badge">;
9522
+ readonly variant: import("@angular/core").InputSignal<"badge" | "button">;
9523
9523
  /** Trigger size for `variant="button"`: `sm` (default, the compact toolbar look) or `md` (same padding and type as a medium `ui-button`). */
9524
9524
  readonly size: import("@angular/core").InputSignal<"sm" | "md">;
9525
9525
  readonly menuWidth: import("@angular/core").InputSignal<string>;
@@ -11086,9 +11086,9 @@ export declare class ChipGroupComponent {
11086
11086
  readonly spaceAbove: import("@angular/core").InputSignal<"none" | "sm" | "md">;
11087
11087
  /** Space below the chip group. */
11088
11088
  readonly spaceBelow: import("@angular/core").InputSignal<"none" | "sm" | "md">;
11089
- protected readonly _gap: import("@angular/core").Signal<"8px" | "12px" | "6px">;
11090
- protected readonly _spaceAbove: import("@angular/core").Signal<"0" | "12px" | "6px">;
11091
- protected readonly _spaceBelow: import("@angular/core").Signal<"0" | "12px" | "6px">;
11089
+ protected readonly _gap: import("@angular/core").Signal<"6px" | "12px" | "8px">;
11090
+ protected readonly _spaceAbove: import("@angular/core").Signal<"0" | "6px" | "12px">;
11091
+ protected readonly _spaceBelow: import("@angular/core").Signal<"0" | "6px" | "12px">;
11092
11092
  static ɵfac: i0.ɵɵFactoryDeclaration<ChipGroupComponent, never>;
11093
11093
  static ɵcmp: i0.ɵɵComponentDeclaration<ChipGroupComponent, "ui-chip-group", never, {
11094
11094
  "gap": {
@@ -11961,7 +11961,7 @@ export declare class AddressInputComponent implements ControlValueAccessor, Vali
11961
11961
  * the object. `valueChange` always emits the object. A written string is read with `parseAddressValue` for display only: the control keeps
11962
11962
  * the original text until the user edits a field (so a text the parser cannot split is not rewritten on load).
11963
11963
  */
11964
- readonly valueFormat: import("@angular/core").InputSignal<"object" | "text" | "auto">;
11964
+ readonly valueFormat: import("@angular/core").InputSignal<"object" | "auto" | "text">;
11965
11965
  /** 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. */
11966
11966
  readonly zipPattern: import("@angular/core").InputSignal<RegExp | null>;
11967
11967
  /** Message shown when the ZIP breaks `zipPattern`. */
@@ -13810,7 +13810,7 @@ export declare class PdfHotspotComponent {
13810
13810
  /** `ready`: clickable; `blocked`: disabled (a prerequisite is missing); `signed`: shows `image`. */
13811
13811
  readonly state: import("@angular/core").InputSignal<"ready" | "blocked" | "signed">;
13812
13812
  /** `warning` gives the ready state an amber look (e.g. for initials), default is blue. */
13813
- readonly tone: import("@angular/core").InputSignal<"warning" | "primary">;
13813
+ readonly tone: import("@angular/core").InputSignal<"primary" | "warning">;
13814
13814
  /** Text of the ready button (e.g. "Sign Here"). */
13815
13815
  readonly labelInput: import("@angular/core").InputSignal<string | null>;
13816
13816
  readonly label: import("@angular/core").Signal<string>;
@@ -16177,6 +16177,28 @@ export declare function downloadBlob(blob: Blob, fileName: string): void;
16177
16177
  * downloads folder.
16178
16178
  */
16179
16179
  export declare function fileNameFromContentDisposition(header: string | null | undefined): string;
16180
+ /** One cell of a CSV row: text, a number, or nothing (`null` / `undefined` become an empty cell). */
16181
+ export type CsvCell = string | number | null | undefined;
16182
+ /**
16183
+ * CSV / formula-injection guard. Excel, Sheets and Numbers run a cell that starts with = + - @ (or a tab / carriage return) as a
16184
+ * formula - also after leading spaces, which some spreadsheets skip - and exports carry free text (names, notes, subjects). Such a TEXT cell gets a leading apostrophe so it opens as plain text.
16185
+ * Numbers, and strings that are only a signed number with an optional currency symbol or percent sign (-12.50, -$12.50, +15125550177, -3%),
16186
+ * cannot form a formula and are left exactly as they are, so negative amounts and phone numbers keep their value.
16187
+ */
16188
+ export declare function csvSafeText(cell: CsvCell): string;
16189
+ /** One CSV cell as it is written to the file: formula-guarded, and wrapped in double quotes (inner quotes doubled) when it holds a comma, quote or line break. */
16190
+ export declare function csvCell(cell: CsvCell): string;
16191
+ /** The text of a CSV file (RFC 4180): the header row, then one line per row, comma separated, `\n` line ends, no trailing line break. */
16192
+ export declare function toCsv(headers: readonly CsvCell[], rows: readonly (readonly CsvCell[])[]): string;
16193
+ export interface DownloadCsvOptions {
16194
+ /** Start the file with a UTF-8 byte order mark so Excel reads accents correctly (default `false`). */
16195
+ bom?: boolean;
16196
+ }
16197
+ /**
16198
+ * Builds a CSV file from `headers` and `rows` (see {@link toCsv}) and starts its download as `fileName`
16199
+ * (`.csv` is added when the name has no extension of that kind). Uses {@link downloadBlob}, so it works in Firefox and Safari.
16200
+ */
16201
+ export declare function downloadCsv(fileName: string, headers: readonly CsvCell[], rows: readonly (readonly CsvCell[])[], options?: DownloadCsvOptions): void;
16180
16202
  /**
16181
16203
  * Builds a universal maps URL that opens turn-by-turn navigation.
16182
16204
  *
@@ -16681,7 +16703,7 @@ export declare class SetupWizardComponent {
16681
16703
  protected customHintId(): string;
16682
16704
  protected readonly importBlocked: import("@angular/core").Signal<boolean>;
16683
16705
  /** 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). */
16684
- protected readonly splitTab: import("@angular/core").WritableSignal<"extra" | "main">;
16706
+ protected readonly splitTab: import("@angular/core").WritableSignal<"main" | "extra">;
16685
16707
  protected readonly splitTabs: import("@angular/core").Signal<{
16686
16708
  key: string;
16687
16709
  label: string;
@@ -18944,7 +18966,7 @@ export declare class PaymentSidePanelComponent {
18944
18966
  private readonly terminalAvailable;
18945
18967
  /** value -> label of every live method the rendered plugins contribute (the first plugin wins a duplicate value). */
18946
18968
  private readonly liveMethods;
18947
- protected readonly kind: import("@angular/core").Signal<"none" | "manual" | "live" | "terminal">;
18969
+ protected readonly kind: import("@angular/core").Signal<"none" | "live" | "terminal" | "manual">;
18948
18970
  private kindOf;
18949
18971
  /** 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. */
18950
18972
  readonly methodList: import("@angular/core").Signal<PaymentMethodOption[]>;