@forgeroute/ui 0.5.3 → 0.5.4

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.3",
3
+ "version": "0.5.4",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=22.0.0",
6
6
  "@angular/core": ">=22.0.0",
@@ -3565,7 +3565,7 @@ export declare class SelectComponent implements ControlValueAccessor, Validator,
3565
3565
  readonly error: import("@angular/core").InputSignal<string>;
3566
3566
  /** The host's "tried to submit" flag (e.g. after a failed Save click). `true` reveals the message of an untouched field at once (the field also shows it after the user left THIS field); switching it from true back to false forgets that the field was left. */
3567
3567
  readonly showErrors: import("@angular/core").InputSignal<boolean>;
3568
- readonly size: import("@angular/core").InputSignal<"default" | "sm">;
3568
+ readonly size: import("@angular/core").InputSignal<"sm" | "default">;
3569
3569
  readonly _disabledInput: import("@angular/core").InputSignal<boolean>;
3570
3570
  private readonly _cvaDisabled;
3571
3571
  protected readonly disabled: import("@angular/core").Signal<boolean>;
@@ -5773,7 +5773,7 @@ export declare class AudioPlayerComponent {
5773
5773
  /** Accessible name of the player. */
5774
5774
  readonly ariaLabel: import("@angular/core").InputSignal<string>;
5775
5775
  /** How much to load before play: 'metadata' (default), 'auto' or 'none'. */
5776
- readonly preload: import("@angular/core").InputSignal<"auto" | "none" | "metadata">;
5776
+ readonly preload: import("@angular/core").InputSignal<"none" | "metadata" | "auto">;
5777
5777
  /** Fires when the browser can't load or decode the source. */
5778
5778
  readonly playbackError: import("@angular/core").OutputEmitterRef<void>;
5779
5779
  protected readonly failed: import("@angular/core").WritableSignal<boolean>;
@@ -8075,7 +8075,7 @@ export declare class ButtonComponent {
8075
8075
  * `ghost-start`: a ghost button for list / section toggles - a full-width row with its content aligned to the start, transparent
8076
8076
  * background, hover tint and the normal focus ring. Pair it with `ariaExpanded` / `ariaPressed`; the label may contain a heading element.
8077
8077
  */
8078
- readonly variant: import("@angular/core").InputSignal<"primary" | "secondary" | "danger" | "warning" | "link" | "ghost" | "ghost-start" | "tab" | "icon" | "icon-danger">;
8078
+ readonly variant: import("@angular/core").InputSignal<"link" | "primary" | "secondary" | "danger" | "warning" | "ghost" | "ghost-start" | "tab" | "icon" | "icon-danger">;
8079
8079
  /** 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`). */
8080
8080
  readonly routerLink: import("@angular/core").InputSignal<string | readonly unknown[] | null>;
8081
8081
  /** Query params of the `routerLink` (e.g. `{ section: 'deal-defaults' }`). */
@@ -9264,7 +9264,7 @@ export declare class TextInputComponent implements ControlValueAccessor, Validat
9264
9264
  * `search`, `text`, `none`). Empty (default) = the browser's default for the field, except `type="tel"`, which keeps `tel`.
9265
9265
  * It only picks the keyboard; it does not restrict what can be typed or pasted.
9266
9266
  */
9267
- readonly inputmode: import("@angular/core").InputSignal<"" | "numeric" | "decimal" | "email" | "text" | "none" | "search" | "tel" | "url">;
9267
+ readonly inputmode: import("@angular/core").InputSignal<"" | "none" | "email" | "text" | "search" | "numeric" | "decimal" | "tel" | "url">;
9268
9268
  readonly readonly: import("@angular/core").InputSignal<boolean>;
9269
9269
  readonly hint: import("@angular/core").InputSignal<string>;
9270
9270
  /** 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. */
@@ -10768,7 +10768,7 @@ export declare class DropdownComponent {
10768
10768
  readonly loader: import("@angular/core").InputSignal<(() => Promise<DropdownItem[]>) | null>;
10769
10769
  readonly active: import("@angular/core").InputSignal<boolean>;
10770
10770
  readonly activeValue: import("@angular/core").InputSignal<string>;
10771
- readonly variant: import("@angular/core").InputSignal<"badge" | "button">;
10771
+ readonly variant: import("@angular/core").InputSignal<"button" | "badge">;
10772
10772
  /** Trigger size for `variant="button"`: `sm` (default, the compact toolbar look) or `md` (same padding and type as a medium `ui-button`). */
10773
10773
  readonly size: import("@angular/core").InputSignal<"sm" | "md">;
10774
10774
  readonly menuWidth: import("@angular/core").InputSignal<string>;
@@ -11101,7 +11101,7 @@ export declare class FormRowComponent {
11101
11101
  * child simply takes the full width. Keep a numeric span within the row's `cols` (use `all` for the whole row).
11102
11102
  */
11103
11103
  export declare class FormColSpanDirective {
11104
- readonly uiColSpan: import("@angular/core").InputSignal<"" | 2 | 3 | "2" | "3" | "all">;
11104
+ readonly uiColSpan: import("@angular/core").InputSignal<"" | "2" | 2 | 3 | "3" | "all">;
11105
11105
  protected readonly _class: import("@angular/core").Signal<string>;
11106
11106
  static ɵfac: i0.ɵɵFactoryDeclaration<FormColSpanDirective, never>;
11107
11107
  static ɵdir: i0.ɵɵDirectiveDeclaration<FormColSpanDirective, "[uiColSpan]", never, {
@@ -12417,9 +12417,9 @@ export declare class ChipGroupComponent {
12417
12417
  readonly spaceAbove: import("@angular/core").InputSignal<"none" | "sm" | "md">;
12418
12418
  /** Space below the chip group. */
12419
12419
  readonly spaceBelow: import("@angular/core").InputSignal<"none" | "sm" | "md">;
12420
- protected readonly _gap: import("@angular/core").Signal<"6px" | "12px" | "8px">;
12421
- protected readonly _spaceAbove: import("@angular/core").Signal<"0" | "6px" | "12px">;
12422
- protected readonly _spaceBelow: import("@angular/core").Signal<"0" | "6px" | "12px">;
12420
+ protected readonly _gap: import("@angular/core").Signal<"8px" | "12px" | "6px">;
12421
+ protected readonly _spaceAbove: import("@angular/core").Signal<"0" | "12px" | "6px">;
12422
+ protected readonly _spaceBelow: import("@angular/core").Signal<"0" | "12px" | "6px">;
12423
12423
  static ɵfac: i0.ɵɵFactoryDeclaration<ChipGroupComponent, never>;
12424
12424
  static ɵcmp: i0.ɵɵComponentDeclaration<ChipGroupComponent, "ui-chip-group", never, {
12425
12425
  "gap": {
@@ -13383,7 +13383,7 @@ export declare class AddressInputComponent implements ControlValueAccessor, Vali
13383
13383
  * the object. `valueChange` always emits the object. A written string is read with `parseAddressValue` for display only: the control keeps
13384
13384
  * the original text until the user edits a field (so a text the parser cannot split is not rewritten on load).
13385
13385
  */
13386
- readonly valueFormat: import("@angular/core").InputSignal<"object" | "auto" | "text">;
13386
+ readonly valueFormat: import("@angular/core").InputSignal<"object" | "text" | "auto">;
13387
13387
  /** 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
13388
  readonly zipPattern: import("@angular/core").InputSignal<RegExp | null>;
13389
13389
  /** Message shown when the ZIP breaks `zipPattern`. */
@@ -13619,6 +13619,8 @@ export type ImageAlign = 'start' | 'center' | 'end';
13619
13619
  * - Size: `width` / `height` (CSS lengths, e.g. "200px", "100%") fix the box and the image fills it per `fit`; without them
13620
13620
  * the image keeps its natural size, capped by `maxWidth` (default 100%) and `maxHeight`. `aspectRatio` ("4 / 3", "1")
13621
13621
  * reserves the space before the image loads so the page does not jump.
13622
+ * - `positionX` / `positionY` (percent, default 50 / 50 = centered): the focal point kept visible when `fit="cover"` crops the image (CSS `object-position`);
13623
+ * the saved result of `ui-image-reposition` / `ui-image-field`. Missing or out-of-range values are centered / clamped.
13622
13624
  * - `radius` none | sm | md | lg | full, `bordered`, `align` (start | center | end, for an image narrower than its row).
13623
13625
  * - `placeholder` (default true): a neutral icon in the same box when there is no `src` or it fails to load. false renders nothing then.
13624
13626
  * - `priority`: above-the-fold image - loads eagerly with high fetch priority. Otherwise `loading="lazy"` and async decoding.
@@ -13638,6 +13640,11 @@ export declare class ImageComponent {
13638
13640
  /** Alt text; '' (default) marks the image decorative. */
13639
13641
  readonly alt: import("@angular/core").InputSignal<string>;
13640
13642
  readonly fit: import("@angular/core").InputSignal<ImageFit>;
13643
+ /** Focal point, percent from the left (0-100, 50 = centered): which part stays visible when the image is cropped by `fit="cover"`. */
13644
+ readonly positionX: import("@angular/core").InputSignal<number | null | undefined>;
13645
+ /** Focal point, percent from the top (0-100, 50 = centered). */
13646
+ readonly positionY: import("@angular/core").InputSignal<number | null | undefined>;
13647
+ protected readonly objectPosition: import("@angular/core").Signal<string>;
13641
13648
  /** CSS width of the box (e.g. "200px", "100%"). Empty = natural width. */
13642
13649
  readonly width: import("@angular/core").InputSignal<string>;
13643
13650
  /** CSS height of the box. Empty = natural height. */
@@ -13696,6 +13703,16 @@ export declare class ImageComponent {
13696
13703
  "required": false;
13697
13704
  "isSignal": true;
13698
13705
  };
13706
+ "positionX": {
13707
+ "alias": "positionX";
13708
+ "required": false;
13709
+ "isSignal": true;
13710
+ };
13711
+ "positionY": {
13712
+ "alias": "positionY";
13713
+ "required": false;
13714
+ "isSignal": true;
13715
+ };
13699
13716
  "width": {
13700
13717
  "alias": "width";
13701
13718
  "required": false;
@@ -13774,6 +13791,9 @@ export interface GalleryImage {
13774
13791
  alt?: string;
13775
13792
  /** Visible caption shown under the picture while it is the shown one (library source 2026-11-06, not yet published). Empty / missing = no caption line. */
13776
13793
  caption?: string | null;
13794
+ /** Focal point of this picture in percent (50 = centered): the part that stays visible when `fit="cover"` crops it. */
13795
+ positionX?: number | null;
13796
+ positionY?: number | null;
13777
13797
  }
13778
13798
  /**
13779
13799
  * Image gallery (a "slideshow"): one large picture with previous / next buttons, a counter and dots. Put it inside a