@ids-group-ltd/ids-design-system 0.6.2 → 0.6.3
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 +151 -1
- package/fesm2022/ids-group-ltd-ids-design-system.mjs +2616 -1759
- package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
- package/migrations/0.5.1/badge-statuses.md +181 -0
- package/migrations/0.5.1.json +2 -2
- package/migrations/0.6.3.json +50 -0
- package/migrations/README.md +6 -0
- package/package.json +1 -1
- package/styles/_typography.scss +169 -20
- package/types/ids-group-ltd-ids-design-system.d.ts +367 -15
|
@@ -2,6 +2,7 @@ import * as _angular_core from '@angular/core';
|
|
|
2
2
|
import { InjectionToken, Provider, EnvironmentProviders, ElementRef, TemplateRef, ModelSignal, OnDestroy } from '@angular/core';
|
|
3
3
|
import { SafeHtml } from '@angular/platform-browser';
|
|
4
4
|
import { ControlValueAccessor } from '@angular/forms';
|
|
5
|
+
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
5
6
|
import * as _ids_group_ltd_ids_design_system from '@ids-group-ltd/ids-design-system';
|
|
6
7
|
|
|
7
8
|
declare const ICONS: {
|
|
@@ -361,6 +362,62 @@ declare class StatusDotComponent {
|
|
|
361
362
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<StatusDotComponent, "ds-status-dot", never, { "status": { "alias": "status"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
362
363
|
}
|
|
363
364
|
|
|
365
|
+
/**
|
|
366
|
+
* Fixed-frame application shell: the host is pinned to the viewport
|
|
367
|
+
* (`100dvh` + `overflow: hidden`) and ONLY the content region scrolls, so
|
|
368
|
+
* the sidenav rail and the topbar stay put on pages taller than the
|
|
369
|
+
* viewport. Consumers project their own chrome into the slots:
|
|
370
|
+
*
|
|
371
|
+
* ```html
|
|
372
|
+
* <ds-app-shell>
|
|
373
|
+
* <ds-sidenav sidenav>…</ds-sidenav>
|
|
374
|
+
* <ds-topbar topbar>…</ds-topbar>
|
|
375
|
+
* <router-outlet />
|
|
376
|
+
* </ds-app-shell>
|
|
377
|
+
* ```
|
|
378
|
+
*
|
|
379
|
+
* The shell renders the `<main>` landmark itself — do not nest another
|
|
380
|
+
* `<main>` in the content. Scroll-to-top on navigation is built in
|
|
381
|
+
* (`ShellScrollService`); the content padding auto-compensates the native
|
|
382
|
+
* scrollbar width so the right inset always equals the left one. The shell
|
|
383
|
+
* requires the application router (`provideRouter`) because its scroll-to-top
|
|
384
|
+
* service subscribes to navigation events.
|
|
385
|
+
*/
|
|
386
|
+
declare class AppShellComponent {
|
|
387
|
+
/**
|
|
388
|
+
* `'content'` (default): the rail spans the full viewport height on the
|
|
389
|
+
* left and the topbar sits above the content column only. `'full'`: the
|
|
390
|
+
* topbar spans the full width and the rail + content sit below it.
|
|
391
|
+
*/
|
|
392
|
+
readonly topbarSpan: _angular_core.InputSignal<"content" | "full">;
|
|
393
|
+
private readonly shellScroll;
|
|
394
|
+
private readonly content;
|
|
395
|
+
constructor();
|
|
396
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AppShellComponent, never>;
|
|
397
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AppShellComponent, "ds-app-shell", never, { "topbarSpan": { "alias": "topbarSpan"; "required": false; "isSignal": true; }; }, {}, never, ["[sidenav]", "[topbar]", "*"], true, never>;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
/**
|
|
401
|
+
* Owns the shell's content scroller. In the fixed-frame shell the window
|
|
402
|
+
* never scrolls, so the router's built-in window-based scrolling no-ops —
|
|
403
|
+
* this service resets the registered container to the top after every
|
|
404
|
+
* navigation instead. Provided by `ds-app-shell`, so routed pages can
|
|
405
|
+
* `inject(ShellScrollService)` and call `scrollToTop()` manually (e.g. list
|
|
406
|
+
* pages resetting scroll on filter changes). Per-route scroll restoration is
|
|
407
|
+
* a documented growth point — add it here if a page ever needs
|
|
408
|
+
* back-navigation scroll memory.
|
|
409
|
+
*/
|
|
410
|
+
declare class ShellScrollService {
|
|
411
|
+
private readonly router;
|
|
412
|
+
private readonly destroyRef;
|
|
413
|
+
private scrollContainer;
|
|
414
|
+
constructor();
|
|
415
|
+
setScrollContainer(element: Element): void;
|
|
416
|
+
scrollToTop(): void;
|
|
417
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ShellScrollService, never>;
|
|
418
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<ShellScrollService>;
|
|
419
|
+
}
|
|
420
|
+
|
|
364
421
|
type AvatarSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
365
422
|
type AvatarStatus = 'online' | 'offline' | 'away' | 'busy';
|
|
366
423
|
|
|
@@ -623,7 +680,7 @@ declare class InputComponent extends DsControlValueAccessor<string> {
|
|
|
623
680
|
* live "{current}/{max}" counter below the field. */
|
|
624
681
|
readonly maxLength: _angular_core.InputSignal<number | null>;
|
|
625
682
|
/** Mobile keyboard hints — forwarded to the native input as attributes. */
|
|
626
|
-
readonly enterKeyHint: _angular_core.InputSignal<"search" | "
|
|
683
|
+
readonly enterKeyHint: _angular_core.InputSignal<"search" | "next" | "enter" | "done" | "go" | "previous" | "send" | null>;
|
|
627
684
|
/** Native `inputmode` attribute — hints the on-screen keyboard layout. */
|
|
628
685
|
readonly inputMode: _angular_core.InputSignal<"search" | "text" | "none" | "email" | "tel" | "url" | "decimal" | "numeric" | null>;
|
|
629
686
|
/** Emits when the native input loses focus. */
|
|
@@ -792,6 +849,7 @@ declare function isSelectOptionGroup(item: SelectItem): item is SelectOptionGrou
|
|
|
792
849
|
declare class SelectComponent extends DsControlValueAccessor<string> implements OnDestroy {
|
|
793
850
|
private readonly overlay;
|
|
794
851
|
private readonly vcr;
|
|
852
|
+
private readonly host;
|
|
795
853
|
protected readonly preview: DsStaticPreview;
|
|
796
854
|
/** Selected option's value, two-way bound. */
|
|
797
855
|
readonly value: _angular_core.ModelSignal<string>;
|
|
@@ -895,12 +953,29 @@ interface TableColumn<T = unknown> {
|
|
|
895
953
|
key: string;
|
|
896
954
|
label: string;
|
|
897
955
|
sortable?: boolean;
|
|
956
|
+
/** Include the column in `filterQuery` matching. When no column is marked,
|
|
957
|
+
* every column matches. Works on `hidden` columns too. */
|
|
898
958
|
filterable?: boolean;
|
|
959
|
+
/** Adds a header filter menu. `'set'` lists the column's distinct values as
|
|
960
|
+
* a searchable checkbox list; a row passes when its value stays checked. */
|
|
961
|
+
filter?: 'set';
|
|
962
|
+
/** Ellipsis-clip long cell text at `width` (240px when unset) — full value
|
|
963
|
+
* in the title tooltip, and clicking a clipped cell opens it in a popover.
|
|
964
|
+
* Text cells only — template cells own their overflow. */
|
|
899
965
|
truncate?: boolean;
|
|
966
|
+
/** Column width in px — also the clip width for `truncate`. */
|
|
900
967
|
width?: number;
|
|
901
968
|
align?: 'left' | 'right' | 'center';
|
|
902
969
|
cell?: (row: T) => string;
|
|
970
|
+
/** Double-click the cell to edit it inline; the committed value is emitted
|
|
971
|
+
* via the table's `cellEdited` output (the consumer owns the data update). */
|
|
972
|
+
editable?: boolean;
|
|
973
|
+
/** Let the user toggle the column in the header column picker — the picker
|
|
974
|
+
* button appears once at least one column is hideable. */
|
|
903
975
|
hideable?: boolean;
|
|
976
|
+
/** Initial visibility: start hidden. The column picker (or a bound
|
|
977
|
+
* `hiddenKeys` set) owns the state from then on; a hidden column stays
|
|
978
|
+
* available to `filterable` matching and sorting. */
|
|
904
979
|
hidden?: boolean;
|
|
905
980
|
}
|
|
906
981
|
type SortDir = 'asc' | 'desc' | null;
|
|
@@ -908,6 +983,25 @@ interface SortChangeEvent {
|
|
|
908
983
|
key: string;
|
|
909
984
|
dir: SortDir;
|
|
910
985
|
}
|
|
986
|
+
interface TableRowAction<T = unknown> {
|
|
987
|
+
/** Stable identifier — use it to branch in `rowActionSelected`. */
|
|
988
|
+
id: string;
|
|
989
|
+
label: string;
|
|
990
|
+
icon?: IconName;
|
|
991
|
+
/** Renders the item in the destructive style. */
|
|
992
|
+
error?: boolean;
|
|
993
|
+
/** Per-row predicate — return true to disable the item for that row. */
|
|
994
|
+
disabled?: (row: T) => boolean;
|
|
995
|
+
}
|
|
996
|
+
interface TableRowActionEvent<T = unknown> {
|
|
997
|
+
action: TableRowAction<T>;
|
|
998
|
+
row: T;
|
|
999
|
+
}
|
|
1000
|
+
interface TableCellEditEvent<T = unknown> {
|
|
1001
|
+
row: T;
|
|
1002
|
+
key: string;
|
|
1003
|
+
value: string;
|
|
1004
|
+
}
|
|
911
1005
|
|
|
912
1006
|
declare class TableComponent<T extends {
|
|
913
1007
|
id: string;
|
|
@@ -931,6 +1025,14 @@ declare class TableComponent<T extends {
|
|
|
931
1025
|
readonly loading: _angular_core.InputSignal<false | "skeleton" | "overlay">;
|
|
932
1026
|
/** Keeps the header row pinned while the body scrolls. */
|
|
933
1027
|
readonly stickyHeader: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1028
|
+
/** Caps the scroll body height (any CSS length, e.g. `'320px'`) and scrolls it
|
|
1029
|
+
* vertically — pair with `stickyHeader` for a self-contained scroll region.
|
|
1030
|
+
* `null` (default) lets the table grow to its content. */
|
|
1031
|
+
readonly maxHeight: _angular_core.InputSignal<string | null>;
|
|
1032
|
+
/** Row density — `'compact'` tightens cell padding for spreadsheet-dense lists. */
|
|
1033
|
+
readonly density: _angular_core.InputSignal<"default" | "compact">;
|
|
1034
|
+
/** Tints odd rows for easier row-tracking across wide tables. */
|
|
1035
|
+
readonly zebra: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
934
1036
|
/** Two-way set of currently selected row ids. */
|
|
935
1037
|
readonly selectedIds: _angular_core.ModelSignal<Set<string>>;
|
|
936
1038
|
/** Column key currently sorted by; `null` when unsorted. */
|
|
@@ -945,8 +1047,37 @@ declare class TableComponent<T extends {
|
|
|
945
1047
|
/** When true, each row becomes a keyboard-operable control (role=button,
|
|
946
1048
|
* tabindex, Enter/Space → rowClicked) with an accessible name from the first
|
|
947
1049
|
* column. Off by default so non-navigating tables don't advertise a false
|
|
948
|
-
* click affordance. */
|
|
1050
|
+
* click affordance. Also the gate for the hover/pressed row tints. */
|
|
949
1051
|
readonly rowInteractive: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1052
|
+
/** Id of the row rendered as current (highlight + `aria-current`) — e.g. the
|
|
1053
|
+
* row whose detail drawer or side panel is open. `null` — none. */
|
|
1054
|
+
readonly activeRowId: _angular_core.InputSignal<string | null>;
|
|
1055
|
+
/** Client-side row filter — case-insensitive substring match against cell
|
|
1056
|
+
* text. Columns with `filterable: true` restrict the match set (none
|
|
1057
|
+
* marked — every column matches, hidden ones included). '' — no filtering. */
|
|
1058
|
+
readonly filterQuery: _angular_core.InputSignal<string>;
|
|
1059
|
+
/** Two-way per-column set-filters: column key → the still-checked values.
|
|
1060
|
+
* A column absent from the map (or with every value checked) is unfiltered. */
|
|
1061
|
+
readonly columnFilters: _angular_core.ModelSignal<Map<string, ReadonlySet<string>>>;
|
|
1062
|
+
/** Two-way set of hidden column keys. `null` (default) derives the set from
|
|
1063
|
+
* each column's `hidden` flag; the column picker then owns it. Binding a
|
|
1064
|
+
* Set takes over — `hidden` flags are ignored. */
|
|
1065
|
+
readonly hiddenKeys: _angular_core.ModelSignal<Set<string> | null>;
|
|
1066
|
+
/** Enables drag-to-resize handles on each column header. */
|
|
1067
|
+
readonly resizableColumns: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1068
|
+
/** Two-way per-column pixel width overrides (keyed by column key), set by
|
|
1069
|
+
* dragging a resize handle. Seeded from `column.width` where unset. */
|
|
1070
|
+
readonly columnWidths: _angular_core.ModelSignal<Map<string, number>>;
|
|
1071
|
+
/** Enables drag + up/down reordering in the column panel. */
|
|
1072
|
+
readonly reorderableColumns: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1073
|
+
/** Two-way column order as a list of keys. `null` (default) keeps declaration
|
|
1074
|
+
* order; the column panel owns it once the user reorders. Keys absent from
|
|
1075
|
+
* the list fall back to declaration order after the listed ones. */
|
|
1076
|
+
readonly columnOrder: _angular_core.ModelSignal<string[] | null>;
|
|
1077
|
+
/** Keeps the horizontal scrollbar reachable on tall tables: the scroll
|
|
1078
|
+
* container's native bar is hidden and a proxy stuck to the bottom of the
|
|
1079
|
+
* nearest scroll ancestor mirrors it both ways. Off by default. */
|
|
1080
|
+
readonly stickyScrollbar: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
950
1081
|
/** Rows per page. `null` (default) disables pagination — all rows render. */
|
|
951
1082
|
readonly pageSize: _angular_core.ModelSignal<number | null>;
|
|
952
1083
|
/** Current 1-based page. Only meaningful when `pageSize()` is set. */
|
|
@@ -962,6 +1093,13 @@ declare class TableComponent<T extends {
|
|
|
962
1093
|
readonly rowClicked: _angular_core.OutputEmitterRef<T>;
|
|
963
1094
|
/** Fires whenever sort key/direction changes, regardless of `clientSort`. */
|
|
964
1095
|
readonly sortChange: _angular_core.OutputEmitterRef<SortChangeEvent>;
|
|
1096
|
+
/** Row-action menu items rendered as a trailing kebab (⋮) column.
|
|
1097
|
+
* Empty (default) — no column. Menu clicks never trigger `rowClicked`. */
|
|
1098
|
+
readonly rowActions: _angular_core.InputSignal<readonly TableRowAction<T>[]>;
|
|
1099
|
+
/** Fires with the chosen action and its row when a kebab menu item is selected. */
|
|
1100
|
+
readonly rowActionSelected: _angular_core.OutputEmitterRef<TableRowActionEvent<T>>;
|
|
1101
|
+
/** Fires when an `editable` cell is committed (Enter or blur) with the new value. */
|
|
1102
|
+
readonly cellEdited: _angular_core.OutputEmitterRef<TableCellEditEvent<T>>;
|
|
965
1103
|
/** Cell templates supplied as an explicit map instead of (or in addition to)
|
|
966
1104
|
* projected `dsCellTemplate` directives. Lets a wrapper component (e.g.
|
|
967
1105
|
* ids-data-table) collect the directives itself and pass them down, since
|
|
@@ -997,7 +1135,64 @@ declare class TableComponent<T extends {
|
|
|
997
1135
|
protected readonly tableClasses: _angular_core.Signal<string>;
|
|
998
1136
|
protected readonly isSkeletonLoading: _angular_core.Signal<boolean>;
|
|
999
1137
|
protected readonly isOverlayLoading: _angular_core.Signal<boolean>;
|
|
1000
|
-
|
|
1138
|
+
protected readonly effectiveHiddenKeys: _angular_core.Signal<ReadonlySet<string>>;
|
|
1139
|
+
/** Columns in the user-controlled order — `columnOrder` first (dropping
|
|
1140
|
+
* unknown keys), then any declared column the order omitted. */
|
|
1141
|
+
protected readonly orderedColumns: _angular_core.Signal<readonly TableColumn<T>[]>;
|
|
1142
|
+
/** Columns actually rendered — reordered, then hidden ones skipped. */
|
|
1143
|
+
protected readonly visibleColumns: _angular_core.Signal<readonly TableColumn<T>[]>;
|
|
1144
|
+
/** Columns the user may toggle — drives the header column picker. */
|
|
1145
|
+
protected readonly hideableColumns: _angular_core.Signal<readonly TableColumn<T>[]>;
|
|
1146
|
+
protected readonly hasColumnPicker: _angular_core.Signal<boolean>;
|
|
1147
|
+
/** The trailing utility column hosts the picker button and/or row kebabs. */
|
|
1148
|
+
protected readonly hasUtilityColumn: _angular_core.Signal<boolean>;
|
|
1149
|
+
protected isColumnVisible(col: TableColumn<T>): boolean;
|
|
1150
|
+
/** The last visible column can't be hidden — an all-hidden grid is useless. */
|
|
1151
|
+
protected isColumnLocked(col: TableColumn<T>): boolean;
|
|
1152
|
+
protected toggleColumn(col: TableColumn<T>): void;
|
|
1153
|
+
protected moveColumn(col: TableColumn<T>, delta: -1 | 1): void;
|
|
1154
|
+
protected onColumnDrop(event: CdkDragDrop<unknown>): void;
|
|
1155
|
+
protected resetColumns(): void;
|
|
1156
|
+
private readonly columnFilterPopover;
|
|
1157
|
+
/** The column whose filter menu is open — drives the distinct-value list. */
|
|
1158
|
+
protected readonly filterColumn: _angular_core.WritableSignal<TableColumn<T> | null>;
|
|
1159
|
+
protected readonly filterSearch: _angular_core.WritableSignal<string>;
|
|
1160
|
+
protected hasColumnFilter(col: TableColumn<T>): boolean;
|
|
1161
|
+
/** A column is "actively filtered" when at least one of its values is unchecked. */
|
|
1162
|
+
protected isColumnFiltered(col: TableColumn<T>): boolean;
|
|
1163
|
+
private distinctValuesOf;
|
|
1164
|
+
/** Distinct values of the open column, narrowed by the popover search box. */
|
|
1165
|
+
protected readonly filterValues: _angular_core.Signal<string[]>;
|
|
1166
|
+
protected readonly filterSelectedCount: _angular_core.Signal<number>;
|
|
1167
|
+
protected isFilterValueChecked(value: string): boolean;
|
|
1168
|
+
protected onColumnFilterClick(col: TableColumn<T>, event: Event): void;
|
|
1169
|
+
protected onFilterSearch(event: Event): void;
|
|
1170
|
+
protected toggleFilterValue(value: string): void;
|
|
1171
|
+
protected clearColumnFilter(): void;
|
|
1172
|
+
private readonly injector;
|
|
1173
|
+
private readonly editInput;
|
|
1174
|
+
protected readonly editingCell: _angular_core.WritableSignal<{
|
|
1175
|
+
rowId: string;
|
|
1176
|
+
key: string;
|
|
1177
|
+
} | null>;
|
|
1178
|
+
protected readonly editDraft: _angular_core.WritableSignal<string>;
|
|
1179
|
+
protected isEditing(row: T, col: TableColumn<T>): boolean;
|
|
1180
|
+
protected startEdit(row: T, col: TableColumn<T>, event: Event): void;
|
|
1181
|
+
protected onEditInput(event: Event): void;
|
|
1182
|
+
protected commitEdit(row: T, col: TableColumn<T>): void;
|
|
1183
|
+
protected cancelEdit(): void;
|
|
1184
|
+
private static readonly MIN_COLUMN_WIDTH;
|
|
1185
|
+
private resizeState;
|
|
1186
|
+
/** Resolved pixel width for a column: a drag override wins, else `column.width`. */
|
|
1187
|
+
protected columnWidth(col: TableColumn<T>): number | null;
|
|
1188
|
+
protected onResizeStart(col: TableColumn<T>, event: PointerEvent): void;
|
|
1189
|
+
protected onResizeMove(event: PointerEvent): void;
|
|
1190
|
+
protected onResizeEnd(): void;
|
|
1191
|
+
/** Client-side filter over the full data set — combines the `filterQuery`
|
|
1192
|
+
* substring search with any per-column set filters. Sorting and pagination
|
|
1193
|
+
* run on the filtered rows. */
|
|
1194
|
+
protected readonly filteredData: _angular_core.Signal<readonly T[]>;
|
|
1195
|
+
/** Client-side sort over the filtered data set — only when `clientSort()`. */
|
|
1001
1196
|
protected readonly sortedData: _angular_core.Signal<readonly T[]>;
|
|
1002
1197
|
/** Current page's slice of the sorted rows, when paginating. */
|
|
1003
1198
|
protected readonly pagedData: _angular_core.Signal<readonly T[]>;
|
|
@@ -1008,16 +1203,40 @@ declare class TableComponent<T extends {
|
|
|
1008
1203
|
/** Select-all is page-scoped only when paginating. */
|
|
1009
1204
|
protected readonly selectAllLabel: _angular_core.Signal<"Select all rows on this page" | "Select all rows">;
|
|
1010
1205
|
protected readonly skeletonArray: _angular_core.Signal<any[]>;
|
|
1011
|
-
/** Total colspan for the expanded-row panel: data cols + optional select
|
|
1206
|
+
/** Total colspan for the expanded-row panel: data cols + optional select/expand/actions cols. */
|
|
1012
1207
|
protected readonly expandedColspan: _angular_core.Signal<number>;
|
|
1208
|
+
protected readonly hasRowActions: _angular_core.Signal<boolean>;
|
|
1209
|
+
/** Row whose kebab menu is open — drives the per-row `disabled` predicates. */
|
|
1210
|
+
protected readonly menuRow: _angular_core.WritableSignal<T | null>;
|
|
1211
|
+
private readonly rowMenuPopover;
|
|
1212
|
+
private readonly columnPickerPopover;
|
|
1213
|
+
protected readonly columnPickerOpened: _angular_core.Signal<boolean>;
|
|
1214
|
+
protected onColumnPickerClick(event: Event): void;
|
|
1215
|
+
protected readonly hasTruncate: _angular_core.Signal<boolean>;
|
|
1216
|
+
private readonly cellTextPopover;
|
|
1217
|
+
protected readonly cellPopoverText: _angular_core.WritableSignal<string>;
|
|
1218
|
+
/** Click on a `truncate` cell: when the text is actually clipped, show the
|
|
1219
|
+
* full value in a popover; otherwise let the click fall through to the row. */
|
|
1220
|
+
protected onCellClipClick(row: T, col: TableColumn<T>, event: Event): void;
|
|
1221
|
+
private readonly scrollWrap;
|
|
1222
|
+
private readonly hscrollProxy;
|
|
1223
|
+
protected readonly hscrollContentWidth: _angular_core.WritableSignal<number>;
|
|
1224
|
+
protected readonly hscrollNeeded: _angular_core.WritableSignal<boolean>;
|
|
1225
|
+
constructor();
|
|
1226
|
+
protected onRowMenuClick(row: T, event: Event): void;
|
|
1227
|
+
protected isMenuOpenFor(row: T): boolean;
|
|
1228
|
+
protected isActionDisabled(action: TableRowAction<T>): boolean;
|
|
1229
|
+
protected onRowAction(action: TableRowAction<T>): void;
|
|
1013
1230
|
protected isExpanded(row: T): boolean;
|
|
1014
1231
|
protected onToggleExpand(row: T, event: Event): void;
|
|
1015
1232
|
protected isSelected(row: T): boolean;
|
|
1016
1233
|
protected onToggleAll(event: Event): void;
|
|
1017
1234
|
protected onToggleRow(row: T, event: Event): void;
|
|
1235
|
+
private selectionBeforeGesture;
|
|
1236
|
+
protected onRowMousedown(): void;
|
|
1018
1237
|
protected onRowClick(row: T, event: Event): void;
|
|
1019
1238
|
protected onRowKey(row: T, event: Event): void;
|
|
1020
|
-
/** Accessible name for an interactive row, taken from the first column. */
|
|
1239
|
+
/** Accessible name for an interactive row, taken from the first visible column. */
|
|
1021
1240
|
protected rowAriaLabel(row: T): string;
|
|
1022
1241
|
/** `aria-sort` value for a header: only meaningful on sortable columns. */
|
|
1023
1242
|
protected ariaSort(col: TableColumn<T>): 'ascending' | 'descending' | 'none' | null;
|
|
@@ -1025,11 +1244,15 @@ declare class TableComponent<T extends {
|
|
|
1025
1244
|
protected headerClasses(col: TableColumn<T>): string;
|
|
1026
1245
|
protected sortIcon(col: TableColumn<T>): 'sortAsc' | 'sortDesc' | 'sort';
|
|
1027
1246
|
protected cellValue(row: T, col: TableColumn<T>): string;
|
|
1247
|
+
/** Exports the visible columns of the filtered + sorted rows (all rows, not
|
|
1248
|
+
* just the current page) as a CSV download. Call from a consumer button:
|
|
1249
|
+
* `<ds-button (pressed)="table.exportCsv()">`. */
|
|
1250
|
+
exportCsv(filename?: string): void;
|
|
1028
1251
|
/** Deterministic per-cell width so skeleton rows look organic but stable
|
|
1029
1252
|
* across re-renders. Mixes column key + row index into one of five widths. */
|
|
1030
1253
|
protected skeletonWidth(col: TableColumn<T>, rowIndex: number): string;
|
|
1031
1254
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableComponent<any>, never>;
|
|
1032
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TableComponent<any>, "ds-table", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "columns": { "alias": "columns"; "required": true; "isSignal": true; }; "selectable": { "alias": "selectable"; "required": false; "isSignal": true; }; "bordered": { "alias": "bordered"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "stickyHeader": { "alias": "stickyHeader"; "required": false; "isSignal": true; }; "selectedIds": { "alias": "selectedIds"; "required": false; "isSignal": true; }; "sortKey": { "alias": "sortKey"; "required": false; "isSignal": true; }; "sortDir": { "alias": "sortDir"; "required": false; "isSignal": true; }; "skeletonRows": { "alias": "skeletonRows"; "required": false; "isSignal": true; }; "caption": { "alias": "caption"; "required": false; "isSignal": true; }; "rowInteractive": { "alias": "rowInteractive"; "required": false; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "page": { "alias": "page"; "required": false; "isSignal": true; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; "isSignal": true; }; "clientSort": { "alias": "clientSort"; "required": false; "isSignal": true; }; "stickyFirstColumn": { "alias": "stickyFirstColumn"; "required": false; "isSignal": true; }; "cellTemplateMap": { "alias": "cellTemplateMap"; "required": false; "isSignal": true; }; "emptyTemplate": { "alias": "emptyTemplate"; "required": false; "isSignal": true; }; "expandableRows": { "alias": "expandableRows"; "required": false; "isSignal": true; }; "expandedIds": { "alias": "expandedIds"; "required": false; "isSignal": true; }; "rowExpandTemplate": { "alias": "rowExpandTemplate"; "required": false; "isSignal": true; }; }, { "selectedIds": "selectedIdsChange"; "sortKey": "sortKeyChange"; "sortDir": "sortDirChange"; "pageSize": "pageSizeChange"; "page": "pageChange"; "rowClicked": "rowClicked"; "sortChange": "sortChange"; "expandedIds": "expandedIdsChange"; }, ["cellTemplateDirectives"], ["[empty]", "[bulk-actions]"], true, never>;
|
|
1255
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TableComponent<any>, "ds-table", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "columns": { "alias": "columns"; "required": true; "isSignal": true; }; "selectable": { "alias": "selectable"; "required": false; "isSignal": true; }; "bordered": { "alias": "bordered"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "stickyHeader": { "alias": "stickyHeader"; "required": false; "isSignal": true; }; "maxHeight": { "alias": "maxHeight"; "required": false; "isSignal": true; }; "density": { "alias": "density"; "required": false; "isSignal": true; }; "zebra": { "alias": "zebra"; "required": false; "isSignal": true; }; "selectedIds": { "alias": "selectedIds"; "required": false; "isSignal": true; }; "sortKey": { "alias": "sortKey"; "required": false; "isSignal": true; }; "sortDir": { "alias": "sortDir"; "required": false; "isSignal": true; }; "skeletonRows": { "alias": "skeletonRows"; "required": false; "isSignal": true; }; "caption": { "alias": "caption"; "required": false; "isSignal": true; }; "rowInteractive": { "alias": "rowInteractive"; "required": false; "isSignal": true; }; "activeRowId": { "alias": "activeRowId"; "required": false; "isSignal": true; }; "filterQuery": { "alias": "filterQuery"; "required": false; "isSignal": true; }; "columnFilters": { "alias": "columnFilters"; "required": false; "isSignal": true; }; "hiddenKeys": { "alias": "hiddenKeys"; "required": false; "isSignal": true; }; "resizableColumns": { "alias": "resizableColumns"; "required": false; "isSignal": true; }; "columnWidths": { "alias": "columnWidths"; "required": false; "isSignal": true; }; "reorderableColumns": { "alias": "reorderableColumns"; "required": false; "isSignal": true; }; "columnOrder": { "alias": "columnOrder"; "required": false; "isSignal": true; }; "stickyScrollbar": { "alias": "stickyScrollbar"; "required": false; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "page": { "alias": "page"; "required": false; "isSignal": true; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; "isSignal": true; }; "clientSort": { "alias": "clientSort"; "required": false; "isSignal": true; }; "stickyFirstColumn": { "alias": "stickyFirstColumn"; "required": false; "isSignal": true; }; "rowActions": { "alias": "rowActions"; "required": false; "isSignal": true; }; "cellTemplateMap": { "alias": "cellTemplateMap"; "required": false; "isSignal": true; }; "emptyTemplate": { "alias": "emptyTemplate"; "required": false; "isSignal": true; }; "expandableRows": { "alias": "expandableRows"; "required": false; "isSignal": true; }; "expandedIds": { "alias": "expandedIds"; "required": false; "isSignal": true; }; "rowExpandTemplate": { "alias": "rowExpandTemplate"; "required": false; "isSignal": true; }; }, { "selectedIds": "selectedIdsChange"; "sortKey": "sortKeyChange"; "sortDir": "sortDirChange"; "columnFilters": "columnFiltersChange"; "hiddenKeys": "hiddenKeysChange"; "columnWidths": "columnWidthsChange"; "columnOrder": "columnOrderChange"; "pageSize": "pageSizeChange"; "page": "pageChange"; "rowClicked": "rowClicked"; "sortChange": "sortChange"; "rowActionSelected": "rowActionSelected"; "cellEdited": "cellEdited"; "expandedIds": "expandedIdsChange"; }, ["cellTemplateDirectives"], ["[empty]", "[bulk-actions]"], true, never>;
|
|
1033
1256
|
}
|
|
1034
1257
|
|
|
1035
1258
|
declare class PaginationComponent {
|
|
@@ -1160,8 +1383,10 @@ declare class DatePickerComponent extends DsControlValueAccessor<Date | RangeVal
|
|
|
1160
1383
|
readonly dateFormat: _angular_core.InputSignal<string | null>;
|
|
1161
1384
|
/** First weekday column: 0=Sunday … 6=Saturday. Default 1 (Monday). */
|
|
1162
1385
|
readonly firstDayOfWeek: _angular_core.InputSignal<number | null>;
|
|
1163
|
-
/**
|
|
1164
|
-
|
|
1386
|
+
/** Date the calendar opens on when the value is empty (e.g. a Date Of Birth):
|
|
1387
|
+
* the panel shows its month and grid focus lands on its exact day.
|
|
1388
|
+
* Never written to `value` — selection stays with the user. */
|
|
1389
|
+
readonly defaultDate: _angular_core.InputSignal<Date | null>;
|
|
1165
1390
|
/** Allow masked manual typing. When false the trigger is a button (calendar-only). */
|
|
1166
1391
|
readonly allowInput: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1167
1392
|
protected readonly isDisabled: _angular_core.Signal<boolean>;
|
|
@@ -1297,7 +1522,7 @@ declare class DatePickerComponent extends DsControlValueAccessor<Date | RangeVal
|
|
|
1297
1522
|
protected isPresetDisabled(preset: DatePickerPreset): boolean;
|
|
1298
1523
|
protected applyPreset(preset: DatePickerPreset): void;
|
|
1299
1524
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DatePickerComponent, never>;
|
|
1300
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DatePickerComponent, "ds-date-picker", never, { "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "hint": { "alias": "hint"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "optional": { "alias": "optional"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "minYear": { "alias": "minYear"; "required": false; "isSignal": true; }; "maxYear": { "alias": "maxYear"; "required": false; "isSignal": true; }; "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; "maxDate": { "alias": "maxDate"; "required": false; "isSignal": true; }; "disabledDate": { "alias": "disabledDate"; "required": false; "isSignal": true; }; "presets": { "alias": "presets"; "required": false; "isSignal": true; }; "locale": { "alias": "locale"; "required": false; "isSignal": true; }; "dateFormat": { "alias": "dateFormat"; "required": false; "isSignal": true; }; "firstDayOfWeek": { "alias": "firstDayOfWeek"; "required": false; "isSignal": true; }; "
|
|
1525
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DatePickerComponent, "ds-date-picker", never, { "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "hint": { "alias": "hint"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "optional": { "alias": "optional"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "minYear": { "alias": "minYear"; "required": false; "isSignal": true; }; "maxYear": { "alias": "maxYear"; "required": false; "isSignal": true; }; "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; "maxDate": { "alias": "maxDate"; "required": false; "isSignal": true; }; "disabledDate": { "alias": "disabledDate"; "required": false; "isSignal": true; }; "presets": { "alias": "presets"; "required": false; "isSignal": true; }; "locale": { "alias": "locale"; "required": false; "isSignal": true; }; "dateFormat": { "alias": "dateFormat"; "required": false; "isSignal": true; }; "firstDayOfWeek": { "alias": "firstDayOfWeek"; "required": false; "isSignal": true; }; "defaultDate": { "alias": "defaultDate"; "required": false; "isSignal": true; }; "allowInput": { "alias": "allowInput"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
1301
1526
|
}
|
|
1302
1527
|
|
|
1303
1528
|
type TimePickerMode = 'single' | 'range';
|
|
@@ -1430,6 +1655,7 @@ declare class TimePickerComponent extends DsControlValueAccessor<string | TimeRa
|
|
|
1430
1655
|
protected ariaLabelFor(segment: Segment): string;
|
|
1431
1656
|
protected formatFor(value: string | null): string;
|
|
1432
1657
|
protected open(segment: Segment): void;
|
|
1658
|
+
protected onTriggerClick(segment: Segment): void;
|
|
1433
1659
|
protected close(): void;
|
|
1434
1660
|
ngOnDestroy(): void;
|
|
1435
1661
|
protected onEscape(): void;
|
|
@@ -1488,6 +1714,22 @@ declare class BreadcrumbsService {
|
|
|
1488
1714
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<BreadcrumbsService>;
|
|
1489
1715
|
}
|
|
1490
1716
|
|
|
1717
|
+
/**
|
|
1718
|
+
* Marks projected wordmark markup for `ds-sidenav`: when present, the sidenav
|
|
1719
|
+
* renders the projected content inside `.brand-name` instead of the plain
|
|
1720
|
+
* `brand` text (two-tone wordmarks, inline logos etc. stay consumer-side).
|
|
1721
|
+
*
|
|
1722
|
+
* Interplay: projecting `[dsBrandName]` is enough to render the brand row and
|
|
1723
|
+
* its wordmark even without a string `brand`, but it only supplies the
|
|
1724
|
+
* wordmark — the letter-mark tile still comes from `logoLetter` (or the first
|
|
1725
|
+
* letter of `brand`), so an empty `brand` + projection renders the wordmark
|
|
1726
|
+
* with no tile.
|
|
1727
|
+
*/
|
|
1728
|
+
declare class BrandNameDirective {
|
|
1729
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BrandNameDirective, never>;
|
|
1730
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BrandNameDirective, "[dsBrandName]", never, {}, {}, never, never, true, never>;
|
|
1731
|
+
}
|
|
1732
|
+
|
|
1491
1733
|
/** Contract that ds-sidenav-item reads from its parent ds-sidenav. */
|
|
1492
1734
|
interface SidenavContract {
|
|
1493
1735
|
readonly collapsed: () => boolean;
|
|
@@ -1500,8 +1742,14 @@ declare class SidenavComponent implements SidenavContract {
|
|
|
1500
1742
|
/** Brand text at the top of the rail (auto letter-mark + name). For a custom
|
|
1501
1743
|
* logo image/SVG, project it into the `[brand]` slot instead. */
|
|
1502
1744
|
readonly brand: _angular_core.InputSignal<string>;
|
|
1745
|
+
/** Letter-mark glyph when it differs from the brand's first letter (e.g. an
|
|
1746
|
+
* "A" tile beside the "MyAdmin" wordmark). Empty = first letter of `brand`. */
|
|
1747
|
+
readonly logoLetter: _angular_core.InputSignal<string>;
|
|
1748
|
+
/** Projected `[dsBrandName]` wordmark markup, when the consumer provides one. */
|
|
1749
|
+
protected readonly brandNameRef: _angular_core.Signal<BrandNameDirective | undefined>;
|
|
1750
|
+
protected readonly hasBrandName: _angular_core.Signal<boolean>;
|
|
1503
1751
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SidenavComponent, never>;
|
|
1504
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SidenavComponent, "ds-sidenav", never, { "collapsed": { "alias": "collapsed"; "required": false; "isSignal": true; }; "brand": { "alias": "brand"; "required": false; "isSignal": true; }; }, {},
|
|
1752
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SidenavComponent, "ds-sidenav", never, { "collapsed": { "alias": "collapsed"; "required": false; "isSignal": true; }; "brand": { "alias": "brand"; "required": false; "isSignal": true; }; "logoLetter": { "alias": "logoLetter"; "required": false; "isSignal": true; }; }, {}, ["brandNameRef"], ["[brand]", "[dsBrandName]", "*"], true, never>;
|
|
1505
1753
|
}
|
|
1506
1754
|
|
|
1507
1755
|
declare class SidenavGroupComponent {
|
|
@@ -1553,6 +1801,88 @@ interface SidenavItemModel {
|
|
|
1553
1801
|
hasAlert?: boolean;
|
|
1554
1802
|
}
|
|
1555
1803
|
|
|
1804
|
+
/**
|
|
1805
|
+
* A notification rendered in the sidenav Alerts popover. The footer is
|
|
1806
|
+
* domain-agnostic: the layout derives its own alerts and feeds them in, and the
|
|
1807
|
+
* footer only knows how to render this shape.
|
|
1808
|
+
*/
|
|
1809
|
+
interface SidenavAlertItem {
|
|
1810
|
+
readonly id: string;
|
|
1811
|
+
readonly icon: IconName;
|
|
1812
|
+
/** Tone of the leading icon chip (reuses the DS status palette). */
|
|
1813
|
+
readonly variant: 'success' | 'warning' | 'error' | 'info';
|
|
1814
|
+
readonly title: string;
|
|
1815
|
+
readonly body: string;
|
|
1816
|
+
/** Relative/display timestamp, e.g. "Jul 23". */
|
|
1817
|
+
readonly at: string;
|
|
1818
|
+
/** Optional router path to navigate to when the alert is clicked. */
|
|
1819
|
+
readonly route?: string;
|
|
1820
|
+
}
|
|
1821
|
+
/**
|
|
1822
|
+
* A single global-search hit rendered in the sidenav Search popover. The footer
|
|
1823
|
+
* stays domain-agnostic: the layout supplies a {@link SidenavSearchProvider} that maps
|
|
1824
|
+
* a query string to these results, so the footer never needs to know about the
|
|
1825
|
+
* portal's sections or entities.
|
|
1826
|
+
*/
|
|
1827
|
+
interface SidenavSearchResult {
|
|
1828
|
+
readonly id: string;
|
|
1829
|
+
/** Primary line (entity/section name). */
|
|
1830
|
+
readonly label: string;
|
|
1831
|
+
/** Optional secondary line (reference, email, type…). */
|
|
1832
|
+
readonly sublabel?: string;
|
|
1833
|
+
readonly icon?: IconName;
|
|
1834
|
+
/** Group heading the hit is filed under, e.g. "Sections". */
|
|
1835
|
+
readonly group: string;
|
|
1836
|
+
/** Router path to navigate to on select. */
|
|
1837
|
+
readonly route: string;
|
|
1838
|
+
/** Optional query params — used to deep-open in-page detail views. */
|
|
1839
|
+
readonly queryParams?: Record<string, string>;
|
|
1840
|
+
}
|
|
1841
|
+
/** A query -> results function supplied by the layout to the shared footer. */
|
|
1842
|
+
type SidenavSearchProvider = (query: string) => readonly SidenavSearchResult[];
|
|
1843
|
+
|
|
1844
|
+
interface SearchGroup {
|
|
1845
|
+
group: string;
|
|
1846
|
+
items: SidenavSearchResult[];
|
|
1847
|
+
}
|
|
1848
|
+
/**
|
|
1849
|
+
* Bottom block of the app sidenav: quick actions (Search / Alerts / Collapse)
|
|
1850
|
+
* and the signed-in user with an account menu (popover). Pinned to the bottom
|
|
1851
|
+
* via `margin-top: auto`. Collapse is driven by the parent (emits
|
|
1852
|
+
* `collapseToggled`, reflects `collapsed`); sign-out is delegated to the parent
|
|
1853
|
+
* (emits `signOutSelected`) so the layout keeps a single logout path.
|
|
1854
|
+
*/
|
|
1855
|
+
declare class SidenavFooterComponent {
|
|
1856
|
+
private readonly router;
|
|
1857
|
+
readonly userName: _angular_core.InputSignal<string>;
|
|
1858
|
+
readonly userRole: _angular_core.InputSignal<string>;
|
|
1859
|
+
/** Show the unread dot on the Alerts row. */
|
|
1860
|
+
readonly alerts: _angular_core.InputSignal<boolean>;
|
|
1861
|
+
readonly collapsed: _angular_core.InputSignal<boolean>;
|
|
1862
|
+
/** When set, the Search row opens a live results popover; unset keeps it inert. */
|
|
1863
|
+
readonly searchProvider: _angular_core.InputSignal<SidenavSearchProvider | null>;
|
|
1864
|
+
/** When non-null (even empty) the Alerts row opens a list popover; null keeps it inert. */
|
|
1865
|
+
readonly alertItems: _angular_core.InputSignal<readonly SidenavAlertItem[] | null>;
|
|
1866
|
+
/** Route for the account menu's "Your profile"; empty = the item is a no-op. */
|
|
1867
|
+
readonly profileRoute: _angular_core.InputSignal<string>;
|
|
1868
|
+
readonly collapseToggled: _angular_core.OutputEmitterRef<void>;
|
|
1869
|
+
/** Emitted when the Alerts popover is opened, so the layout can mark-all-read. */
|
|
1870
|
+
readonly alertsOpened: _angular_core.OutputEmitterRef<void>;
|
|
1871
|
+
/** Emitted when "Sign out" is chosen; the layout owns the actual logout flow. */
|
|
1872
|
+
readonly signOutSelected: _angular_core.OutputEmitterRef<void>;
|
|
1873
|
+
protected readonly query: _angular_core.WritableSignal<string>;
|
|
1874
|
+
protected readonly initials: _angular_core.Signal<string>;
|
|
1875
|
+
/** Run the provider for the current query, grouped by `group` for display. */
|
|
1876
|
+
protected searchGroups(provider: SidenavSearchProvider): SearchGroup[];
|
|
1877
|
+
protected goResult(result: SidenavSearchResult): void;
|
|
1878
|
+
/** Activate the top result (Enter key). Returns whether a result was opened. */
|
|
1879
|
+
protected goFirst(provider: SidenavSearchProvider): boolean;
|
|
1880
|
+
protected goAlert(alert: SidenavAlertItem): void;
|
|
1881
|
+
protected goProfile(): void;
|
|
1882
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SidenavFooterComponent, never>;
|
|
1883
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SidenavFooterComponent, "ds-sidenav-footer", never, { "userName": { "alias": "userName"; "required": false; "isSignal": true; }; "userRole": { "alias": "userRole"; "required": false; "isSignal": true; }; "alerts": { "alias": "alerts"; "required": false; "isSignal": true; }; "collapsed": { "alias": "collapsed"; "required": false; "isSignal": true; }; "searchProvider": { "alias": "searchProvider"; "required": false; "isSignal": true; }; "alertItems": { "alias": "alertItems"; "required": false; "isSignal": true; }; "profileRoute": { "alias": "profileRoute"; "required": false; "isSignal": true; }; }, { "collapseToggled": "collapseToggled"; "alertsOpened": "alertsOpened"; "signOutSelected": "signOutSelected"; }, never, never, true, never>;
|
|
1884
|
+
}
|
|
1885
|
+
|
|
1556
1886
|
declare class TopBarComponent {
|
|
1557
1887
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TopBarComponent, never>;
|
|
1558
1888
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TopBarComponent, "ds-topbar", never, {}, {}, never, ["[title]", "[breadcrumbs]", "[search]", "[actions]"], true, never>;
|
|
@@ -1959,7 +2289,10 @@ declare class PopoverComponent implements OnDestroy, DsOverlayCloseRef {
|
|
|
1959
2289
|
private readonly host;
|
|
1960
2290
|
protected readonly preview: DsStaticPreview;
|
|
1961
2291
|
protected readonly panelTpl: _angular_core.Signal<TemplateRef<unknown> | undefined>;
|
|
2292
|
+
private readonly panelTrap;
|
|
1962
2293
|
private ref;
|
|
2294
|
+
private triggerElement;
|
|
2295
|
+
private focusTimer;
|
|
1963
2296
|
/** Public panel tokens forwarded onto the portaled overlay pane on open so
|
|
1964
2297
|
* a consumer's `ds-popover { --ds-popover-panel-*: … }` reaches it. */
|
|
1965
2298
|
private readonly panelTokens;
|
|
@@ -1970,9 +2303,10 @@ declare class PopoverComponent implements OnDestroy, DsOverlayCloseRef {
|
|
|
1970
2303
|
/** Render a small caret pointing at the trigger. */
|
|
1971
2304
|
readonly arrow: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1972
2305
|
/** ARIA role for the panel (e.g. 'dialog' for interactive popovers). When set,
|
|
1973
|
-
* the panel
|
|
1974
|
-
*
|
|
1975
|
-
*
|
|
2306
|
+
* the panel traps focus and captures it on open; a keyboard (Escape) or
|
|
2307
|
+
* in-panel close returns focus to the trigger, while an outside click or
|
|
2308
|
+
* scroll leaves focus where it lands (non-modal). Leave null for plain,
|
|
2309
|
+
* non-interactive text popovers. */
|
|
1976
2310
|
readonly panelRole: _angular_core.InputSignal<string | null>;
|
|
1977
2311
|
/** Accessible name for the panel; pair with `panelRole`. */
|
|
1978
2312
|
readonly panelLabel: _angular_core.InputSignal<string | null>;
|
|
@@ -2772,6 +3106,7 @@ declare class MultiSelectComponent extends DsControlValueAccessor<string[]> impl
|
|
|
2772
3106
|
protected onTriggerKeydown(event: KeyboardEvent): void;
|
|
2773
3107
|
protected onSearchKeydown(event: KeyboardEvent): void;
|
|
2774
3108
|
protected openPanel(): void;
|
|
3109
|
+
protected onTriggerClick(): void;
|
|
2775
3110
|
protected close(): void;
|
|
2776
3111
|
private moveActive;
|
|
2777
3112
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MultiSelectComponent, never>;
|
|
@@ -2961,5 +3296,22 @@ declare class SwitchComponent extends DsBooleanControlValueAccessor {
|
|
|
2961
3296
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SwitchComponent, "ds-switch", never, { "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "inputId": { "alias": "inputId"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "hint": { "alias": "hint"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; }, { "checked": "checkedChange"; }, never, never, true, never>;
|
|
2962
3297
|
}
|
|
2963
3298
|
|
|
2964
|
-
|
|
2965
|
-
|
|
3299
|
+
/**
|
|
3300
|
+
* Focuses the field's inner `input`/`textarea` when the click lands on the
|
|
3301
|
+
* frame chrome — padding, a leading/trailing icon, an addon slot — instead of
|
|
3302
|
+
* the control itself. Applied to a field's wrapper element.
|
|
3303
|
+
*
|
|
3304
|
+
* `preventDefault` on that mousedown stops focus from bouncing off the
|
|
3305
|
+
* non-focusable chrome; clicks that land on the control, or on a nested
|
|
3306
|
+
* button/link/other input, are left untouched so caret placement, toggles and
|
|
3307
|
+
* projected controls keep working.
|
|
3308
|
+
*/
|
|
3309
|
+
declare class FieldClickFocusDirective {
|
|
3310
|
+
private readonly host;
|
|
3311
|
+
protected onMousedown(event: MouseEvent): void;
|
|
3312
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FieldClickFocusDirective, never>;
|
|
3313
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<FieldClickFocusDirective, "[dsFieldClickFocus]", never, {}, {}, never, never, true, never>;
|
|
3314
|
+
}
|
|
3315
|
+
|
|
3316
|
+
export { ACCORDION, AccordionComponent, AccordionItemComponent, AlertComponent, AppShellComponent, AutocompleteComponent, AvatarComponent, AvatarGroupComponent, BadgeComponent, BannerComponent, BottomSheetComponent, BrandNameDirective, BreadcrumbsComponent, BreadcrumbsService, ButtonComponent, ButtonGroupComponent, CardComponent, CellTemplateDirective, CheckboxComponent, ColorPickerComponent, ContainerComponent, DS_CONFIG, DS_ICON_REGISTRY, DS_TOAST_CONFIG, DS_TOAST_POSITION, DS_TOAST_POSITION_DEFAULT, DatePickerComponent, DescriptionItemComponent, DescriptionListComponent, DividerComponent, DrawerComponent, DropzoneComponent, DsOverlayCloseRef, DsStaticPreview, EmptyStateComponent, FieldClickFocusDirective, ICONS, IconButtonComponent, IconComponent, InlineComponent, InputComponent, ListComponent, ListItemComponent, LoadingOverlayComponent, MenuComponent, MenuDividerComponent, MenuItemComponent, ModalCardComponent, ModalComponent, ModalService, MultiSelectComponent, NumberStepperComponent, OtpInputComponent, PageFooterComponent, PageHeaderComponent, PaginationComponent, PopoverComponent, ProgressComponent, RADIO_GROUP, RadioComponent, RadioGroupComponent, SIDENAV, SearchComponent, SegmentedComponent, SelectComponent, ShellScrollService, 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, isSelectOptionGroup, provideDsConfig, provideDsIcons, provideDsTheme };
|
|
3317
|
+
export type { AccordionContract, AccordionItemRef, AlertVariant, AutocompleteOption, AutocompleteOptionGroup, AutocompleteSize, AutocompleteWidth, AvatarSize, AvatarStatus, BannerVariant, BreadcrumbItem, ButtonColor, ButtonSize, ButtonType, ButtonVariant, CardElevation, CardPadding, CheckboxSize, ContainerSize, DatePickerMode, DatePickerPreset, DatePickerValue, DateValue, DescriptionListOrientation, DividerSpacing, DividerVariant, DrawerPlacement, DrawerSize, DropzoneFile, DropzoneFileState, DsConfig, DsIconRegistry, DsStatus, DsStatusKey, DsStatusRegistry, DsThemeOptions, DsToastConfig, DsToastHorizontalPosition, DsToastPosition, DsToastVerticalPosition, EmptyStateVariant, IconButtonSize, IconButtonType, IconButtonVariant, IconName, InputSize, InputType, LayoutAlign, LayoutGap, LayoutJustify, ModalConfirmOptions, ModalConfirmTone, ModalSize, MultiSelectOption, NumberStepperSize, OtpMode, PageFooterVariant, PopoverAlign, PopoverPlacement, ProgressVariant, RadioGroupChild, RadioGroupContract, RadioSize, RangeValue, SegmentedOption, SelectItem, SelectOption, SelectOptionGroup, SelectSize, SidenavAlertItem, SidenavContract, SidenavItemModel, SidenavSearchProvider, SidenavSearchResult, SortChangeEvent, SortDir, SpinnerSize, SplitButtonItem, SplitButtonVariant, StepperLabelPosition, StepperOrientation, SwitchSize, TableCellEditEvent, TableColumn, TableRowAction, TableRowActionEvent, TabsOrientation, TabsVariant, TagVariant, TextareaResize, TextareaSize, TimeFormat, TimePickerMode, TimePickerSize, TimePickerValue, TimeRangeValue, TimeValue, TimelineTone, ToastAction, ToastEntry, ToastOptions, ToastPromiseMessages, ToastRef, ToastVariant, TooltipPlacement, TreeNode };
|