@forgeroute/ui 0.4.87 → 0.4.88
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-ui-labels.es-jZuBPL40.mjs → forgeroute-ui-ui-labels.es-Hp0NTuG7.mjs} +2 -1
- package/fesm2022/forgeroute-ui-ui-labels.es-Hp0NTuG7.mjs.map +1 -0
- package/fesm2022/forgeroute-ui.mjs +149 -12
- package/fesm2022/forgeroute-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/forgeroute-ui.d.ts +73 -20
- package/fesm2022/forgeroute-ui-ui-labels.es-jZuBPL40.mjs.map +0 -1
package/package.json
CHANGED
package/types/forgeroute-ui.d.ts
CHANGED
|
@@ -1047,6 +1047,7 @@ export declare const UI_DEFAULT_LABELS: {
|
|
|
1047
1047
|
readonly 'fileInput.placeholder': "No file chosen";
|
|
1048
1048
|
readonly 'fileInput.removeLabel': "Remove";
|
|
1049
1049
|
readonly 'fixedFooter.ariaLabel': "Page actions";
|
|
1050
|
+
readonly 'skipLink.ariaLabel': "Skip links";
|
|
1050
1051
|
readonly 'imageGallery.ariaLabel': "Image gallery";
|
|
1051
1052
|
readonly 'imageGalleryDialog.closeLabel': "Close";
|
|
1052
1053
|
readonly 'imageGalleryDialog.galleryLabel': "Image gallery";
|
|
@@ -4224,7 +4225,7 @@ export declare class SidePanelComponent implements OnDestroy {
|
|
|
4224
4225
|
readonly cancelLabel: import("@angular/core").Signal<string>;
|
|
4225
4226
|
/** Right-aligned primary action button label. Empty string = hidden. */
|
|
4226
4227
|
readonly primaryLabel: import("@angular/core").InputSignal<string>;
|
|
4227
|
-
readonly primaryVariant: import("@angular/core").InputSignal<"
|
|
4228
|
+
readonly primaryVariant: import("@angular/core").InputSignal<"warning" | "primary" | "danger">;
|
|
4228
4229
|
readonly primaryLoading: import("@angular/core").InputSignal<boolean>;
|
|
4229
4230
|
readonly primaryDisabled: import("@angular/core").InputSignal<boolean>;
|
|
4230
4231
|
/** `data-testid` of the Cancel button; none when empty (default). */
|
|
@@ -5109,7 +5110,7 @@ export declare class TooltipDirective {
|
|
|
5109
5110
|
/** Tooltip text; empty or null disables the tooltip. */
|
|
5110
5111
|
readonly uiTooltip: import("@angular/core").InputSignal<string | null | undefined>;
|
|
5111
5112
|
/** Preferred side; flips to the other side when there is no room. */
|
|
5112
|
-
readonly tooltipPosition: import("@angular/core").InputSignal<"
|
|
5113
|
+
readonly tooltipPosition: import("@angular/core").InputSignal<"top" | "bottom">;
|
|
5113
5114
|
private readonly host;
|
|
5114
5115
|
private readonly doc;
|
|
5115
5116
|
private bubble;
|
|
@@ -5877,7 +5878,7 @@ export declare class StepperComponent {
|
|
|
5877
5878
|
* its circle, one continuous line behind the circles that fills as steps complete; a complete step shows a check, the current step an
|
|
5878
5879
|
* accent ring with a dot, an upcoming step an empty circle (no numbers). Circles are 40px (32px with `size="sm"`).
|
|
5879
5880
|
*/
|
|
5880
|
-
readonly labelPosition: import("@angular/core").InputSignal<"
|
|
5881
|
+
readonly labelPosition: import("@angular/core").InputSignal<"below" | "beside">;
|
|
5881
5882
|
/** Viewport width in px below which a horizontal stepper is drawn vertical (labels beside the circles), e.g. `640`. null (default) = never. */
|
|
5882
5883
|
readonly stackBelow: import("@angular/core").InputSignal<number | null>;
|
|
5883
5884
|
/** CSS length (e.g. `10.5rem`): horizontal only - the list gets `min-width: calc(<step count> * <value>)`. Empty (default) = no minimum. */
|
|
@@ -5909,7 +5910,7 @@ export declare class StepperComponent {
|
|
|
5909
5910
|
protected readonly rows: import("@angular/core").Signal<{
|
|
5910
5911
|
step: StepperStep;
|
|
5911
5912
|
index: number;
|
|
5912
|
-
state: "
|
|
5913
|
+
state: "current" | "complete" | "upcoming";
|
|
5913
5914
|
error: boolean;
|
|
5914
5915
|
errorMessage: string;
|
|
5915
5916
|
selectable: boolean;
|
|
@@ -6539,7 +6540,7 @@ export declare class ButtonComponent {
|
|
|
6539
6540
|
* `ghost-start`: a ghost button for list / section toggles - a full-width row with its content aligned to the start, transparent
|
|
6540
6541
|
* background, hover tint and the normal focus ring. Pair it with `ariaExpanded` / `ariaPressed`; the label may contain a heading element.
|
|
6541
6542
|
*/
|
|
6542
|
-
readonly variant: import("@angular/core").InputSignal<"
|
|
6543
|
+
readonly variant: import("@angular/core").InputSignal<"warning" | "link" | "primary" | "danger" | "secondary" | "ghost" | "ghost-start" | "tab" | "icon" | "icon-danger">;
|
|
6543
6544
|
/** 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`). */
|
|
6544
6545
|
readonly routerLink: import("@angular/core").InputSignal<string | readonly unknown[] | null>;
|
|
6545
6546
|
/** Query params of the `routerLink` (e.g. `{ section: 'deal-defaults' }`). */
|
|
@@ -6560,7 +6561,7 @@ export declare class ButtonComponent {
|
|
|
6560
6561
|
*/
|
|
6561
6562
|
readonly href: import("@angular/core").InputSignal<string | null>;
|
|
6562
6563
|
/** Where to open the `href` (`_blank` = a new tab). */
|
|
6563
|
-
readonly target: import("@angular/core").InputSignal<"
|
|
6564
|
+
readonly target: import("@angular/core").InputSignal<"_blank" | "_self" | "_parent" | "_top" | null>;
|
|
6564
6565
|
/** `rel` of the `href` link. A `_blank` target always gets `noopener noreferrer` added. */
|
|
6565
6566
|
readonly rel: import("@angular/core").InputSignal<string | null>;
|
|
6566
6567
|
/** The href when it is allowed (http, https, mailto, tel, sms or a relative URL), else null. */
|
|
@@ -6584,8 +6585,8 @@ export declare class ButtonComponent {
|
|
|
6584
6585
|
private readonly _narrow;
|
|
6585
6586
|
readonly color: import("@angular/core").InputSignal<string | undefined>;
|
|
6586
6587
|
readonly active: import("@angular/core").InputSignal<boolean>;
|
|
6587
|
-
readonly size: import("@angular/core").InputSignal<"
|
|
6588
|
-
readonly type: import("@angular/core").InputSignal<"
|
|
6588
|
+
readonly size: import("@angular/core").InputSignal<"xs" | "sm" | "md" | "lg">;
|
|
6589
|
+
readonly type: import("@angular/core").InputSignal<"button" | "reset" | "submit">;
|
|
6589
6590
|
readonly disabled: import("@angular/core").InputSignal<boolean>;
|
|
6590
6591
|
readonly loading: import("@angular/core").InputSignal<boolean>;
|
|
6591
6592
|
readonly fullWidth: import("@angular/core").InputSignal<boolean>;
|
|
@@ -7228,7 +7229,7 @@ export declare class ImportSourceGridComponent {
|
|
|
7228
7229
|
/** The `value` of the picked source (highlighted). `tile` only: the `card` appearance does not keep a selection. */
|
|
7229
7230
|
readonly selected: import("@angular/core").InputSignal<string>;
|
|
7230
7231
|
/** `tile`: the compact buttons of the import window. `card`: one `ui-detail-card` per source with its own select button (used on a page). */
|
|
7231
|
-
readonly appearance: import("@angular/core").InputSignal<"
|
|
7232
|
+
readonly appearance: import("@angular/core").InputSignal<"tile" | "card">;
|
|
7232
7233
|
/** `card`: disables every card's button (for example while the page is saving). */
|
|
7233
7234
|
readonly disabled: import("@angular/core").InputSignal<boolean>;
|
|
7234
7235
|
/** `card`: the text of each card's button. */
|
|
@@ -7716,7 +7717,7 @@ export declare class TextInputComponent implements ControlValueAccessor, Validat
|
|
|
7716
7717
|
readonly passwordRequirements: import("@angular/core").InputSignal<boolean>;
|
|
7717
7718
|
/** Rules for `passwordRequirements`; default = the library's five rules (8+ characters, upper, lower, digit, special). */
|
|
7718
7719
|
readonly passwordRules: import("@angular/core").InputSignal<readonly PasswordRule[] | undefined>;
|
|
7719
|
-
readonly type: import("@angular/core").InputSignal<"number" | "email" | "text" | "
|
|
7720
|
+
readonly type: import("@angular/core").InputSignal<"number" | "email" | "text" | "password" | "tel" | "url">;
|
|
7720
7721
|
readonly maxlength: import("@angular/core").InputSignal<number | undefined>;
|
|
7721
7722
|
readonly required: import("@angular/core").InputSignal<boolean>;
|
|
7722
7723
|
readonly autocomplete: import("@angular/core").InputSignal<string>;
|
|
@@ -7725,7 +7726,7 @@ export declare class TextInputComponent implements ControlValueAccessor, Validat
|
|
|
7725
7726
|
* `search`, `text`, `none`). Empty (default) = the browser's default for the field, except `type="tel"`, which keeps `tel`.
|
|
7726
7727
|
* It only picks the keyboard; it does not restrict what can be typed or pasted.
|
|
7727
7728
|
*/
|
|
7728
|
-
readonly inputmode: import("@angular/core").InputSignal<"" | "
|
|
7729
|
+
readonly inputmode: import("@angular/core").InputSignal<"" | "email" | "text" | "decimal" | "none" | "search" | "tel" | "url" | "numeric">;
|
|
7729
7730
|
readonly readonly: import("@angular/core").InputSignal<boolean>;
|
|
7730
7731
|
readonly hint: import("@angular/core").InputSignal<string>;
|
|
7731
7732
|
/** 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. */
|
|
@@ -7797,7 +7798,7 @@ export declare class TextInputComponent implements ControlValueAccessor, Validat
|
|
|
7797
7798
|
protected readonly _stepAttr: import("@angular/core").Signal<string | null>;
|
|
7798
7799
|
protected readonly _revealable: import("@angular/core").Signal<boolean>;
|
|
7799
7800
|
protected readonly _shown: import("@angular/core").WritableSignal<boolean>;
|
|
7800
|
-
protected readonly _inputType: import("@angular/core").Signal<"number" | "email" | "text" | "
|
|
7801
|
+
protected readonly _inputType: import("@angular/core").Signal<"number" | "email" | "text" | "password" | "tel" | "url">;
|
|
7801
7802
|
protected readonly _eyePath: string;
|
|
7802
7803
|
protected readonly _eyeOffPath: string;
|
|
7803
7804
|
protected readonly _showRequirements: import("@angular/core").Signal<boolean>;
|
|
@@ -9534,6 +9535,8 @@ export interface DropdownItem {
|
|
|
9534
9535
|
disabled?: boolean;
|
|
9535
9536
|
/** Optional 14px icon before the label: an SVG path (the `d` value, like a toolbar action's `icon`). Decorative (hidden from assistive tech). */
|
|
9536
9537
|
icon?: string;
|
|
9538
|
+
/** Optional smaller, muted second line under the label (e.g. what the choice does). Read by assistive technology as the item's description, not as part of its name. Plain text. */
|
|
9539
|
+
description?: string;
|
|
9537
9540
|
}
|
|
9538
9541
|
/** Which edge of the trigger the menu lines up with: `auto` (default) opens from the trigger's left edge and switches to its right edge when the menu would run off the right of the screen. */
|
|
9539
9542
|
export type DropdownAlign = 'auto' | 'start' | 'end';
|
|
@@ -9545,7 +9548,7 @@ export declare class DropdownComponent {
|
|
|
9545
9548
|
readonly loader: import("@angular/core").InputSignal<(() => Promise<DropdownItem[]>) | null>;
|
|
9546
9549
|
readonly active: import("@angular/core").InputSignal<boolean>;
|
|
9547
9550
|
readonly activeValue: import("@angular/core").InputSignal<string>;
|
|
9548
|
-
readonly variant: import("@angular/core").InputSignal<"
|
|
9551
|
+
readonly variant: import("@angular/core").InputSignal<"button" | "badge">;
|
|
9549
9552
|
/** Trigger size for `variant="button"`: `sm` (default, the compact toolbar look) or `md` (same padding and type as a medium `ui-button`). */
|
|
9550
9553
|
readonly size: import("@angular/core").InputSignal<"sm" | "md">;
|
|
9551
9554
|
readonly menuWidth: import("@angular/core").InputSignal<string>;
|
|
@@ -11194,9 +11197,9 @@ export declare class ChipGroupComponent {
|
|
|
11194
11197
|
readonly spaceAbove: import("@angular/core").InputSignal<"none" | "sm" | "md">;
|
|
11195
11198
|
/** Space below the chip group. */
|
|
11196
11199
|
readonly spaceBelow: import("@angular/core").InputSignal<"none" | "sm" | "md">;
|
|
11197
|
-
protected readonly _gap: import("@angular/core").Signal<"
|
|
11198
|
-
protected readonly _spaceAbove: import("@angular/core").Signal<"0" | "
|
|
11199
|
-
protected readonly _spaceBelow: import("@angular/core").Signal<"0" | "
|
|
11200
|
+
protected readonly _gap: import("@angular/core").Signal<"8px" | "12px" | "6px">;
|
|
11201
|
+
protected readonly _spaceAbove: import("@angular/core").Signal<"0" | "12px" | "6px">;
|
|
11202
|
+
protected readonly _spaceBelow: import("@angular/core").Signal<"0" | "12px" | "6px">;
|
|
11200
11203
|
static ɵfac: i0.ɵɵFactoryDeclaration<ChipGroupComponent, never>;
|
|
11201
11204
|
static ɵcmp: i0.ɵɵComponentDeclaration<ChipGroupComponent, "ui-chip-group", never, {
|
|
11202
11205
|
"gap": {
|
|
@@ -12119,7 +12122,7 @@ export declare class AddressInputComponent implements ControlValueAccessor, Vali
|
|
|
12119
12122
|
* the object. `valueChange` always emits the object. A written string is read with `parseAddressValue` for display only: the control keeps
|
|
12120
12123
|
* the original text until the user edits a field (so a text the parser cannot split is not rewritten on load).
|
|
12121
12124
|
*/
|
|
12122
|
-
readonly valueFormat: import("@angular/core").InputSignal<"object" | "
|
|
12125
|
+
readonly valueFormat: import("@angular/core").InputSignal<"object" | "text" | "auto">;
|
|
12123
12126
|
/** 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. */
|
|
12124
12127
|
readonly zipPattern: import("@angular/core").InputSignal<RegExp | null>;
|
|
12125
12128
|
/** Message shown when the ZIP breaks `zipPattern`. */
|
|
@@ -13968,7 +13971,7 @@ export declare class PdfHotspotComponent {
|
|
|
13968
13971
|
/** `ready`: clickable; `blocked`: disabled (a prerequisite is missing); `signed`: shows `image`. */
|
|
13969
13972
|
readonly state: import("@angular/core").InputSignal<"ready" | "blocked" | "signed">;
|
|
13970
13973
|
/** `warning` gives the ready state an amber look (e.g. for initials), default is blue. */
|
|
13971
|
-
readonly tone: import("@angular/core").InputSignal<"
|
|
13974
|
+
readonly tone: import("@angular/core").InputSignal<"warning" | "primary">;
|
|
13972
13975
|
/** Text of the ready button (e.g. "Sign Here"). */
|
|
13973
13976
|
readonly labelInput: import("@angular/core").InputSignal<string | null>;
|
|
13974
13977
|
readonly label: import("@angular/core").Signal<string>;
|
|
@@ -14393,6 +14396,56 @@ export declare class FixedFooterComponent {
|
|
|
14393
14396
|
};
|
|
14394
14397
|
}, {}, never, ["*"], true, never>;
|
|
14395
14398
|
}
|
|
14399
|
+
/**
|
|
14400
|
+
* "Skip to main content" link for a page that is NOT inside `ui-app-shell` (a public page, a standalone flow). Put it as the FIRST element of the page:
|
|
14401
|
+
*
|
|
14402
|
+
* <ui-skip-link target="shop-main" />
|
|
14403
|
+
* ...
|
|
14404
|
+
* <main id="shop-main"> ... </main>
|
|
14405
|
+
*
|
|
14406
|
+
* It is a real link (`<a href="#target">`, so it works as a link for assistive technology and with a middle-click) and sits inside its own named
|
|
14407
|
+
* `navigation` landmark ("Skip links"), so no content is outside a landmark. It is off screen until it receives keyboard focus. Activating it does not
|
|
14408
|
+
* change the URL (the app uses the router): it moves focus to the element with the target id (giving it `tabindex="-1"` when it has none) and scrolls it
|
|
14409
|
+
* into view. An unknown target does nothing. `ui-app-shell` keeps its own skip link.
|
|
14410
|
+
*
|
|
14411
|
+
* Inputs: `target` (element id, default `main-content`), `label` (default: the translated "Skip to main content"), `ariaLabel` (the landmark's name, default "Skip links").
|
|
14412
|
+
* Output: `activated` (the target id, when focus was moved).
|
|
14413
|
+
*/
|
|
14414
|
+
export declare class SkipLinkComponent {
|
|
14415
|
+
private readonly doc;
|
|
14416
|
+
private readonly labels;
|
|
14417
|
+
/** Id of the element that receives focus. */
|
|
14418
|
+
readonly target: import("@angular/core").InputSignal<string>;
|
|
14419
|
+
/** The link text (default: translated "Skip to main content"). */
|
|
14420
|
+
readonly label: import("@angular/core").InputSignal<string>;
|
|
14421
|
+
/** The accessible name of the landmark (default: translated "Skip links"). */
|
|
14422
|
+
readonly ariaLabel: import("@angular/core").InputSignal<string>;
|
|
14423
|
+
/** Fires with the target id when focus was moved. */
|
|
14424
|
+
readonly activated: import("@angular/core").OutputEmitterRef<string>;
|
|
14425
|
+
protected readonly text: import("@angular/core").Signal<string>;
|
|
14426
|
+
protected readonly landmarkLabel: import("@angular/core").Signal<string>;
|
|
14427
|
+
protected skip(event: Event): void;
|
|
14428
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SkipLinkComponent, never>;
|
|
14429
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SkipLinkComponent, "ui-skip-link", never, {
|
|
14430
|
+
"target": {
|
|
14431
|
+
"alias": "target";
|
|
14432
|
+
"required": false;
|
|
14433
|
+
"isSignal": true;
|
|
14434
|
+
};
|
|
14435
|
+
"label": {
|
|
14436
|
+
"alias": "label";
|
|
14437
|
+
"required": false;
|
|
14438
|
+
"isSignal": true;
|
|
14439
|
+
};
|
|
14440
|
+
"ariaLabel": {
|
|
14441
|
+
"alias": "ariaLabel";
|
|
14442
|
+
"required": false;
|
|
14443
|
+
"isSignal": true;
|
|
14444
|
+
};
|
|
14445
|
+
}, {
|
|
14446
|
+
"activated": "activated";
|
|
14447
|
+
}, never, never, true, never>;
|
|
14448
|
+
}
|
|
14396
14449
|
/** One column (stage) of a [ui-board]. `items` are the host's own records; the board never reads their fields. */
|
|
14397
14450
|
export interface BoardColumn<T = unknown> {
|
|
14398
14451
|
/** Unique id of the column (the stage key); reported in `from` / `to` of a move. */
|
|
@@ -16861,7 +16914,7 @@ export declare class SetupWizardComponent {
|
|
|
16861
16914
|
protected customHintId(): string;
|
|
16862
16915
|
protected readonly importBlocked: import("@angular/core").Signal<boolean>;
|
|
16863
16916
|
/** 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). */
|
|
16864
|
-
protected readonly splitTab: import("@angular/core").WritableSignal<"
|
|
16917
|
+
protected readonly splitTab: import("@angular/core").WritableSignal<"extra" | "main">;
|
|
16865
16918
|
protected readonly splitTabs: import("@angular/core").Signal<{
|
|
16866
16919
|
key: string;
|
|
16867
16920
|
label: string;
|
|
@@ -19124,7 +19177,7 @@ export declare class PaymentSidePanelComponent {
|
|
|
19124
19177
|
private readonly terminalAvailable;
|
|
19125
19178
|
/** value -> label of every live method the rendered plugins contribute (the first plugin wins a duplicate value). */
|
|
19126
19179
|
private readonly liveMethods;
|
|
19127
|
-
protected readonly kind: import("@angular/core").Signal<"none" | "
|
|
19180
|
+
protected readonly kind: import("@angular/core").Signal<"none" | "manual" | "live" | "terminal">;
|
|
19128
19181
|
private kindOf;
|
|
19129
19182
|
/** 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. */
|
|
19130
19183
|
readonly methodList: import("@angular/core").Signal<PaymentMethodOption[]>;
|