@ids-group-ltd/ids-design-system 0.11.3 → 0.11.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/CHANGELOG.md +200 -10
- package/components.md +12 -4
- package/docs/agent/INDEX.md +1 -0
- package/docs/agent/platform/body-scroll-lock-service.md +12 -0
- package/docs/agent/platform/toast-service.md +4 -6
- package/fesm2022/ids-group-ltd-ids-design-system.mjs +689 -452
- package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
- package/migrations/0.11.4.json +241 -0
- package/migrations/0.8.0.json +6 -5
- package/package.json +1 -1
- package/styles/_control-label.scss +18 -0
- package/styles/_ds-color.scss +6 -0
- package/styles/_focus.scss +16 -0
- package/styles/_skeleton-shimmer.scss +10 -26
- package/themes/_semantic.scss +11 -2
- package/types/ids-group-ltd-ids-design-system.d.ts +100 -50
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { InjectionToken, Provider, EnvironmentProviders, ElementRef, TemplateRef, ModelSignal, WritableSignal, OnDestroy } from '@angular/core';
|
|
2
|
+
import { InjectionToken, Provider, EnvironmentProviders, ElementRef, Signal, TemplateRef, ModelSignal, WritableSignal, OnDestroy } from '@angular/core';
|
|
3
3
|
import { SafeHtml } from '@angular/platform-browser';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
5
|
import { ControlValueAccessor } from '@angular/forms';
|
|
@@ -109,6 +109,14 @@ type DsSize = 'sm' | 'md' | 'lg';
|
|
|
109
109
|
type CardElevation = 'flat' | 'raised' | 'hover' | 'interactive';
|
|
110
110
|
type CardPadding = 'none' | 'sm' | 'md' | 'lg';
|
|
111
111
|
|
|
112
|
+
type DsToastHorizontalPosition = 'left' | 'center' | 'right';
|
|
113
|
+
type DsToastVerticalPosition = 'top' | 'bottom';
|
|
114
|
+
interface DsToastPosition {
|
|
115
|
+
readonly horizontalPosition: DsToastHorizontalPosition;
|
|
116
|
+
readonly verticalPosition: DsToastVerticalPosition;
|
|
117
|
+
readonly offset: string;
|
|
118
|
+
}
|
|
119
|
+
|
|
112
120
|
interface DsConfig {
|
|
113
121
|
field?: {
|
|
114
122
|
/** Default for every field's `reserveMessage` — keeps a message line's worth
|
|
@@ -166,6 +174,14 @@ interface DsConfig {
|
|
|
166
174
|
* `ds-modal` ancestor to bind — an attribute cannot reach it. */
|
|
167
175
|
dividers?: boolean;
|
|
168
176
|
};
|
|
177
|
+
toast?: {
|
|
178
|
+
/** Where the stack sits. Merged field by field over the built-in
|
|
179
|
+
* `right` / `top` / `var(--space-6)`, so naming one key keeps the other two. */
|
|
180
|
+
position?: Partial<DsToastPosition>;
|
|
181
|
+
/** Maximum number of toasts visible at once. Extras are queued and shown as
|
|
182
|
+
* earlier ones dismiss. Default `5`; `0` means unlimited. */
|
|
183
|
+
maxVisible?: number;
|
|
184
|
+
};
|
|
169
185
|
picker?: {
|
|
170
186
|
/** Default for `ds-multi-select``s `searchable`. `true` always shows the panel's
|
|
171
187
|
* filter row, `false` never, and a NUMBER is a threshold — the row appears once
|
|
@@ -728,7 +744,7 @@ declare class LayoutScrollService {
|
|
|
728
744
|
* ask the layout for it instead of guessing the layout's internal markup with
|
|
729
745
|
* `document.querySelector`.
|
|
730
746
|
*/
|
|
731
|
-
readonly scroller:
|
|
747
|
+
readonly scroller: Signal<Element | null>;
|
|
732
748
|
private restoreTimeoutMs;
|
|
733
749
|
private resetStrategy;
|
|
734
750
|
private armed;
|
|
@@ -2022,6 +2038,8 @@ declare class SelectComponent extends DsControlValueAccessor<string> implements
|
|
|
2022
2038
|
* - row: alias for the row object (typed `unknown`)
|
|
2023
2039
|
*/
|
|
2024
2040
|
declare class CellTemplateDirective {
|
|
2041
|
+
/** The `key` of the column this template replaces, matched against the table's
|
|
2042
|
+
* `columns`. A key no column declares renders nothing and warns nowhere. */
|
|
2025
2043
|
readonly dsCellTemplate: _angular_core.InputSignal<string>;
|
|
2026
2044
|
readonly template: TemplateRef<any>;
|
|
2027
2045
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CellTemplateDirective, never>;
|
|
@@ -2230,8 +2248,7 @@ declare class TableComponent<T extends object> {
|
|
|
2230
2248
|
* `true` — the table picks: skeleton rows while it has nothing to show, overlay
|
|
2231
2249
|
* once rows are on screen. Prefer it; the right choice is a function of the row
|
|
2232
2250
|
* count, which only the table holds.
|
|
2233
|
-
* 'skeleton' — first-load placeholder; rows are replaced with shimmer
|
|
2234
|
-
* rows that read the global --skeleton-shimmer-x driver.
|
|
2251
|
+
* 'skeleton' — first-load placeholder; rows are replaced with shimmer rows.
|
|
2235
2252
|
* 'overlay' — re-fetch indicator; existing rows stay visible behind
|
|
2236
2253
|
* a translucent overlay with a centred spinner. Pin either one only to
|
|
2237
2254
|
* override the rule deliberately. */
|
|
@@ -2360,6 +2377,7 @@ declare class TableComponent<T extends object> {
|
|
|
2360
2377
|
* can show the same in-flight state as the built-in one. */
|
|
2361
2378
|
readonly exporting: _angular_core.Signal<boolean>;
|
|
2362
2379
|
private readonly exportStatusState;
|
|
2380
|
+
private readonly eventsAtExport;
|
|
2363
2381
|
/** Announced in the table's live region while an export is running or after it
|
|
2364
2382
|
* failed, so the button's own disabled state is not the only signal. */
|
|
2365
2383
|
readonly exportStatus: _angular_core.Signal<string>;
|
|
@@ -2642,6 +2660,7 @@ declare class TableComponent<T extends object> {
|
|
|
2642
2660
|
* unsorted first render is silent; only real changes speak.
|
|
2643
2661
|
*/
|
|
2644
2662
|
protected readonly statusMessage: _angular_core.Signal<string>;
|
|
2663
|
+
private readonly eventMessages;
|
|
2645
2664
|
/** Only from two rows up: a single expander announces itself through its own
|
|
2646
2665
|
* `aria-expanded`, and repeating that here would say everything twice. */
|
|
2647
2666
|
private readonly expansionMessage;
|
|
@@ -2715,6 +2734,8 @@ declare class TableComponent<T extends object> {
|
|
|
2715
2734
|
protected onHeaderEnter(event: Event, col: TableColumn<T>): void;
|
|
2716
2735
|
private readonly scrollWrap;
|
|
2717
2736
|
private readonly hscrollProxy;
|
|
2737
|
+
private readonly tableHead;
|
|
2738
|
+
private readonly hostElement;
|
|
2718
2739
|
protected readonly hscrollContentWidth: _angular_core.WritableSignal<number>;
|
|
2719
2740
|
protected readonly hscrollNeeded: _angular_core.WritableSignal<boolean>;
|
|
2720
2741
|
private readonly scrollTop;
|
|
@@ -2770,6 +2791,7 @@ declare class TableComponent<T extends object> {
|
|
|
2770
2791
|
* emits `exportFailed`. Public so the button can live anywhere:
|
|
2771
2792
|
* `<ds-button [loading]="table.exporting()" (pressed)="table.runExport()">`. */
|
|
2772
2793
|
runExport(): Promise<void>;
|
|
2794
|
+
private announceExport;
|
|
2773
2795
|
/** Hands a ready-made file to the browser. Only a Blob gets its object URL
|
|
2774
2796
|
* revoked — a URL the caller supplied is theirs to manage. */
|
|
2775
2797
|
private downloadFile;
|
|
@@ -3356,7 +3378,7 @@ declare class BreadcrumbsComponent {
|
|
|
3356
3378
|
*/
|
|
3357
3379
|
declare class BreadcrumbsService {
|
|
3358
3380
|
private readonly _items;
|
|
3359
|
-
readonly items:
|
|
3381
|
+
readonly items: Signal<BreadcrumbItem[]>;
|
|
3360
3382
|
set(items: BreadcrumbItem[]): void;
|
|
3361
3383
|
push(item: BreadcrumbItem): void;
|
|
3362
3384
|
pop(): void;
|
|
@@ -3721,13 +3743,20 @@ declare class BannerComponent {
|
|
|
3721
3743
|
/** Fires when the user dismisses the banner. */
|
|
3722
3744
|
readonly closed: _angular_core.OutputEmitterRef<void>;
|
|
3723
3745
|
protected get noRail(): boolean;
|
|
3724
|
-
|
|
3725
|
-
|
|
3746
|
+
/** Announce this banner to a screen reader when it appears.
|
|
3747
|
+
*
|
|
3748
|
+
* Off by default: an `alert` region fires on INSERTION, so a banner that is page
|
|
3749
|
+
* furniture would interrupt the reader on every route into the page. Turn it on for
|
|
3750
|
+
* one the app raises in response to an event; for anything transient prefer
|
|
3751
|
+
* `ToastService`, which owns a live region built for the purpose. */
|
|
3752
|
+
readonly announce: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
3753
|
+
protected get ariaRole(): 'alert' | 'status' | null;
|
|
3754
|
+
protected get ariaLive(): 'assertive' | 'polite' | null;
|
|
3726
3755
|
protected readonly classes: _angular_core.Signal<string>;
|
|
3727
3756
|
protected readonly defaultIcon: _angular_core.Signal<IconName>;
|
|
3728
3757
|
protected onDismiss(): void;
|
|
3729
3758
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BannerComponent, never>;
|
|
3730
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BannerComponent, "ds-banner", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "dismissible": { "alias": "dismissible"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "compact": { "alias": "compact"; "required": false; "isSignal": true; }; "layout": { "alias": "layout"; "required": false; "isSignal": true; }; "accentRail": { "alias": "accentRail"; "required": false; "isSignal": true; }; }, { "closed": "closed"; }, never, ["*", "[actions]"], true, never>;
|
|
3759
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BannerComponent, "ds-banner", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "dismissible": { "alias": "dismissible"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "compact": { "alias": "compact"; "required": false; "isSignal": true; }; "layout": { "alias": "layout"; "required": false; "isSignal": true; }; "accentRail": { "alias": "accentRail"; "required": false; "isSignal": true; }; "announce": { "alias": "announce"; "required": false; "isSignal": true; }; }, { "closed": "closed"; }, never, ["*", "[actions]"], true, never>;
|
|
3731
3760
|
}
|
|
3732
3761
|
|
|
3733
3762
|
type AlertVariant = 'info' | 'success' | 'warning' | 'error' | 'neutral';
|
|
@@ -3743,14 +3772,18 @@ declare class AlertComponent {
|
|
|
3743
3772
|
readonly icon: _angular_core.InputSignal<IconName | null>;
|
|
3744
3773
|
/** Fires when the user dismisses the alert. */
|
|
3745
3774
|
readonly closed: _angular_core.OutputEmitterRef<void>;
|
|
3746
|
-
|
|
3747
|
-
|
|
3775
|
+
/** Announce this alert to a screen reader when it appears. Off by default — see
|
|
3776
|
+
* `ds-banner`'s `announce` for why, and prefer `ToastService` for anything
|
|
3777
|
+
* transient. */
|
|
3778
|
+
readonly announce: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
3779
|
+
protected get ariaRole(): 'alert' | 'status' | null;
|
|
3780
|
+
protected get ariaLive(): 'assertive' | 'polite' | null;
|
|
3748
3781
|
protected readonly classes: _angular_core.Signal<string>;
|
|
3749
3782
|
protected readonly defaultIcon: _angular_core.Signal<IconName>;
|
|
3750
3783
|
protected readonly resolvedIcon: _angular_core.Signal<IconName>;
|
|
3751
3784
|
protected onDismiss(): void;
|
|
3752
3785
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AlertComponent, never>;
|
|
3753
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AlertComponent, "ds-alert", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "dismissible": { "alias": "dismissible"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; }, { "closed": "closed"; }, never, ["*", "[actions]"], true, never>;
|
|
3786
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AlertComponent, "ds-alert", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "dismissible": { "alias": "dismissible"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "announce": { "alias": "announce"; "required": false; "isSignal": true; }; }, { "closed": "closed"; }, never, ["*", "[actions]"], true, never>;
|
|
3754
3787
|
}
|
|
3755
3788
|
|
|
3756
3789
|
type DropzoneFileState = 'queued' | 'uploading' | 'success' | 'error';
|
|
@@ -3981,8 +4014,15 @@ type TooltipPlacement = 'top' | 'bottom' | 'left' | 'right';
|
|
|
3981
4014
|
declare class TooltipDirective implements OnDestroy {
|
|
3982
4015
|
private readonly overlay;
|
|
3983
4016
|
private readonly host;
|
|
4017
|
+
/** Tip text. An empty string is how you turn the tooltip off — a host bound to a
|
|
4018
|
+
* value that may be blank needs no separate condition. */
|
|
3984
4019
|
readonly dsTooltip: _angular_core.InputSignal<string>;
|
|
4020
|
+
/** Which side the tip opens on. It does NOT flip: only the requested side is
|
|
4021
|
+
* offered to the overlay, so a tip with no room there is pushed rather than moved
|
|
4022
|
+
* to the opposite side. */
|
|
3985
4023
|
readonly dsTooltipPlacement: _angular_core.InputSignal<TooltipPlacement>;
|
|
4024
|
+
/** Milliseconds before the tip appears. Hiding is immediate — this delay only ever
|
|
4025
|
+
* suppresses a tip the pointer passed over on its way somewhere else. */
|
|
3986
4026
|
readonly dsTooltipDelay: _angular_core.InputSignal<number>;
|
|
3987
4027
|
private ref;
|
|
3988
4028
|
private timer;
|
|
@@ -4096,29 +4136,27 @@ interface ToastEntry {
|
|
|
4096
4136
|
readonly action?: ToastAction;
|
|
4097
4137
|
/** Auto-dismiss delay, counted from the moment the toast becomes VISIBLE — a
|
|
4098
4138
|
* queued toast must not expire while it is still waiting behind the cap.
|
|
4099
|
-
* 0
|
|
4139
|
+
* `0`, and any negative, means it never expires. */
|
|
4100
4140
|
readonly durationMs: number;
|
|
4101
4141
|
}
|
|
4102
|
-
interface ToastPromiseMessages {
|
|
4142
|
+
interface ToastPromiseMessages<T = unknown> {
|
|
4103
4143
|
readonly loading: string;
|
|
4104
|
-
readonly success: string | ((value:
|
|
4144
|
+
readonly success: string | ((value: T) => string);
|
|
4105
4145
|
readonly error: string | ((reason: unknown) => string);
|
|
4106
4146
|
}
|
|
4107
|
-
type DsToastHorizontalPosition = 'left' | 'center' | 'right';
|
|
4108
|
-
type DsToastVerticalPosition = 'top' | 'bottom';
|
|
4109
|
-
interface DsToastPosition {
|
|
4110
|
-
readonly horizontalPosition: DsToastHorizontalPosition;
|
|
4111
|
-
readonly verticalPosition: DsToastVerticalPosition;
|
|
4112
|
-
readonly offset: string;
|
|
4113
|
-
}
|
|
4114
4147
|
|
|
4115
4148
|
declare class ToastService {
|
|
4116
4149
|
private readonly overlay;
|
|
4117
|
-
private readonly position;
|
|
4118
4150
|
private readonly toastConfig;
|
|
4151
|
+
private readonly announcer;
|
|
4119
4152
|
private overlayRef;
|
|
4120
4153
|
private regionRef;
|
|
4121
4154
|
private nextId;
|
|
4155
|
+
private pendingAnnouncements;
|
|
4156
|
+
private pendingAssertive;
|
|
4157
|
+
private announceTimer;
|
|
4158
|
+
private scrimWatcher;
|
|
4159
|
+
constructor();
|
|
4122
4160
|
show(opts: ToastOptions): ToastRef;
|
|
4123
4161
|
/** Show a loading toast for the duration of `source`. Resolution and rejection are
|
|
4124
4162
|
* reflected in-place (same toast, no stack-up) as success/error variants, each with
|
|
@@ -4127,9 +4165,25 @@ declare class ToastService {
|
|
|
4127
4165
|
* Returns `source` itself, so the caller still owns rejection handling — an
|
|
4128
4166
|
* un-`catch`ed call produces an unhandled rejection exactly as it would without a
|
|
4129
4167
|
* toast. */
|
|
4130
|
-
promise<T>(source: Promise<T>, messages: ToastPromiseMessages): Promise<T>;
|
|
4168
|
+
promise<T>(source: Promise<T>, messages: ToastPromiseMessages<T>): Promise<T>;
|
|
4169
|
+
/** The announcement must NOT ride the visual toast: `aria-live` on an element created
|
|
4170
|
+
* together with its text announces nothing in NVDA or JAWS. The CDK announcer's region
|
|
4171
|
+
* exists from construction and only its text changes.
|
|
4172
|
+
*
|
|
4173
|
+
* Serialising a burst does not work either — `announce()` clears the region and writes
|
|
4174
|
+
* on a timeout, resolving its promise inside that callback, so the next message wipes
|
|
4175
|
+
* the previous one before anything can read it. One region change carrying every
|
|
4176
|
+
* message is the only shape that survives. */
|
|
4177
|
+
private announce;
|
|
4131
4178
|
dismissAll(): void;
|
|
4132
4179
|
private ensureRegion;
|
|
4180
|
+
/** Keeps the toast above a scrim opened AFTER it. `--layer-toast` cannot: CDK gives
|
|
4181
|
+
* every overlay host `popover="manual"`, and the browser's top layer paints in the
|
|
4182
|
+
* order things were shown, ignoring z-index. Re-showing the host is the only lever.
|
|
4183
|
+
*
|
|
4184
|
+
* Scrimmed overlays only: the published layer scale puts `--layer-tooltip` above the
|
|
4185
|
+
* toast. */
|
|
4186
|
+
private keepAboveScrims;
|
|
4133
4187
|
private buildPositionStrategy;
|
|
4134
4188
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ToastService, never>;
|
|
4135
4189
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<ToastService>;
|
|
@@ -4137,47 +4191,52 @@ declare class ToastService {
|
|
|
4137
4191
|
|
|
4138
4192
|
declare class ToastRegionComponent {
|
|
4139
4193
|
/** Cap on concurrently visible toasts. Extras are queued and shown as
|
|
4140
|
-
* earlier ones dismiss. 0 = unlimited
|
|
4194
|
+
* earlier ones dismiss. `0` = unlimited. */
|
|
4141
4195
|
readonly maxVisible: _angular_core.InputSignal<number>;
|
|
4142
4196
|
protected readonly visibleEntries: _angular_core.WritableSignal<readonly ToastEntry[]>;
|
|
4143
4197
|
protected readonly leaving: _angular_core.WritableSignal<ReadonlySet<number>>;
|
|
4144
4198
|
private readonly pendingQueue;
|
|
4145
4199
|
private readonly timers;
|
|
4200
|
+
private readonly leaveTimers;
|
|
4146
4201
|
private readonly remaining;
|
|
4147
4202
|
private readonly startedAt;
|
|
4148
4203
|
private hovered;
|
|
4149
4204
|
private focusWithin;
|
|
4150
4205
|
private readonly host;
|
|
4151
4206
|
private readonly position;
|
|
4207
|
+
constructor();
|
|
4152
4208
|
/** Newest goes NEAREST the anchor, so the toast that just fired appears where the
|
|
4153
4209
|
* stack is pinned rather than at the far end of a list the reader has to hunt
|
|
4154
4210
|
* down. DOM order is the visual order, so this also keeps the reading order. */
|
|
4155
4211
|
private readonly newestFirst;
|
|
4156
4212
|
add(entry: ToastEntry): void;
|
|
4157
4213
|
private show;
|
|
4214
|
+
/** FLIP, rather than the usual absolute stack: absolute positioning collapses the region
|
|
4215
|
+
* to zero height, and it lives in a CDK pane sized to its content, so the hit area goes
|
|
4216
|
+
* with it. */
|
|
4217
|
+
private slideNeighbours;
|
|
4218
|
+
private toastNodes;
|
|
4219
|
+
private measureTops;
|
|
4158
4220
|
private arm;
|
|
4159
4221
|
private clearCountdown;
|
|
4160
|
-
/** A toast holding the pointer or the keyboard is being read or acted on, so its
|
|
4161
|
-
* clock stops. Without this the only control for an `action` can be destroyed
|
|
4162
|
-
* while the user is reaching for it — and the region sits last in tab order, so
|
|
4163
|
-
* reaching it takes longer than the default five seconds on any real page. */
|
|
4164
4222
|
protected onHover(entered: boolean): void;
|
|
4165
4223
|
protected onFocusWithin(event: FocusEvent | true): void;
|
|
4166
4224
|
private syncPause;
|
|
4167
4225
|
private get paused();
|
|
4168
4226
|
private pauseAll;
|
|
4169
4227
|
private resumeAll;
|
|
4170
|
-
/** Replace fields of an already-visible or queued toast in place.
|
|
4171
|
-
*
|
|
4172
|
-
*
|
|
4173
|
-
* effect on promotion — which is the whole point: `promise()` patches a loading
|
|
4174
|
-
* toast (duration 0) into a settled one, and if that toast is still behind the cap
|
|
4175
|
-
* its new duration must not start burning down while it is invisible. */
|
|
4228
|
+
/** Replace fields of an already-visible or queued toast in place. Patching
|
|
4229
|
+
* `durationMs` restarts the clock, and on a QUEUED toast it takes effect only on
|
|
4230
|
+
* promotion — otherwise a duration would burn down while the toast is invisible. */
|
|
4176
4231
|
update(id: number, patch: Partial<Pick<ToastEntry, 'body' | 'title' | 'variant' | 'dismissible' | 'action' | 'durationMs'>>): void;
|
|
4177
4232
|
remove(id: number): void;
|
|
4233
|
+
/** The leave transition is a public token, so its length is whatever the consumer
|
|
4234
|
+
* set — read it off the node rather than assuming. Reduced motion zeroes it, which
|
|
4235
|
+
* is why the floor applies only when there is nothing to measure. */
|
|
4236
|
+
private leaveDuration;
|
|
4178
4237
|
protected isLeaving(id: number): boolean;
|
|
4179
4238
|
clear(): void;
|
|
4180
|
-
private
|
|
4239
|
+
private drainQueue;
|
|
4181
4240
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ToastRegionComponent, never>;
|
|
4182
4241
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ToastRegionComponent, "ds-toast-region", never, { "maxVisible": { "alias": "maxVisible"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
4183
4242
|
}
|
|
@@ -4187,12 +4246,12 @@ declare class ToastRegionComponent {
|
|
|
4187
4246
|
* AND by static showcases that need to display a toast specimen inline.
|
|
4188
4247
|
*/
|
|
4189
4248
|
declare class ToastComponent {
|
|
4190
|
-
/** Severity — drives colour
|
|
4249
|
+
/** Severity — drives colour and the default icon or spinner. */
|
|
4191
4250
|
readonly variant: _angular_core.InputSignal<ToastVariant>;
|
|
4192
4251
|
/** Optional bold heading above the message. */
|
|
4193
4252
|
readonly title: _angular_core.InputSignal<string>;
|
|
4194
|
-
/**
|
|
4195
|
-
readonly
|
|
4253
|
+
/** The same field `ToastOptions.body` carries, so a specimen and a raised toast agree. */
|
|
4254
|
+
readonly body: _angular_core.InputSignal<string>;
|
|
4196
4255
|
/** Show a close button that emits `closed`. */
|
|
4197
4256
|
readonly dismissible: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
4198
4257
|
/** Override the variant's default icon. */
|
|
@@ -4204,22 +4263,13 @@ declare class ToastComponent {
|
|
|
4204
4263
|
protected readonly isLoading: _angular_core.Signal<boolean>;
|
|
4205
4264
|
protected onAction(action: ToastAction): void;
|
|
4206
4265
|
protected readonly classes: _angular_core.Signal<string>;
|
|
4207
|
-
/** Errors/warnings interrupt (assertive); info/success wait their turn. */
|
|
4208
|
-
protected readonly role: _angular_core.Signal<"status" | "alert">;
|
|
4209
4266
|
protected readonly defaultIcon: _angular_core.Signal<IconName>;
|
|
4210
4267
|
protected onDismiss(): void;
|
|
4211
4268
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ToastComponent, never>;
|
|
4212
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ToastComponent, "ds-toast", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "
|
|
4269
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ToastComponent, "ds-toast", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "body": { "alias": "body"; "required": false; "isSignal": true; }; "dismissible": { "alias": "dismissible"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "action": { "alias": "action"; "required": false; "isSignal": true; }; }, { "closed": "closed"; }, never, ["*", "[actions]"], true, never>;
|
|
4213
4270
|
}
|
|
4214
4271
|
|
|
4215
|
-
declare const DS_TOAST_POSITION: InjectionToken<DsToastPosition>;
|
|
4216
4272
|
declare const DS_TOAST_POSITION_DEFAULT: DsToastPosition;
|
|
4217
|
-
interface DsToastConfig {
|
|
4218
|
-
/** Maximum number of toasts visible at once. Extras are queued and shown
|
|
4219
|
-
* as earlier ones dismiss. Defaults to unlimited when not provided. */
|
|
4220
|
-
readonly maxVisible?: number;
|
|
4221
|
-
}
|
|
4222
|
-
declare const DS_TOAST_CONFIG: InjectionToken<DsToastConfig>;
|
|
4223
4273
|
|
|
4224
4274
|
type DrawerPlacement = 'right' | 'left' | 'top' | 'bottom';
|
|
4225
4275
|
|
|
@@ -5540,5 +5590,5 @@ declare class FieldClickFocusDirective {
|
|
|
5540
5590
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<FieldClickFocusDirective, "[dsFieldClickFocus]", never, {}, {}, never, never, true, never>;
|
|
5541
5591
|
}
|
|
5542
5592
|
|
|
5543
|
-
export { ACCORDION, AccordionComponent, AccordionItemComponent, AlertComponent, AppLayoutComponent, AuthLayoutComponent, AutocompleteComponent, AvatarComponent, AvatarGroupComponent, BadgeComponent, BannerComponent, BodyScrollLockService, BottomSheetComponent, BrandNameDirective, BreadcrumbsComponent, BreadcrumbsService, ButtonComponent, ButtonGroupComponent, CardComponent, CellTemplateDirective, CheckboxComponent, ColorPickerComponent, ContainerComponent, DS_CONFIG, DS_FIELD_GROUP, DS_FIELD_WARNING_KIND, DS_ICON_REGISTRY,
|
|
5544
|
-
export type { AccordionContract, AccordionItemRef, AlertVariant, AutocompleteItem, AutocompleteOption, AutocompleteOptionGroup, AutocompleteValueOverflow, AutocompleteWidth, AvatarSize, AvatarStatus, AvatarTintOptions, BannerVariant, BreadcrumbItem, ButtonColor, ButtonType, ButtonVariant, CardElevation, CardPadding, ContainerSize, DatePickerMode, DatePickerPreset, DatePickerValue, DateValue, DescriptionListOrientation, DividerSpacing, DividerVariant, DrawerPlacement, DropzoneFile, DropzoneFileState, DsConfig, DsControlWidth, DsFieldError, DsFieldErrorsInput, DsFieldGroupContext, DsIconRegistry, DsOption, DsOptionGroup, DsOptionItem, DsPasswordRule, DsPasswordRuleState, DsScrollReset, DsSize, DsStatus, DsStatusKey, DsStatusRegistry, DsThemeOptions,
|
|
5593
|
+
export { ACCORDION, AccordionComponent, AccordionItemComponent, AlertComponent, AppLayoutComponent, AuthLayoutComponent, AutocompleteComponent, AvatarComponent, AvatarGroupComponent, BadgeComponent, BannerComponent, BodyScrollLockService, BottomSheetComponent, BrandNameDirective, BreadcrumbsComponent, BreadcrumbsService, ButtonComponent, ButtonGroupComponent, CardComponent, CellTemplateDirective, CheckboxComponent, ColorPickerComponent, ContainerComponent, DS_CONFIG, DS_FIELD_GROUP, DS_FIELD_WARNING_KIND, DS_ICON_REGISTRY, DS_TOAST_POSITION_DEFAULT, DatePickerComponent, DescriptionItemComponent, DescriptionListComponent, DividerComponent, DrawerComponent, DropzoneComponent, DsChipTemplateDirective, DsCreateTemplateDirective, DsEmptyTemplateDirective, DsGroupLabelTemplateDirective, DsOptionTemplateDirective, DsOverlayCloseRef, DsPanelFooterTemplateDirective, DsPanelHeaderTemplateDirective, DsPickerTriggerDirective, DsStaticPreview, EmptyStateComponent, FieldClickFocusDirective, FieldGroupComponent, FilterBarComponent, FilterItemDirective, HeaderFilterDirective, ICONS, IconButtonComponent, IconComponent, InlineComponent, InputComponent, LayoutNavigationService, LayoutScrollService, ListComponent, ListItemComponent, LoadingOverlayComponent, MenuComponent, MenuDividerComponent, MenuItemComponent, ModalCardComponent, ModalComponent, ModalService, MultiSelectComponent, NumberStepperComponent, OtpInputComponent, PageFooterComponent, PageHeaderComponent, PaginationComponent, PasswordRulesComponent, PopoverComponent, ProgressComponent, RADIO_GROUP, RadioComponent, RadioGroupComponent, RailTriggerDirective, ReserveMessagesDirective, SIDENAV, SearchComponent, SegmentedComponent, SelectComponent, SidenavComponent, SidenavFooterComponent, SidenavGroupComponent, SidenavItemComponent, SkeletonComponent, SliderComponent, SpinnerComponent, SplitButtonComponent, StackComponent, StatComponent, StatusDotComponent, StepperComponent, SwitchComponent, TabComponent, TableComponent, TabsComponent, TagComponent, TextareaComponent, TimePickerComponent, TimelineComponent, TimelineItemComponent, ToastComponent, ToastRegionComponent, ToastService, ToggleButtonComponent, TooltipDirective, TooltipPanelComponent, TopBarComponent, TreeComponent, W3wComponent, avatarTint, flattenDsOptions, inheritDsConfig, initialsFrom, isDsOptionGroup, isSelectOptionGroup, passwordRulesMet, provideDsConfig, provideDsIcons, provideDsTheme };
|
|
5594
|
+
export type { AccordionContract, AccordionItemRef, AlertVariant, AutocompleteItem, AutocompleteOption, AutocompleteOptionGroup, AutocompleteValueOverflow, AutocompleteWidth, AvatarSize, AvatarStatus, AvatarTintOptions, BannerVariant, BreadcrumbItem, ButtonColor, ButtonType, ButtonVariant, CardElevation, CardPadding, ContainerSize, DatePickerMode, DatePickerPreset, DatePickerValue, DateValue, DescriptionListOrientation, DividerSpacing, DividerVariant, DrawerPlacement, DropzoneFile, DropzoneFileState, DsConfig, DsControlWidth, DsFieldError, DsFieldErrorsInput, DsFieldGroupContext, DsIconRegistry, DsOption, DsOptionGroup, DsOptionItem, DsPasswordRule, DsPasswordRuleState, DsScrollReset, DsSize, DsStatus, DsStatusKey, DsStatusRegistry, DsThemeOptions, DsToastHorizontalPosition, DsToastPosition, DsToastVerticalPosition, DsTriggerDisplay, EmptyStateVariant, HeaderFilterContext, IconButtonType, IconButtonVariant, IconName, InputType, LayoutAlign, LayoutGap, LayoutJustify, ModalConfirmOptions, ModalConfirmTone, ModalSize, MultiSelectItem, MultiSelectOption, MultiSelectOptionGroup, MultiSelectWidth, OtpMode, PageFooterVariant, PopoverAlign, PopoverPlacement, ProgressVariant, RadioGroupChild, RadioGroupContract, RangeValue, SegmentedOption, SelectItem, SelectOption, SelectOptionGroup, SelectWidth, SidenavAlertItem, SidenavContract, SidenavItemModel, SidenavSearchProvider, SidenavSearchResult, SortChangeEvent, SortDir, SplitButtonItem, SplitButtonVariant, StepperLabelPosition, StepperOrientation, TableCellEditEvent, TableColumn, TableExpandMode, TableFilterMode, TableRowAction, TableRowActionEvent, TableSortMode, TabsOrientation, TabsVariant, TagVariant, TextareaResize, TimeFormat, TimePickerMode, TimePickerValue, TimeRangeValue, TimeValue, TimelineTone, ToastAction, ToastEntry, ToastOptions, ToastPromiseMessages, ToastRef, ToastVariant, TooltipPlacement, TreeNode };
|