@forgeroute/ui 0.4.85 → 0.4.87
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 +99 -18
- package/fesm2022/forgeroute-ui-offline.mjs.map +1 -1
- package/fesm2022/{forgeroute-ui-ui-labels.es-CioAOUhm.mjs → forgeroute-ui-ui-labels.es-jZuBPL40.mjs} +5 -1
- package/fesm2022/{forgeroute-ui-ui-labels.es-CioAOUhm.mjs.map → forgeroute-ui-ui-labels.es-jZuBPL40.mjs.map} +1 -1
- package/fesm2022/forgeroute-ui.mjs +11 -5
- package/fesm2022/forgeroute-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/forgeroute-ui-offline.d.ts +33 -2
- package/types/forgeroute-ui.d.ts +11 -1
package/package.json
CHANGED
|
@@ -825,6 +825,11 @@ interface BannerView {
|
|
|
825
825
|
* changes, so screen readers announce every change; the visible bar is ordinary content that mirrors the same words. The bar is
|
|
826
826
|
* `position: sticky; top: 0` inside the page flow, so it never covers content, and sits below modals / side panels.
|
|
827
827
|
*
|
|
828
|
+
* A page that REFUSES writes while offline (a public shop: payment needs a connection and nothing is saved on the device) sets `[queues]="false"`
|
|
829
|
+
* (library source 2026-11-10, NOT yet published): the texts then never mention saving on the device or sending later, "View changes" / "Sync now" /
|
|
830
|
+
* the waiting count and the sync states are not shown, "What can I do?" appears only when the app passed `infoOffline` / `infoNeedsConnection`
|
|
831
|
+
* (only the lists the app passed), and coming back online flashes the neutral "You're back online" (3 s). It needs no signed-in user.
|
|
832
|
+
*
|
|
828
833
|
* Test ids: connection-banner, connection-banner-live, connection-banner-live-alert, connection-banner-title, connection-banner-message,
|
|
829
834
|
* connection-banner-detail, connection-banner-sync-now, connection-banner-view, connection-banner-info-toggle, connection-banner-info-panel,
|
|
830
835
|
* connection-banner-info-hide.
|
|
@@ -838,6 +843,11 @@ export declare class ConnectionBannerComponent {
|
|
|
838
843
|
readonly infoOffline: import("@angular/core").InputSignal<readonly string[] | null>;
|
|
839
844
|
/** What needs a connection (app specific, should match what the app really blocks). Default: a generic list. */
|
|
840
845
|
readonly infoNeedsConnection: import("@angular/core").InputSignal<readonly string[] | null>;
|
|
846
|
+
/**
|
|
847
|
+
* True (default): the page saves writes on the device while offline and sends them later (today's behaviour, unchanged). False: the page
|
|
848
|
+
* refuses writes while offline and saves nothing - honest texts, no queue controls (see the class comment). Library source 2026-11-10, NOT yet published.
|
|
849
|
+
*/
|
|
850
|
+
readonly queues: import("@angular/core").InputSignal<boolean>;
|
|
841
851
|
/** The user pressed "View changes" - the app opens `<ui-pending-changes-drawer>`. */
|
|
842
852
|
readonly viewChanges: import("@angular/core").OutputEmitterRef<void>;
|
|
843
853
|
protected readonly panelId: string;
|
|
@@ -850,8 +860,12 @@ export declare class ConnectionBannerComponent {
|
|
|
850
860
|
private seenTick;
|
|
851
861
|
private flashPending;
|
|
852
862
|
private wasSyncing;
|
|
863
|
+
private prevState;
|
|
853
864
|
protected readonly canDoItems: import("@angular/core").Signal<readonly string[]>;
|
|
854
865
|
protected readonly needsItems: import("@angular/core").Signal<readonly string[]>;
|
|
866
|
+
/** With `queues` the two default lists always show; without it only the lists the app passed (the generic defaults talk about saved changes). */
|
|
867
|
+
protected readonly showCanDo: import("@angular/core").Signal<boolean>;
|
|
868
|
+
protected readonly showNeeds: import("@angular/core").Signal<boolean>;
|
|
855
869
|
private count;
|
|
856
870
|
protected readonly view: import("@angular/core").Signal<BannerView | null>;
|
|
857
871
|
/** Set when a "Sync now" call was rejected: said politely in the status region (nothing is lost, the changes stay saved). */
|
|
@@ -880,6 +894,11 @@ export declare class ConnectionBannerComponent {
|
|
|
880
894
|
"required": false;
|
|
881
895
|
"isSignal": true;
|
|
882
896
|
};
|
|
897
|
+
"queues": {
|
|
898
|
+
"alias": "queues";
|
|
899
|
+
"required": false;
|
|
900
|
+
"isSignal": true;
|
|
901
|
+
};
|
|
883
902
|
}, {
|
|
884
903
|
"viewChanges": "viewChanges";
|
|
885
904
|
}, never, never, true, never>;
|
|
@@ -981,7 +1000,9 @@ export declare class StaleDataChipComponent {
|
|
|
981
1000
|
*
|
|
982
1001
|
* The host keeps its own button disabled while `active`. The text appears only after `delayMs` (default 4 s) of continuous
|
|
983
1002
|
* `active`, disappears at once when `active` turns false, and sits in a polite live region that exists from the first render
|
|
984
|
-
* (so screen readers announce the text when it appears).
|
|
1003
|
+
* (so screen readers announce the text when it appears). `text` (optional, library source 2026-11-10, NOT yet published) replaces the label:
|
|
1004
|
+
* `<ui-still-working [active]="paying()" [delayMs]="4000" text="Please do not close or refresh this page, we are finishing your payment." />`.
|
|
1005
|
+
* Test id: still-working.
|
|
985
1006
|
*/
|
|
986
1007
|
export declare class StillWorkingComponent {
|
|
987
1008
|
private readonly labels;
|
|
@@ -989,8 +1010,13 @@ export declare class StillWorkingComponent {
|
|
|
989
1010
|
readonly active: import("@angular/core").InputSignal<boolean>;
|
|
990
1011
|
/** Milliseconds of continuous `active` before the text appears. */
|
|
991
1012
|
readonly delayMs: import("@angular/core").InputSignal<number>;
|
|
1013
|
+
/**
|
|
1014
|
+
* Optional text shown instead of the library label (already translated by the app), e.g. the pay step: "Please do not close or refresh this
|
|
1015
|
+
* page, we are finishing your payment." Empty or whitespace only = the library label, as before. Library source 2026-11-10, NOT yet published.
|
|
1016
|
+
*/
|
|
1017
|
+
readonly text: import("@angular/core").InputSignal<string>;
|
|
992
1018
|
private readonly elapsed;
|
|
993
|
-
protected readonly
|
|
1019
|
+
protected readonly shown: import("@angular/core").Signal<string>;
|
|
994
1020
|
constructor();
|
|
995
1021
|
static ɵfac: i0.ɵɵFactoryDeclaration<StillWorkingComponent, never>;
|
|
996
1022
|
static ɵcmp: i0.ɵɵComponentDeclaration<StillWorkingComponent, "ui-still-working", never, {
|
|
@@ -1004,5 +1030,10 @@ export declare class StillWorkingComponent {
|
|
|
1004
1030
|
"required": false;
|
|
1005
1031
|
"isSignal": true;
|
|
1006
1032
|
};
|
|
1033
|
+
"text": {
|
|
1034
|
+
"alias": "text";
|
|
1035
|
+
"required": false;
|
|
1036
|
+
"isSignal": true;
|
|
1037
|
+
};
|
|
1007
1038
|
}, {}, never, never, true, never>;
|
|
1008
1039
|
}
|
package/types/forgeroute-ui.d.ts
CHANGED
|
@@ -2138,6 +2138,10 @@ export declare const UI_DEFAULT_LABELS: {
|
|
|
2138
2138
|
readonly 'connection.whatCanIDo': "What can I do?";
|
|
2139
2139
|
readonly 'connection.hide': "Hide";
|
|
2140
2140
|
readonly 'connection.savedOnDevice': "Saved on this device — will send when you're back online.";
|
|
2141
|
+
readonly 'connection.offline.noQueue.message': "This page needs a connection to continue. What you have entered stays on this page.";
|
|
2142
|
+
readonly 'connection.unreachable.noQueue.message': "We'll keep trying. What you have entered stays on this page.";
|
|
2143
|
+
readonly 'connection.slow.noQueue.message': "Things may take longer. Please wait and don't tap twice.";
|
|
2144
|
+
readonly 'connection.backOnline': "You're back online";
|
|
2141
2145
|
readonly 'connection.stillWorking': "Still working… please don't tap again.";
|
|
2142
2146
|
readonly 'connection.timeout.read': "This is taking too long. Check your connection and try again.";
|
|
2143
2147
|
readonly 'connection.thisAction': "This action";
|
|
@@ -5674,6 +5678,12 @@ export declare class CheckboxTrailingDirective {
|
|
|
5674
5678
|
* Built on a native `<input type="checkbox" role="switch">`, so Space toggles it, it is focusable, and a screen reader
|
|
5675
5679
|
* announces it as a switch (on / off). The label and hint name and describe it. `disabled` (input or form control) dims it
|
|
5676
5680
|
* and blocks changes. `ariaDescribedBy` adds the id of a description rendered elsewhere. On touch devices and phones the switch has a >= 44px hit area.
|
|
5681
|
+
*
|
|
5682
|
+
* Optional: content with the `toggle-before-switch` attribute is shown between the text and the switch (e.g. a preview icon button):
|
|
5683
|
+
*
|
|
5684
|
+
* <ui-toggle label="E-Signature Reminders" [(checked)]="on"><ui-icon toggle-before-switch name="view" ariaLabel="Preview" /></ui-toggle>
|
|
5685
|
+
*
|
|
5686
|
+
* Without it nothing changes. Clicking the slotted content does not toggle the switch.
|
|
5677
5687
|
*/
|
|
5678
5688
|
export declare class ToggleComponent implements ControlValueAccessor {
|
|
5679
5689
|
/** Bold line on the left. */
|
|
@@ -5745,7 +5755,7 @@ export declare class ToggleComponent implements ControlValueAccessor {
|
|
|
5745
5755
|
};
|
|
5746
5756
|
}, {
|
|
5747
5757
|
"checked": "checkedChange";
|
|
5748
|
-
}, never,
|
|
5758
|
+
}, never, ["[toggle-before-switch]"], true, never>;
|
|
5749
5759
|
}
|
|
5750
5760
|
/** One step of a `ui-stepper`. `key` must be unique within the list. */
|
|
5751
5761
|
export interface StepperStep {
|