@forgeroute/ui 0.4.80 → 0.4.82
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-offline.mjs +280 -25
- package/fesm2022/forgeroute-ui-offline.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-ui-labels.es-DPY2FHcg.mjs +1674 -0
- package/fesm2022/forgeroute-ui-ui-labels.es-DPY2FHcg.mjs.map +1 -0
- package/fesm2022/forgeroute-ui.mjs +480 -1655
- package/fesm2022/forgeroute-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/forgeroute-ui-offline.d.ts +104 -5
- package/types/forgeroute-ui.d.ts +222 -38
package/types/forgeroute-ui.d.ts
CHANGED
|
@@ -571,7 +571,7 @@ export interface PageResponse<T> {
|
|
|
571
571
|
* (`emailTemplateEditor.subjectPlaceholder`, `messagingSendMessagePanel.bulkMergeTagHint`): a dictionary handed to another interpolating system must escape them.
|
|
572
572
|
*
|
|
573
573
|
* Language and locale: the dictionary carries the locale of its dates, times and numbers in the `i18n.locale` marker ('en-US' / 'es-US'), so
|
|
574
|
-
* `setLabels(
|
|
574
|
+
* handing `setLabels()` the Spanish dictionary alone gives Spanish texts AND Spanish dates (`provideUiLanguage()` does this for you; the dictionary is a lazy chunk, see ui-language.ts). An app that calls `setLocale()` keeps full control (e.g. 'es-MX'); a
|
|
575
575
|
* dictionary of another language without the marker gets 'en-US' dates until the app sets a locale.
|
|
576
576
|
*
|
|
577
577
|
* Known limitation (ambient `uiText()` / `uiLocale()`): they read ONE process-wide service, the last `UiLabelsService` that was constructed.
|
|
@@ -2035,6 +2035,17 @@ export declare const UI_DEFAULT_LABELS: {
|
|
|
2035
2035
|
readonly 'dataTable.deleteConfirm': "Delete this record? This cannot be undone.";
|
|
2036
2036
|
readonly 'dataTable.deleteFailed': "Failed to delete. Please try again.";
|
|
2037
2037
|
readonly 'dataTable.genericError': "Something went wrong. Please try again.";
|
|
2038
|
+
readonly 'dataTable.loadError.offline': "You're offline, so your {{ items }} can't be shown. Reconnect to the internet and try again.";
|
|
2039
|
+
readonly 'dataTable.loadError.noCopy': "You're offline, so your {{ items }} can't be shown. There is no saved copy of this view on this device. Reconnect to the internet and try again.";
|
|
2040
|
+
readonly 'dataTable.loadError.unreachable': "Your {{ items }} can't load because the app can't reach the server. Your internet may be down or the server may be having a problem. Check your connection and try again.";
|
|
2041
|
+
readonly 'dataTable.loadError.timeout': "Your {{ items }} are taking too long to load. Your connection may be slow. Wait a moment and try again.";
|
|
2042
|
+
readonly 'dataTable.loadError.session': "Your session has ended, so your {{ items }} can't load. Sign in again to continue.";
|
|
2043
|
+
readonly 'dataTable.loadError.forbidden': "You don't have permission to view {{ items }}. Ask an administrator for access.";
|
|
2044
|
+
readonly 'dataTable.loadError.server': "The server had a problem loading your {{ items }}. This is usually temporary. Try again in a few minutes.";
|
|
2045
|
+
readonly 'dataTable.loadError.other': "Your {{ items }} couldn't be loaded. Try again, and contact support if it keeps happening.";
|
|
2046
|
+
readonly 'dataTable.actionError.offline': "You're offline, so this change wasn't made. Reconnect to the internet and try again.";
|
|
2047
|
+
readonly 'dataTable.actionError.unreachable': "This change wasn't made because the app can't reach the server. Check your connection and try again.";
|
|
2048
|
+
readonly 'dataTable.actionError.timeout': "This is taking too long, and the change may not have been saved. Check the list before you try again.";
|
|
2038
2049
|
readonly 'dataTable.noneDeletable': "None of the selected rows can be deleted.";
|
|
2039
2050
|
readonly 'dataTable.whatWillHappen': "What will happen";
|
|
2040
2051
|
readonly 'dataTable.never': "Never";
|
|
@@ -2171,6 +2182,21 @@ export declare const UI_DEFAULT_LABELS: {
|
|
|
2171
2182
|
readonly 'connection.result.syncStarted': "Sending your saved changes…";
|
|
2172
2183
|
readonly 'connection.result.discarded': "Discarded \"{{ label }}\".";
|
|
2173
2184
|
readonly 'connection.result.discardedAll': "Discarded all saved changes.";
|
|
2185
|
+
readonly 'connection.conflict.rowText': "This was changed by someone else after you saved it offline, so your change was not applied.";
|
|
2186
|
+
readonly 'connection.conflict.keepMine': "Keep my version";
|
|
2187
|
+
readonly 'connection.conflict.keepMineNamed': "Keep my version of {{ label }}";
|
|
2188
|
+
readonly 'connection.conflict.discard': "Discard my change";
|
|
2189
|
+
readonly 'connection.conflict.discardNamed': "Discard my change: {{ label }}";
|
|
2190
|
+
readonly 'connection.conflict.confirmTitle': "Keep my version?";
|
|
2191
|
+
readonly 'connection.conflict.confirmMessage': "Replace the newer version? Your change will overwrite what someone else saved. The other version is lost.";
|
|
2192
|
+
readonly 'connection.conflict.result.keeping': "Sending your version of \"{{ label }}\"…";
|
|
2193
|
+
readonly 'connection.conflict.error.disabled': "Keep my version is not turned on for this app.";
|
|
2194
|
+
readonly 'connection.conflict.error.notFound': "This saved change no longer exists.";
|
|
2195
|
+
readonly 'connection.conflict.error.notConflict': "This change is not waiting for your decision.";
|
|
2196
|
+
readonly 'connection.conflict.error.noStamp': "There is nothing to overwrite for this change.";
|
|
2197
|
+
readonly 'connection.conflict.result.sent': "Your version of \"{{ label }}\" was sent.";
|
|
2198
|
+
readonly 'connection.conflict.result.shortly': "Your version of \"{{ label }}\" will be sent shortly.";
|
|
2199
|
+
readonly 'connection.conflict.error.unknown': "Your version could not be sent yet. Your change is still saved on this device.";
|
|
2174
2200
|
readonly 'common.example': "e.g. {{ value }}";
|
|
2175
2201
|
readonly 'format.durationMinSec': "{{ m }}m {{ s }}s";
|
|
2176
2202
|
readonly 'format.durationSec': "{{ s }}s";
|
|
@@ -2219,6 +2245,8 @@ export declare const UI_DEFAULT_LABELS: {
|
|
|
2219
2245
|
readonly 'fileInput.word.audio': "audio";
|
|
2220
2246
|
readonly 'integrations.language': "en";
|
|
2221
2247
|
readonly 'i18n.locale': "en-US";
|
|
2248
|
+
readonly 'language.label': "Language";
|
|
2249
|
+
readonly 'language.automatic': "Automatic ({{ name }})";
|
|
2222
2250
|
readonly 'setupWizard.integrationTitle.twilio': "Twilio (calls & texts)";
|
|
2223
2251
|
readonly 'validation.requiredNoLabel': "This field is required.";
|
|
2224
2252
|
readonly 'common.nSelected': "{{ count }} selected";
|
|
@@ -2251,7 +2279,7 @@ export declare class UiLabelsService implements OnDestroy {
|
|
|
2251
2279
|
private readonly _explicitLocale;
|
|
2252
2280
|
/**
|
|
2253
2281
|
* BCP 47 locale used for dates, times and numbers. Resolution: the value the app set with `setLocale()` (full control), else the active dictionary's
|
|
2254
|
-
* `i18n.locale` marker (so `setLabels(
|
|
2282
|
+
* `i18n.locale` marker (so `setLabels()` with the Spanish dictionary alone gives Spanish dates and times: 'es-US'), else `en-US` (a dictionary of another language
|
|
2255
2283
|
* without the marker, or no dictionary).
|
|
2256
2284
|
*/
|
|
2257
2285
|
readonly locale: Signal<string>;
|
|
@@ -4176,7 +4204,7 @@ export declare class SidePanelComponent implements OnDestroy {
|
|
|
4176
4204
|
readonly cancelLabel: import("@angular/core").Signal<string>;
|
|
4177
4205
|
/** Right-aligned primary action button label. Empty string = hidden. */
|
|
4178
4206
|
readonly primaryLabel: import("@angular/core").InputSignal<string>;
|
|
4179
|
-
readonly primaryVariant: import("@angular/core").InputSignal<"
|
|
4207
|
+
readonly primaryVariant: import("@angular/core").InputSignal<"warning" | "primary" | "danger">;
|
|
4180
4208
|
readonly primaryLoading: import("@angular/core").InputSignal<boolean>;
|
|
4181
4209
|
readonly primaryDisabled: import("@angular/core").InputSignal<boolean>;
|
|
4182
4210
|
/** `data-testid` of the Cancel button; none when empty (default). */
|
|
@@ -4973,7 +5001,7 @@ export declare class AudioPlayerComponent {
|
|
|
4973
5001
|
/** Accessible name of the player. */
|
|
4974
5002
|
readonly ariaLabel: import("@angular/core").InputSignal<string>;
|
|
4975
5003
|
/** How much to load before play: 'metadata' (default), 'auto' or 'none'. */
|
|
4976
|
-
readonly preload: import("@angular/core").InputSignal<"
|
|
5004
|
+
readonly preload: import("@angular/core").InputSignal<"auto" | "none" | "metadata">;
|
|
4977
5005
|
/** Fires when the browser can't load or decode the source. */
|
|
4978
5006
|
readonly playbackError: import("@angular/core").OutputEmitterRef<void>;
|
|
4979
5007
|
protected readonly failed: import("@angular/core").WritableSignal<boolean>;
|
|
@@ -5061,7 +5089,7 @@ export declare class TooltipDirective {
|
|
|
5061
5089
|
/** Tooltip text; empty or null disables the tooltip. */
|
|
5062
5090
|
readonly uiTooltip: import("@angular/core").InputSignal<string | null | undefined>;
|
|
5063
5091
|
/** Preferred side; flips to the other side when there is no room. */
|
|
5064
|
-
readonly tooltipPosition: import("@angular/core").InputSignal<"
|
|
5092
|
+
readonly tooltipPosition: import("@angular/core").InputSignal<"top" | "bottom">;
|
|
5065
5093
|
private readonly host;
|
|
5066
5094
|
private readonly doc;
|
|
5067
5095
|
private bubble;
|
|
@@ -5394,7 +5422,7 @@ export declare class CheckboxComponent implements ControlValueAccessor, Validato
|
|
|
5394
5422
|
* 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.
|
|
5395
5423
|
* Default null: plain label text, exactly as before. Single mode only.
|
|
5396
5424
|
*/
|
|
5397
|
-
readonly headingLevel: import("@angular/core").InputSignal<2 | 3 | 4 |
|
|
5425
|
+
readonly headingLevel: import("@angular/core").InputSignal<1 | 2 | 3 | 4 | 5 | 6 | null>;
|
|
5398
5426
|
readonly indeterminate: import("@angular/core").InputSignal<boolean>;
|
|
5399
5427
|
readonly checked: import("@angular/core").ModelSignal<boolean>;
|
|
5400
5428
|
/**
|
|
@@ -5855,7 +5883,7 @@ export declare class StepperComponent {
|
|
|
5855
5883
|
protected readonly rows: import("@angular/core").Signal<{
|
|
5856
5884
|
step: StepperStep;
|
|
5857
5885
|
index: number;
|
|
5858
|
-
state: "
|
|
5886
|
+
state: "current" | "complete" | "upcoming";
|
|
5859
5887
|
error: boolean;
|
|
5860
5888
|
errorMessage: string;
|
|
5861
5889
|
selectable: boolean;
|
|
@@ -6369,7 +6397,7 @@ export declare class PhoneNumberPickerComponent {
|
|
|
6369
6397
|
protected readonly modeCtl: FormControl<string>;
|
|
6370
6398
|
protected readonly zipCtl: FormControl<string>;
|
|
6371
6399
|
protected readonly areaCtl: FormControl<string>;
|
|
6372
|
-
protected readonly step: import("@angular/core").WritableSignal<
|
|
6400
|
+
protected readonly step: import("@angular/core").WritableSignal<1 | 2 | 3>;
|
|
6373
6401
|
protected readonly mode: import("@angular/core").WritableSignal<PhoneNumberSearchMode>;
|
|
6374
6402
|
private readonly _zip;
|
|
6375
6403
|
private readonly _area;
|
|
@@ -6485,7 +6513,7 @@ export declare class ButtonComponent {
|
|
|
6485
6513
|
* `ghost-start`: a ghost button for list / section toggles - a full-width row with its content aligned to the start, transparent
|
|
6486
6514
|
* background, hover tint and the normal focus ring. Pair it with `ariaExpanded` / `ariaPressed`; the label may contain a heading element.
|
|
6487
6515
|
*/
|
|
6488
|
-
readonly variant: import("@angular/core").InputSignal<"
|
|
6516
|
+
readonly variant: import("@angular/core").InputSignal<"warning" | "link" | "primary" | "danger" | "secondary" | "ghost" | "ghost-start" | "tab" | "icon" | "icon-danger">;
|
|
6489
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`). */
|
|
6490
6518
|
readonly routerLink: import("@angular/core").InputSignal<string | readonly unknown[] | null>;
|
|
6491
6519
|
/** Query params of the `routerLink` (e.g. `{ section: 'deal-defaults' }`). */
|
|
@@ -6506,7 +6534,7 @@ export declare class ButtonComponent {
|
|
|
6506
6534
|
*/
|
|
6507
6535
|
readonly href: import("@angular/core").InputSignal<string | null>;
|
|
6508
6536
|
/** Where to open the `href` (`_blank` = a new tab). */
|
|
6509
|
-
readonly target: import("@angular/core").InputSignal<"
|
|
6537
|
+
readonly target: import("@angular/core").InputSignal<"_blank" | "_self" | "_parent" | "_top" | null>;
|
|
6510
6538
|
/** `rel` of the `href` link. A `_blank` target always gets `noopener noreferrer` added. */
|
|
6511
6539
|
readonly rel: import("@angular/core").InputSignal<string | null>;
|
|
6512
6540
|
/** The href when it is allowed (http, https, mailto, tel, sms or a relative URL), else null. */
|
|
@@ -6530,7 +6558,7 @@ export declare class ButtonComponent {
|
|
|
6530
6558
|
private readonly _narrow;
|
|
6531
6559
|
readonly color: import("@angular/core").InputSignal<string | undefined>;
|
|
6532
6560
|
readonly active: import("@angular/core").InputSignal<boolean>;
|
|
6533
|
-
readonly size: import("@angular/core").InputSignal<"
|
|
6561
|
+
readonly size: import("@angular/core").InputSignal<"xs" | "sm" | "md" | "lg">;
|
|
6534
6562
|
readonly type: import("@angular/core").InputSignal<"button" | "reset" | "submit">;
|
|
6535
6563
|
readonly disabled: import("@angular/core").InputSignal<boolean>;
|
|
6536
6564
|
readonly loading: import("@angular/core").InputSignal<boolean>;
|
|
@@ -7174,7 +7202,7 @@ export declare class ImportSourceGridComponent {
|
|
|
7174
7202
|
/** The `value` of the picked source (highlighted). `tile` only: the `card` appearance does not keep a selection. */
|
|
7175
7203
|
readonly selected: import("@angular/core").InputSignal<string>;
|
|
7176
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). */
|
|
7177
|
-
readonly appearance: import("@angular/core").InputSignal<"
|
|
7205
|
+
readonly appearance: import("@angular/core").InputSignal<"tile" | "card">;
|
|
7178
7206
|
/** `card`: disables every card's button (for example while the page is saving). */
|
|
7179
7207
|
readonly disabled: import("@angular/core").InputSignal<boolean>;
|
|
7180
7208
|
/** `card`: the text of each card's button. */
|
|
@@ -7662,7 +7690,7 @@ export declare class TextInputComponent implements ControlValueAccessor, Validat
|
|
|
7662
7690
|
readonly passwordRequirements: import("@angular/core").InputSignal<boolean>;
|
|
7663
7691
|
/** Rules for `passwordRequirements`; default = the library's five rules (8+ characters, upper, lower, digit, special). */
|
|
7664
7692
|
readonly passwordRules: import("@angular/core").InputSignal<readonly PasswordRule[] | undefined>;
|
|
7665
|
-
readonly type: import("@angular/core").InputSignal<"number" | "email" | "text" | "
|
|
7693
|
+
readonly type: import("@angular/core").InputSignal<"number" | "email" | "text" | "password" | "tel" | "url">;
|
|
7666
7694
|
readonly maxlength: import("@angular/core").InputSignal<number | undefined>;
|
|
7667
7695
|
readonly required: import("@angular/core").InputSignal<boolean>;
|
|
7668
7696
|
readonly autocomplete: import("@angular/core").InputSignal<string>;
|
|
@@ -7671,7 +7699,7 @@ export declare class TextInputComponent implements ControlValueAccessor, Validat
|
|
|
7671
7699
|
* `search`, `text`, `none`). Empty (default) = the browser's default for the field, except `type="tel"`, which keeps `tel`.
|
|
7672
7700
|
* It only picks the keyboard; it does not restrict what can be typed or pasted.
|
|
7673
7701
|
*/
|
|
7674
|
-
readonly inputmode: import("@angular/core").InputSignal<"" | "email" | "text" | "decimal" | "none" | "
|
|
7702
|
+
readonly inputmode: import("@angular/core").InputSignal<"" | "email" | "text" | "decimal" | "none" | "search" | "tel" | "url" | "numeric">;
|
|
7675
7703
|
readonly readonly: import("@angular/core").InputSignal<boolean>;
|
|
7676
7704
|
readonly hint: import("@angular/core").InputSignal<string>;
|
|
7677
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. */
|
|
@@ -7743,7 +7771,7 @@ export declare class TextInputComponent implements ControlValueAccessor, Validat
|
|
|
7743
7771
|
protected readonly _stepAttr: import("@angular/core").Signal<string | null>;
|
|
7744
7772
|
protected readonly _revealable: import("@angular/core").Signal<boolean>;
|
|
7745
7773
|
protected readonly _shown: import("@angular/core").WritableSignal<boolean>;
|
|
7746
|
-
protected readonly _inputType: import("@angular/core").Signal<"number" | "email" | "text" | "
|
|
7774
|
+
protected readonly _inputType: import("@angular/core").Signal<"number" | "email" | "text" | "password" | "tel" | "url">;
|
|
7747
7775
|
protected readonly _eyePath: string;
|
|
7748
7776
|
protected readonly _eyeOffPath: string;
|
|
7749
7777
|
protected readonly _showRequirements: import("@angular/core").Signal<boolean>;
|
|
@@ -8694,7 +8722,7 @@ export declare class CopyFieldComponent implements OnDestroy {
|
|
|
8694
8722
|
/** Neither the Clipboard API nor the fallback could copy. */
|
|
8695
8723
|
readonly copyFailed: import("@angular/core").OutputEmitterRef<void>;
|
|
8696
8724
|
protected readonly _id: string;
|
|
8697
|
-
protected readonly _state: import("@angular/core").WritableSignal<"idle" | "
|
|
8725
|
+
protected readonly _state: import("@angular/core").WritableSignal<"idle" | "copied" | "failed">;
|
|
8698
8726
|
protected readonly _announcement: import("@angular/core").Signal<string>;
|
|
8699
8727
|
protected readonly _buttonName: import("@angular/core").Signal<string>;
|
|
8700
8728
|
protected readonly _describedBy: import("@angular/core").Signal<string | null>;
|
|
@@ -9807,7 +9835,7 @@ export declare class FormSectionComponent {
|
|
|
9807
9835
|
}, {}, never, ["*"], true, never>;
|
|
9808
9836
|
}
|
|
9809
9837
|
export declare class FormRowComponent {
|
|
9810
|
-
readonly cols: import("@angular/core").InputSignal<2 | 3 | 4
|
|
9838
|
+
readonly cols: import("@angular/core").InputSignal<1 | 2 | 3 | 4>;
|
|
9811
9839
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormRowComponent, never>;
|
|
9812
9840
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormRowComponent, "ui-form-row", never, {
|
|
9813
9841
|
"cols": {
|
|
@@ -9824,7 +9852,7 @@ export declare class FormRowComponent {
|
|
|
9824
9852
|
* child simply takes the full width. Keep a numeric span within the row's `cols` (use `all` for the whole row).
|
|
9825
9853
|
*/
|
|
9826
9854
|
export declare class FormColSpanDirective {
|
|
9827
|
-
readonly uiColSpan: import("@angular/core").InputSignal<"" | 2 | "2" |
|
|
9855
|
+
readonly uiColSpan: import("@angular/core").InputSignal<"" | 2 | 3 | "2" | "3" | "all">;
|
|
9828
9856
|
protected readonly _class: import("@angular/core").Signal<string>;
|
|
9829
9857
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormColSpanDirective, never>;
|
|
9830
9858
|
static ɵdir: i0.ɵɵDirectiveDeclaration<FormColSpanDirective, "[uiColSpan]", never, {
|
|
@@ -9904,7 +9932,7 @@ export type ListItemIconColor = 'slate' | 'amber' | 'red' | 'blue' | 'green' | '
|
|
|
9904
9932
|
export declare class ListItemComponent implements AfterContentChecked {
|
|
9905
9933
|
private readonly host;
|
|
9906
9934
|
/** Show a radio button, checkbox, or nothing on the left. */
|
|
9907
|
-
readonly leading: import("@angular/core").InputSignal<"none" | "
|
|
9935
|
+
readonly leading: import("@angular/core").InputSignal<"none" | "checkbox" | "radio">;
|
|
9908
9936
|
/** `name` attribute for the radio/checkbox (groups radios together). */
|
|
9909
9937
|
readonly inputName: import("@angular/core").InputSignal<string>;
|
|
9910
9938
|
/** `id` attribute for the radio/checkbox (links the label). */
|
|
@@ -11058,9 +11086,9 @@ export declare class ChipGroupComponent {
|
|
|
11058
11086
|
readonly spaceAbove: import("@angular/core").InputSignal<"none" | "sm" | "md">;
|
|
11059
11087
|
/** Space below the chip group. */
|
|
11060
11088
|
readonly spaceBelow: import("@angular/core").InputSignal<"none" | "sm" | "md">;
|
|
11061
|
-
protected readonly _gap: import("@angular/core").Signal<"
|
|
11062
|
-
protected readonly _spaceAbove: import("@angular/core").Signal<"0" | "
|
|
11063
|
-
protected readonly _spaceBelow: import("@angular/core").Signal<"0" | "
|
|
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">;
|
|
11064
11092
|
static ɵfac: i0.ɵɵFactoryDeclaration<ChipGroupComponent, never>;
|
|
11065
11093
|
static ɵcmp: i0.ɵɵComponentDeclaration<ChipGroupComponent, "ui-chip-group", never, {
|
|
11066
11094
|
"gap": {
|
|
@@ -11604,7 +11632,7 @@ export declare class TimelineComponent {
|
|
|
11604
11632
|
/** Any CSS length (e.g. `600px`). When set, the list scrolls inside a keyboard-focusable region of at most this height. Empty = no wrapper. */
|
|
11605
11633
|
readonly maxHeight: import("@angular/core").InputSignal<string>;
|
|
11606
11634
|
/** `below` (default): the time is under the title / description. `end`: the time sits right-aligned on the title row. */
|
|
11607
|
-
readonly timePosition: import("@angular/core").InputSignal<"
|
|
11635
|
+
readonly timePosition: import("@angular/core").InputSignal<"end" | "below">;
|
|
11608
11636
|
/**
|
|
11609
11637
|
* Group the items under a heading per calendar day of `dateTime` ("Today", "Yesterday", "Oct 3", "Oct 3, 2025"). Default false = no headings,
|
|
11610
11638
|
* 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.
|
|
@@ -13922,7 +13950,7 @@ export declare class DetailCardComponent {
|
|
|
13922
13950
|
/** true (default) = the title is displayed in capitals (CSS only); false = shown as written. The text, aria-label and heading name are never changed. */
|
|
13923
13951
|
readonly uppercaseTitle: import("@angular/core").InputSignal<boolean>;
|
|
13924
13952
|
/** 1-6 makes the title a real heading for screen readers (role=heading, aria-level); null keeps it plain text. */
|
|
13925
|
-
readonly headingLevel: import("@angular/core").InputSignal<2 | 3 | 4 |
|
|
13953
|
+
readonly headingLevel: import("@angular/core").InputSignal<1 | 2 | 3 | 4 | 5 | 6 | null>;
|
|
13926
13954
|
/** Optional id for the title text; the card is then labelled by it. Without it the title is the card's aria-label. */
|
|
13927
13955
|
readonly titleId: import("@angular/core").InputSignal<string>;
|
|
13928
13956
|
/** Accessible name of the card when the header gives none (no header, or no title). A visible title wins; blank = no name. */
|
|
@@ -13936,7 +13964,7 @@ export declare class DetailCardComponent {
|
|
|
13936
13964
|
/** Background colour of the footer bar (the `[card-footer]` slot) as any CSS colour. Empty = no colour of its own. */
|
|
13937
13965
|
readonly footerBackground: import("@angular/core").InputSignal<string>;
|
|
13938
13966
|
/** Alignment of the `[card-footer]` content: `'start'` (default, unchanged) or `'end'` = a right-aligned action row with an 8px gap. */
|
|
13939
|
-
readonly footerAlign: import("@angular/core").InputSignal<"
|
|
13967
|
+
readonly footerAlign: import("@angular/core").InputSignal<"start" | "end">;
|
|
13940
13968
|
/** Text colour as any CSS colour (`#fff`, `var(--on-dark)` …). Empty = the default colours. Colours the title, subtitle, chevron and body text. */
|
|
13941
13969
|
readonly textColor: import("@angular/core").InputSignal<string>;
|
|
13942
13970
|
/** false = no header at all (no title, edit button, toggle or divider): the card is only the body, always open. */
|
|
@@ -16653,7 +16681,7 @@ export declare class SetupWizardComponent {
|
|
|
16653
16681
|
protected customHintId(): string;
|
|
16654
16682
|
protected readonly importBlocked: import("@angular/core").Signal<boolean>;
|
|
16655
16683
|
/** 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). */
|
|
16656
|
-
protected readonly splitTab: import("@angular/core").WritableSignal<"
|
|
16684
|
+
protected readonly splitTab: import("@angular/core").WritableSignal<"extra" | "main">;
|
|
16657
16685
|
protected readonly splitTabs: import("@angular/core").Signal<{
|
|
16658
16686
|
key: string;
|
|
16659
16687
|
label: string;
|
|
@@ -19212,23 +19240,179 @@ export declare function uiWeekdayName(day: number, style?: 'long' | 'short' | 'n
|
|
|
19212
19240
|
export declare function uiFormatClock(hour: number, minute?: number, locale?: string): string;
|
|
19213
19241
|
/** "9 AM" (English) / "9 a. m." (Spanish): an hour with no minutes, for calendar gutters. */
|
|
19214
19242
|
export declare function uiFormatHour(hour: number, locale?: string): string;
|
|
19243
|
+
/** The switcher value (and `choice()` answer) meaning "no manual choice: follow the browser / the embedding page". */
|
|
19244
|
+
export declare const UI_LANGUAGE_AUTO = "auto";
|
|
19215
19245
|
/**
|
|
19216
|
-
*
|
|
19217
|
-
* the
|
|
19218
|
-
* `labels.setLabels({ ...UI_LABELS_ES, 'dataTable.itemWord': 'cliente' })`.
|
|
19246
|
+
* Language selection for the whole app, in a few lines. Everything is optional: with no configuration the library offers English and Spanish
|
|
19247
|
+
* (English by default), detects the visitor's language automatically, remembers a manual pick, and lets the visitor change it with `<ui-language-switcher />`.
|
|
19219
19248
|
*
|
|
19220
|
-
*
|
|
19221
|
-
*
|
|
19222
|
-
|
|
19249
|
+
* provideUiLanguage() // en + es, automatic
|
|
19250
|
+
* provideUiLanguage({ onApplied: lang => loadMyOwnDictionary(lang) }) // + the app loads ITS texts before the language is announced
|
|
19251
|
+
*/
|
|
19252
|
+
export interface UiLanguageConfig {
|
|
19253
|
+
/** Supported language codes (default `['en', 'es']`). The first one is NOT assumed to be the default: see `defaultLanguage`. */
|
|
19254
|
+
readonly languages?: readonly string[];
|
|
19255
|
+
/** The language used when nothing else decides, and the fallback when a dictionary cannot be loaded (default `'en'`). Must be one of `languages`. */
|
|
19256
|
+
readonly defaultLanguage?: string;
|
|
19257
|
+
/** localStorage key of the visitor's MANUAL choice (default `'ui-language'`). */
|
|
19258
|
+
readonly storageKey?: string;
|
|
19259
|
+
/** Address parameter that sets the language when nothing was chosen manually: `?lang=es` (default `'lang'`). */
|
|
19260
|
+
readonly queryParam?: string;
|
|
19261
|
+
/** `type` of the message an embedding page posts to its iframe: `{ type: 'ui-language', lang: 'es' }` (default `'ui-language'`). */
|
|
19262
|
+
readonly messageType?: string;
|
|
19263
|
+
/** Name of each language in its own language (endonym) for the switcher. Default: a built-in table (en, es, fr, de, pt, it, nl, pl, tr, ar, zh, ja, ko, ru), then `Intl.DisplayNames`, then the code. */
|
|
19264
|
+
readonly languageNames?: Readonly<Record<string, string>>;
|
|
19265
|
+
/** BCP 47 locale of dates and numbers per language. A language without an entry uses the `i18n.locale` marker of its dictionary (`en-US` / `es-US` for the built-in ones). */
|
|
19266
|
+
readonly locales?: Readonly<Record<string, string>>;
|
|
19267
|
+
/**
|
|
19268
|
+
* Loader of the library texts per language: a dynamic import, an HttpClient call or a static object. Overrides the built-in dictionary of that language
|
|
19269
|
+
* (English and Spanish are built in); a language with neither shows the library's built-in English text.
|
|
19270
|
+
*/
|
|
19271
|
+
readonly dictionaries?: Readonly<Record<string, () => Promise<UiLabelDictionary>>>;
|
|
19272
|
+
/** `false` = never read or write browser storage (useful in an iframe: the page follows its embedding page / the browser). Default `true`. */
|
|
19273
|
+
readonly persist?: boolean;
|
|
19274
|
+
/** `false` = ignore messages from an embedding page. Default `true`. */
|
|
19275
|
+
readonly trackEmbeddingParent?: boolean;
|
|
19276
|
+
/**
|
|
19277
|
+
* Awaited while a language is applied, BEFORE `lang()` announces it: the place for the app to load its OWN dictionary (e.g. Transloco's) so no key flashes.
|
|
19278
|
+
* A rejection is swallowed (it never blocks the app).
|
|
19279
|
+
*/
|
|
19280
|
+
readonly onApplied?: (lang: string) => void | Promise<void>;
|
|
19281
|
+
/** `false` = do not register the app initializer; call `UiLanguageService.init()` yourself. Default `true`. */
|
|
19282
|
+
readonly initialize?: boolean;
|
|
19283
|
+
/**
|
|
19284
|
+
* Longest time, in milliseconds, a dictionary loader or `onApplied` may take (default 15000; 0 = wait forever). A loader that takes longer counts as a failed load
|
|
19285
|
+
* (the library stays in the default language and `degraded()` turns true); an `onApplied` that takes longer is given up on. So a hung request can never hold the app initializer forever.
|
|
19286
|
+
*/
|
|
19287
|
+
readonly loadTimeoutMs?: number;
|
|
19288
|
+
/** Origin(s) a parent message must come from (`event.origin`, e.g. `'https://www.example.com'`). Default: any origin. */
|
|
19289
|
+
readonly parentOrigin?: string | readonly string[];
|
|
19290
|
+
}
|
|
19291
|
+
/** Holds the configuration given to `provideUiLanguage()`. */
|
|
19292
|
+
export declare const UI_LANGUAGE_CONFIG: InjectionToken<UiLanguageConfig>;
|
|
19293
|
+
/** The window that embeds this page (iframe parent), or null when the page is not embedded. Specs provide their own to simulate an embedding page. */
|
|
19294
|
+
export declare const EMBEDDING_PARENT: InjectionToken<Window | null>;
|
|
19295
|
+
/**
|
|
19296
|
+
* The library's own dictionary of a built-in language, loaded on demand (a separate lazy chunk): `{}` for English (the built-in texts), the Spanish
|
|
19297
|
+
* dictionary for 'es' (also 'ES', 'es-MX', 'es_CO'), `null` for any other code (no built-in dictionary).
|
|
19298
|
+
*/
|
|
19299
|
+
export declare function loadUiLabels(lang: string): Promise<UiLabelDictionary | null>;
|
|
19300
|
+
/** Registers the language service with its configuration (all optional) and, unless `initialize: false`, an app initializer that waits for the first language to be applied. */
|
|
19301
|
+
export declare function provideUiLanguage(config?: UiLanguageConfig): EnvironmentProviders;
|
|
19302
|
+
/**
|
|
19303
|
+
* The one place that knows the active language.
|
|
19223
19304
|
*
|
|
19224
|
-
*
|
|
19305
|
+
* AUTOMATIC by default, and the visitor can always choose:
|
|
19306
|
+
* 1. the visitor's MANUAL choice (the switcher; the only thing that is saved in the browser) always wins;
|
|
19307
|
+
* 2. otherwise it is detected, first match wins: a message from the embedding page (iframes, live), `?lang=` in the address, the browser's whole
|
|
19308
|
+
* language preference list (`navigator.languages`; regional variants map to their language), then `defaultLanguage`.
|
|
19309
|
+
* An automatic result is never saved, so it keeps following the browser / the embedding page; `setAutomatic()` clears a manual choice. Applying a language
|
|
19310
|
+
* loads its dictionary, hands it to `UiLabelsService` (texts + dates/numbers), runs `onApplied`, then announces it in `lang()` and `<html lang>`.
|
|
19225
19311
|
*
|
|
19226
|
-
*
|
|
19227
|
-
|
|
19228
|
-
|
|
19229
|
-
|
|
19312
|
+
* To follow it from the app's own i18n (Transloco): `effect(() => transloco.setActiveLang(language.lang()))`, and load that library's dictionary in `onApplied`.
|
|
19313
|
+
*/
|
|
19314
|
+
export declare class UiLanguageService implements OnDestroy {
|
|
19315
|
+
private readonly config;
|
|
19316
|
+
private readonly doc;
|
|
19317
|
+
private readonly uiLabels;
|
|
19318
|
+
private readonly embeddingParent;
|
|
19319
|
+
private newest;
|
|
19320
|
+
/** The language most recently asked for (may still be loading); `lang()` only changes once it is ready. */
|
|
19321
|
+
private target;
|
|
19322
|
+
private current;
|
|
19323
|
+
private initPromise;
|
|
19324
|
+
private destroyed;
|
|
19325
|
+
/** True while the library locale in use was set by this service (so only then may it be cleared again; an app's own `setLocale()` is left alone). */
|
|
19326
|
+
private localeSetByService;
|
|
19327
|
+
/** The latest valid language an embedding parent asked for; used before `?lang=` and the browser list whenever no manual choice exists. */
|
|
19328
|
+
private parentLang;
|
|
19329
|
+
private readonly _lang;
|
|
19330
|
+
/**
|
|
19331
|
+
* The language in use, announced after its dictionaries are loaded. If the library's dictionary for it could not be loaded, this is still the REQUESTED
|
|
19332
|
+
* language while the library texts stay in the default language: read `degraded()` to tell.
|
|
19333
|
+
*/
|
|
19334
|
+
readonly lang: Signal<string>;
|
|
19335
|
+
private readonly _degraded;
|
|
19336
|
+
/** `true` after the library dictionary of the last applied language failed to load (or timed out): the library texts and locale are those of the default language. */
|
|
19337
|
+
readonly degraded: Signal<boolean>;
|
|
19338
|
+
private readonly _manual;
|
|
19339
|
+
/** What the visitor picked: a language code, or `'auto'` when nothing was chosen manually. */
|
|
19340
|
+
readonly choice: Signal<string>;
|
|
19341
|
+
/** BCP 47 locale of dates and numbers in the library right now (from `locales`, else the dictionary's `i18n.locale` marker). */
|
|
19342
|
+
readonly locale: Signal<string>;
|
|
19343
|
+
/** The supported language codes. */
|
|
19344
|
+
readonly languages: Signal<readonly string[]>;
|
|
19345
|
+
/** Each supported language written in its own language. */
|
|
19346
|
+
readonly names: Signal<Readonly<Record<string, string>>>;
|
|
19347
|
+
private messageListener;
|
|
19348
|
+
/** Called once at startup (the app initializer): resolves after the first language is applied, so no text flashes. Calling it again returns the same work. */
|
|
19349
|
+
init(): Promise<void>;
|
|
19350
|
+
private start;
|
|
19351
|
+
/** A MANUAL choice (the switcher): applied now and saved in this browser (unless `persist` is false). A code that is not supported becomes `defaultLanguage`. */
|
|
19352
|
+
setLanguage(code: string): Promise<void>;
|
|
19353
|
+
/** Back to automatic: forgets a manual choice and follows the embedding page / `?lang=` / the browser again. */
|
|
19354
|
+
setAutomatic(): Promise<void>;
|
|
19355
|
+
ngOnDestroy(): void;
|
|
19356
|
+
private apply;
|
|
19357
|
+
private run;
|
|
19358
|
+
/** The configured locale of the language, or (no entry) the dictionary's marker; an explicit locale the APP set itself is never cleared. */
|
|
19359
|
+
private applyLocale;
|
|
19360
|
+
/** The dictionary of a language: the app's loader, else the built-in one; none = the library's built-in English text (empty dictionary). A throwing loader is a failed load. */
|
|
19361
|
+
private loadDictionary;
|
|
19362
|
+
private withTimeout;
|
|
19363
|
+
private store;
|
|
19364
|
+
private savedChoice;
|
|
19365
|
+
/** Automatic detection (no manual choice): the embedding page's language, `?lang=`, the browser's whole preference list, then the default language. */
|
|
19366
|
+
private detect;
|
|
19367
|
+
/**
|
|
19368
|
+
* An embedded page follows its embedding page: `postMessage({ type: 'ui-language', lang }, '*')` from the parent window sets the language (live, no reload),
|
|
19369
|
+
* unless the visitor chose manually. Only the parent window is listened to (and, with `parentOrigin`, only that origin), and only a supported language counts.
|
|
19370
|
+
* The latest valid parent language is remembered, so `setAutomatic()` keeps following the parent.
|
|
19371
|
+
*/
|
|
19372
|
+
private listenToEmbeddingPage;
|
|
19373
|
+
private buildNames;
|
|
19374
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UiLanguageService, never>;
|
|
19375
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
19376
|
+
}
|
|
19377
|
+
/**
|
|
19378
|
+
* Language picker for the whole app: `<ui-language-switcher />` (needs `provideUiLanguage()`). A native select, so keyboard, screen readers and phones work
|
|
19379
|
+
* with no extra code. The first option, "Automatic (<language in use>)", follows the visitor's browser / the embedding page; picking a language is a manual
|
|
19380
|
+
* choice that is remembered and always wins. Every language is listed in its own name. Test ids: `ui-language-switcher` (the select; `testId` changes it),
|
|
19381
|
+
* `<testId>-option-<code>` and `<testId>-option-auto` on the options.
|
|
19230
19382
|
*/
|
|
19231
|
-
export declare
|
|
19383
|
+
export declare class UiLanguageSwitcherComponent {
|
|
19384
|
+
protected readonly language: UiLanguageService;
|
|
19385
|
+
protected readonly labels: UiLabelsService;
|
|
19386
|
+
protected readonly auto = "auto";
|
|
19387
|
+
/** Accessible name of the select; `null` (default) = the library text for the active language ("Language"). */
|
|
19388
|
+
readonly ariaLabelInput: import("@angular/core").InputSignal<string | null>;
|
|
19389
|
+
protected readonly ariaLabel: import("@angular/core").Signal<string>;
|
|
19390
|
+
/** `id` of the select; empty (default) = a unique generated id (`ui-language-select-1`, `-2` ...), so two switchers on a page never share one. */
|
|
19391
|
+
readonly selectId: import("@angular/core").InputSignal<string>;
|
|
19392
|
+
private readonly generatedId;
|
|
19393
|
+
protected readonly id: import("@angular/core").Signal<string>;
|
|
19394
|
+
/** `data-testid` of the select (default `ui-language-switcher`). */
|
|
19395
|
+
readonly testId: import("@angular/core").InputSignal<string>;
|
|
19396
|
+
protected choose(value: string): void;
|
|
19397
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UiLanguageSwitcherComponent, never>;
|
|
19398
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UiLanguageSwitcherComponent, "ui-language-switcher", never, {
|
|
19399
|
+
"ariaLabelInput": {
|
|
19400
|
+
"alias": "ariaLabel";
|
|
19401
|
+
"required": false;
|
|
19402
|
+
"isSignal": true;
|
|
19403
|
+
};
|
|
19404
|
+
"selectId": {
|
|
19405
|
+
"alias": "selectId";
|
|
19406
|
+
"required": false;
|
|
19407
|
+
"isSignal": true;
|
|
19408
|
+
};
|
|
19409
|
+
"testId": {
|
|
19410
|
+
"alias": "testId";
|
|
19411
|
+
"required": false;
|
|
19412
|
+
"isSignal": true;
|
|
19413
|
+
};
|
|
19414
|
+
}, {}, never, never, true, never>;
|
|
19415
|
+
}
|
|
19232
19416
|
/** A charge type the host offers (for example a community's configured charge types). `defaultAmount` and `description` pre-fill the form. */
|
|
19233
19417
|
export interface ChargeTypeOption {
|
|
19234
19418
|
/** Stable id (used for `track`; not sent). */
|