@ids-group-ltd/ids-design-system 0.7.0 → 0.7.1
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 +288 -0
- package/fesm2022/ids-group-ltd-ids-design-system.mjs +613 -196
- package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
- package/migrations/0.5.1.json +46 -0
- package/migrations/0.6.3.json +11 -0
- package/migrations/0.7.0.json +11 -0
- package/migrations/0.7.1.json +145 -0
- package/migrations/AUTHORING.md +18 -0
- package/package.json +1 -1
- package/styles/_dropdown-overlay.scss +11 -2
- package/styles/_overlay-motion.scss +52 -11
- package/styles/_surface-motion.scss +50 -0
- package/styles/ds.scss +1 -0
- package/types/ids-group-ltd-ids-design-system.d.ts +248 -75
|
@@ -98,6 +98,13 @@ declare const ICONS: {
|
|
|
98
98
|
type IconName = keyof typeof ICONS | (string & {});
|
|
99
99
|
|
|
100
100
|
interface DsConfig {
|
|
101
|
+
field?: {
|
|
102
|
+
/** Default for every field's `reserveMessage` — keeps a message line's worth
|
|
103
|
+
* of space even when empty. Default `false`. Setting `true` here applies to
|
|
104
|
+
* EVERY field in the injector's subtree, which is rarely what a whole app
|
|
105
|
+
* wants; prefer `dsReserveMessages` on the individual form that validates. */
|
|
106
|
+
reserveMessage?: boolean;
|
|
107
|
+
};
|
|
101
108
|
breadcrumbs?: {
|
|
102
109
|
separator?: IconName;
|
|
103
110
|
clickable?: boolean;
|
|
@@ -116,13 +123,29 @@ interface DsConfig {
|
|
|
116
123
|
};
|
|
117
124
|
}
|
|
118
125
|
declare const DS_CONFIG: InjectionToken<DsConfig>;
|
|
119
|
-
/** Provide DS-level defaults
|
|
126
|
+
/** Provide DS-level defaults.
|
|
120
127
|
*
|
|
121
128
|
* providers: [provideDsConfig({ card: { padding: 'sm' } })]
|
|
122
129
|
*
|
|
123
|
-
*
|
|
130
|
+
* Works at the app root, on a `Route`, or on a component/directive — the
|
|
131
|
+
* config resolves through the element-injector chain, so a subtree can differ
|
|
132
|
+
* from the app. Component inputs (e.g. `<ds-card padding="lg">`) still win.
|
|
133
|
+
*
|
|
134
|
+
* A nested call MERGES with the config above it, section by section, so
|
|
135
|
+
* scoping one flag cannot silently drop unrelated app-level settings. Only the
|
|
136
|
+
* keys you name are replaced.
|
|
124
137
|
*/
|
|
125
138
|
declare function provideDsConfig(config: DsConfig): Provider;
|
|
139
|
+
/**
|
|
140
|
+
* The factory body behind `provideDsConfig`, exported so a directive can put the
|
|
141
|
+
* provider in its metadata as a plain object literal. Calling `provideDsConfig`
|
|
142
|
+
* there instead would run at module-evaluation time, which makes the module
|
|
143
|
+
* side-effectful and costs the consumer its tree-shaking (measured: the whole
|
|
144
|
+
* library moved into ds-docs' eager chunk, +566 kB).
|
|
145
|
+
*
|
|
146
|
+
* Must be called from an injection context.
|
|
147
|
+
*/
|
|
148
|
+
declare function inheritDsConfig(config: DsConfig): DsConfig;
|
|
126
149
|
|
|
127
150
|
interface DsThemeOptions {
|
|
128
151
|
/**
|
|
@@ -252,6 +275,36 @@ declare const DS_ICON_REGISTRY: InjectionToken<Readonly<Record<string, string>>>
|
|
|
252
275
|
*/
|
|
253
276
|
declare function provideDsIcons(icons: DsIconRegistry): Provider;
|
|
254
277
|
|
|
278
|
+
/**
|
|
279
|
+
* Turns on `reserveMessage` for every DS field declared inside the host
|
|
280
|
+
* element, so a validated form holds its message rows without repeating the
|
|
281
|
+
* input on each control:
|
|
282
|
+
*
|
|
283
|
+
* ```html
|
|
284
|
+
* <form dsReserveMessages>
|
|
285
|
+
* <ds-input label="Email" />
|
|
286
|
+
* <ds-input label="Password" />
|
|
287
|
+
* </form>
|
|
288
|
+
* ```
|
|
289
|
+
*
|
|
290
|
+
* It provides `DS_CONFIG`, which merges with the config above it — scoping this
|
|
291
|
+
* one flag cannot drop unrelated app-level settings. A field's own
|
|
292
|
+
* `[reserveMessage]` still wins, so a single control can opt back out.
|
|
293
|
+
*
|
|
294
|
+
* The switch is the directive's PRESENCE, not an input: providers are resolved
|
|
295
|
+
* at construction, before inputs are set, so a bound value could not drive
|
|
296
|
+
* them. To turn it off for a subtree, provide the config directly:
|
|
297
|
+
* `provideDsConfig({ field: { reserveMessage: false } })`.
|
|
298
|
+
*
|
|
299
|
+
* Applies to fields DECLARED inside the host — projected content keeps the
|
|
300
|
+
* injector of the template it was written in, so wrapping `<ng-content>` in
|
|
301
|
+
* this directive does not reach the projected fields.
|
|
302
|
+
*/
|
|
303
|
+
declare class ReserveMessagesDirective {
|
|
304
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ReserveMessagesDirective, never>;
|
|
305
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ReserveMessagesDirective, "[dsReserveMessages]", never, {}, {}, never, never, true, never>;
|
|
306
|
+
}
|
|
307
|
+
|
|
255
308
|
type ButtonColor = 'primary' | 'secondary' | 'tertiary' | 'neutral' | 'error' | 'success' | 'warning';
|
|
256
309
|
type ButtonVariant = 'solid' | 'tonal' | 'ghost' | 'outline' | 'text';
|
|
257
310
|
type ButtonType = 'button' | 'submit' | 'reset';
|
|
@@ -398,11 +451,18 @@ declare class StatusDotComponent {
|
|
|
398
451
|
* ```
|
|
399
452
|
*
|
|
400
453
|
* The layout renders the `<main>` landmark itself — do not nest another
|
|
401
|
-
* `<main>` in the content. Scroll-to-top
|
|
402
|
-
*
|
|
403
|
-
*
|
|
404
|
-
*
|
|
405
|
-
*
|
|
454
|
+
* `<main>` in the content. Scroll-to-top is built in (`LayoutScrollService`)
|
|
455
|
+
* and fires when navigation changes the PATH, so a URL-driven list can page
|
|
456
|
+
* and filter without losing the reader's place; inject the service and call
|
|
457
|
+
* `scrollToTop()` for the changes that do want the top. The content padding
|
|
458
|
+
* auto-compensates the native scrollbar width so the right inset always
|
|
459
|
+
* equals the left one. The layout requires the application router
|
|
460
|
+
* (`provideRouter`) because its scroll-to-top service subscribes to
|
|
461
|
+
* navigation events.
|
|
462
|
+
*
|
|
463
|
+
* Below the `lg` breakpoint the rail becomes a modal overlay driven by
|
|
464
|
+
* `[(railOpen)]`; put the burger wherever the design wants it inside your own
|
|
465
|
+
* projected topbar.
|
|
406
466
|
*/
|
|
407
467
|
declare class AppLayoutComponent {
|
|
408
468
|
/**
|
|
@@ -411,25 +471,43 @@ declare class AppLayoutComponent {
|
|
|
411
471
|
* topbar spans the full width and the rail + content sit below it.
|
|
412
472
|
*/
|
|
413
473
|
readonly topbarSpan: _angular_core.InputSignal<"content" | "full">;
|
|
474
|
+
/**
|
|
475
|
+
* Whether the rail is open as an overlay. Only meaningful below the `lg`
|
|
476
|
+
* breakpoint — above it the rail is always in the layout and this is
|
|
477
|
+
* ignored. Two-way, so a burger in your topbar can drive it.
|
|
478
|
+
*/
|
|
479
|
+
readonly railOpen: _angular_core.ModelSignal<boolean>;
|
|
480
|
+
/** Accessible name for the rail while it is a modal overlay. */
|
|
481
|
+
readonly railLabel: _angular_core.InputSignal<string>;
|
|
482
|
+
/**
|
|
483
|
+
* True only while the rail is an overlay. Gates the dialog semantics: above
|
|
484
|
+
* the breakpoint the rail is an ordinary region, and a permanent
|
|
485
|
+
* `role="dialog"` there would lie to a screen reader.
|
|
486
|
+
*/
|
|
487
|
+
protected readonly compact: _angular_core.WritableSignal<boolean>;
|
|
414
488
|
private readonly layoutScroll;
|
|
489
|
+
private readonly navigation;
|
|
490
|
+
private readonly destroyRef;
|
|
415
491
|
private readonly content;
|
|
416
492
|
constructor();
|
|
493
|
+
protected closeRail(): void;
|
|
494
|
+
private watchDesktopBreakpoint;
|
|
417
495
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AppLayoutComponent, never>;
|
|
418
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AppLayoutComponent, "ds-app-layout", never, { "topbarSpan": { "alias": "topbarSpan"; "required": false; "isSignal": true; }; }, {}, never, ["[sidenav]", "[topbar]", "*"], true, never>;
|
|
496
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AppLayoutComponent, "ds-app-layout", never, { "topbarSpan": { "alias": "topbarSpan"; "required": false; "isSignal": true; }; "railOpen": { "alias": "railOpen"; "required": false; "isSignal": true; }; "railLabel": { "alias": "railLabel"; "required": false; "isSignal": true; }; }, { "railOpen": "railOpenChange"; }, never, ["[sidenav]", "[topbar]", "*"], true, never>;
|
|
419
497
|
}
|
|
420
498
|
|
|
421
499
|
/**
|
|
422
500
|
* Owns the layout's content scroller. In the fixed-frame layout the window
|
|
423
501
|
* never scrolls, so the router's built-in window-based scrolling no-ops —
|
|
424
|
-
* this service resets the registered container to the top
|
|
425
|
-
*
|
|
426
|
-
* `inject(LayoutScrollService)` and call `scrollToTop()` manually
|
|
427
|
-
* pages
|
|
428
|
-
* a documented growth point — add it here if a page
|
|
429
|
-
* back-navigation scroll memory.
|
|
502
|
+
* this service resets the registered container to the top when navigation
|
|
503
|
+
* lands on a different PATH instead. Provided by `ds-app-layout`, so routed
|
|
504
|
+
* pages can `inject(LayoutScrollService)` and call `scrollToTop()` manually
|
|
505
|
+
* (e.g. list pages that DO want the top after a filter change). Per-route
|
|
506
|
+
* scroll restoration is a documented growth point — add it here if a page
|
|
507
|
+
* ever needs back-navigation scroll memory.
|
|
430
508
|
*/
|
|
431
509
|
declare class LayoutScrollService {
|
|
432
|
-
private readonly
|
|
510
|
+
private readonly navigation;
|
|
433
511
|
private readonly destroyRef;
|
|
434
512
|
private scrollContainer;
|
|
435
513
|
constructor();
|
|
@@ -683,6 +761,7 @@ type FieldMessageState = 'default' | 'error' | 'success';
|
|
|
683
761
|
type InputType = 'text' | 'email' | 'password' | 'number' | 'tel' | 'url' | 'search';
|
|
684
762
|
|
|
685
763
|
declare class InputComponent extends DsControlValueAccessor<string> {
|
|
764
|
+
private readonly control;
|
|
686
765
|
/** Text value, two-way bound. */
|
|
687
766
|
readonly value: _angular_core.ModelSignal<string>;
|
|
688
767
|
/** Native input type — also affects the default clear button and password toggle. */
|
|
@@ -694,9 +773,11 @@ declare class InputComponent extends DsControlValueAccessor<string> {
|
|
|
694
773
|
/** Helper text shown below the field. */
|
|
695
774
|
readonly hint: _angular_core.InputSignal<string>;
|
|
696
775
|
/** Reserve the message-row height even when empty, so the field doesn't shift
|
|
697
|
-
* the layout below it when a hint/error appears.
|
|
698
|
-
*
|
|
699
|
-
|
|
776
|
+
* the layout below it when a hint/error appears. Falls back to
|
|
777
|
+
* `DS_CONFIG.field.reserveMessage`, then off — opt in per field, or app-wide
|
|
778
|
+
* for a form that shows validation messages. */
|
|
779
|
+
readonly reserveMessage: _angular_core.InputSignalWithTransform<boolean | null, unknown>;
|
|
780
|
+
protected readonly reserveMessageResolved: _angular_core.Signal<boolean>;
|
|
700
781
|
/** Placeholder shown when empty. */
|
|
701
782
|
readonly placeholder: _angular_core.InputSignal<string>;
|
|
702
783
|
/** Disables the field and blocks all interaction. */
|
|
@@ -767,6 +848,9 @@ declare class InputComponent extends DsControlValueAccessor<string> {
|
|
|
767
848
|
protected readonly effectiveType: _angular_core.Signal<InputType>;
|
|
768
849
|
protected togglePassword(): void;
|
|
769
850
|
protected readonly wrapperClasses: _angular_core.Signal<string>;
|
|
851
|
+
/** Move keyboard focus to the native input — public so a host can drive it
|
|
852
|
+
* deliberately, e.g. focusing the first invalid field on a failed submit. */
|
|
853
|
+
focus(options?: FocusOptions): void;
|
|
770
854
|
protected clear(): void;
|
|
771
855
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<InputComponent, never>;
|
|
772
856
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<InputComponent, "ds-input", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "hint": { "alias": "hint"; "required": false; "isSignal": true; }; "reserveMessage": { "alias": "reserveMessage"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "readOnly": { "alias": "readOnly"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "success": { "alias": "success"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "floating": { "alias": "floating"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "optional": { "alias": "optional"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "autocomplete": { "alias": "autocomplete"; "required": false; "isSignal": true; }; "autofocus": { "alias": "autofocus"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "maxLength": { "alias": "maxLength"; "required": false; "isSignal": true; }; "enterKeyHint": { "alias": "enterKeyHint"; "required": false; "isSignal": true; }; "inputMode": { "alias": "inputMode"; "required": false; "isSignal": true; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; "passwordToggle": { "alias": "passwordToggle"; "required": false; "isSignal": true; }; "passwordVisible": { "alias": "passwordVisible"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "blurred": "blurred"; "passwordVisible": "passwordVisibleChange"; }, never, ["[dsInputPrefix]", "[dsInputSuffix]"], true, never>;
|
|
@@ -800,6 +884,7 @@ declare class NumberStepperComponent {
|
|
|
800
884
|
type TextareaResize = 'none' | 'vertical' | 'horizontal' | 'both';
|
|
801
885
|
|
|
802
886
|
declare class TextareaComponent extends DsControlValueAccessor<string> {
|
|
887
|
+
private readonly control;
|
|
803
888
|
/** Text value, two-way bound. */
|
|
804
889
|
readonly value: _angular_core.ModelSignal<string>;
|
|
805
890
|
/** Field height — sm/md/lg. */
|
|
@@ -809,9 +894,11 @@ declare class TextareaComponent extends DsControlValueAccessor<string> {
|
|
|
809
894
|
/** Helper text shown below the field. */
|
|
810
895
|
readonly hint: _angular_core.InputSignal<string>;
|
|
811
896
|
/** Reserve the message-row height even when empty, so the field doesn't shift
|
|
812
|
-
* the layout below it when a hint/error appears.
|
|
813
|
-
*
|
|
814
|
-
|
|
897
|
+
* the layout below it when a hint/error appears. Falls back to
|
|
898
|
+
* `DS_CONFIG.field.reserveMessage`, then off — opt in per field, or app-wide
|
|
899
|
+
* for a form that shows validation messages. */
|
|
900
|
+
readonly reserveMessage: _angular_core.InputSignalWithTransform<boolean | null, unknown>;
|
|
901
|
+
protected readonly reserveMessageResolved: _angular_core.Signal<boolean>;
|
|
815
902
|
/** Placeholder shown when empty. */
|
|
816
903
|
readonly placeholder: _angular_core.InputSignal<string>;
|
|
817
904
|
/** Disables the field and blocks all interaction. */
|
|
@@ -853,6 +940,9 @@ declare class TextareaComponent extends DsControlValueAccessor<string> {
|
|
|
853
940
|
protected readonly autosizeMinHeight: _angular_core.Signal<string | null>;
|
|
854
941
|
protected readonly autosizeMaxHeight: _angular_core.Signal<string | null>;
|
|
855
942
|
protected readonly effectiveResize: _angular_core.Signal<TextareaResize>;
|
|
943
|
+
/** Move keyboard focus to the native textarea — public so a host can drive it
|
|
944
|
+
* deliberately, e.g. focusing the first invalid field on a failed submit. */
|
|
945
|
+
focus(options?: FocusOptions): void;
|
|
856
946
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TextareaComponent, never>;
|
|
857
947
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TextareaComponent, "ds-textarea", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "hint": { "alias": "hint"; "required": false; "isSignal": true; }; "reserveMessage": { "alias": "reserveMessage"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "readOnly": { "alias": "readOnly"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "optional": { "alias": "optional"; "required": false; "isSignal": true; }; "rows": { "alias": "rows"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "autosize": { "alias": "autosize"; "required": false; "isSignal": true; }; "minRows": { "alias": "minRows"; "required": false; "isSignal": true; }; "maxRows": { "alias": "maxRows"; "required": false; "isSignal": true; }; "resize": { "alias": "resize"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "maxLength": { "alias": "maxLength"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
858
948
|
}
|
|
@@ -876,6 +966,10 @@ declare class SearchComponent {
|
|
|
876
966
|
/** Fires with the current value on Enter. */
|
|
877
967
|
readonly submitted: _angular_core.OutputEmitterRef<string>;
|
|
878
968
|
private readonly inputEl;
|
|
969
|
+
/** Move keyboard focus to the search input. Public so a host can hand focus
|
|
970
|
+
* over deliberately — e.g. a Clear button that disables itself on activation
|
|
971
|
+
* would otherwise blur into `<body>` and restart Tab order at the top. */
|
|
972
|
+
focus(options?: FocusOptions): void;
|
|
879
973
|
protected onSubmit(): void;
|
|
880
974
|
protected clear(): void;
|
|
881
975
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SearchComponent, never>;
|
|
@@ -929,9 +1023,11 @@ declare class SelectComponent extends DsControlValueAccessor<string> implements
|
|
|
929
1023
|
/** Helper text shown below the trigger. */
|
|
930
1024
|
readonly hint: _angular_core.InputSignal<string>;
|
|
931
1025
|
/** Reserve the message-row height even when empty, so the field doesn't shift
|
|
932
|
-
* the layout below it when a hint/error appears.
|
|
933
|
-
*
|
|
934
|
-
|
|
1026
|
+
* the layout below it when a hint/error appears. Falls back to
|
|
1027
|
+
* `DS_CONFIG.field.reserveMessage`, then off — opt in per field, or app-wide
|
|
1028
|
+
* for a form that shows validation messages. */
|
|
1029
|
+
readonly reserveMessage: _angular_core.InputSignalWithTransform<boolean | null, unknown>;
|
|
1030
|
+
protected readonly reserveMessageResolved: _angular_core.Signal<boolean>;
|
|
935
1031
|
/** Marks the field required — shows an asterisk and sets `aria-required`. */
|
|
936
1032
|
readonly required: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
937
1033
|
/** Shows an "(optional)" marker next to the label (ignored when `required`). */
|
|
@@ -1033,6 +1129,14 @@ interface TableColumn<T = unknown> {
|
|
|
1033
1129
|
width?: number;
|
|
1034
1130
|
align?: 'left' | 'right' | 'center';
|
|
1035
1131
|
cell?: (row: T) => string;
|
|
1132
|
+
/** Sort this column by a DOMAIN value instead of the rendered text. Without
|
|
1133
|
+
* it, `clientSort` compares what the cell displays, so `$1.2M / $840K / $95K`
|
|
1134
|
+
* sorts by the leading character and `Oct 09, 2023 / Feb 27, 2024` sorts by
|
|
1135
|
+
* month NAME — the table looks sorted and is not. Return the underlying
|
|
1136
|
+
* number, `Date` or plain string; `null`/`undefined`/`''` counts as blank and
|
|
1137
|
+
* sorts last in BOTH directions. Only affects sorting — the header filter
|
|
1138
|
+
* still lists what the user can see. */
|
|
1139
|
+
sortValue?: (row: T) => string | number | Date | null | undefined;
|
|
1036
1140
|
/** Double-click the cell to edit it inline; the committed value is emitted
|
|
1037
1141
|
* via the table's `cellEdited` output (the consumer owns the data update). */
|
|
1038
1142
|
editable?: boolean;
|
|
@@ -1069,11 +1173,14 @@ interface TableCellEditEvent<T = unknown> {
|
|
|
1069
1173
|
value: string;
|
|
1070
1174
|
}
|
|
1071
1175
|
|
|
1072
|
-
declare class TableComponent<T extends {
|
|
1073
|
-
id: string;
|
|
1074
|
-
}> {
|
|
1176
|
+
declare class TableComponent<T extends object> {
|
|
1075
1177
|
/** Rows to render. */
|
|
1076
1178
|
readonly data: _angular_core.InputSignal<readonly T[]>;
|
|
1179
|
+
/** Row identity used for tracking, selection, expansion and the active-row
|
|
1180
|
+
* highlight. Defaults to `row.id`; pass an accessor for display-only data
|
|
1181
|
+
* with no natural key (`[rowId]="row => row.channel + row.sentAt"`), which
|
|
1182
|
+
* beats mapping synthetic ids into the data just to satisfy the table. */
|
|
1183
|
+
readonly rowId: _angular_core.InputSignal<((row: T) => string) | null>;
|
|
1077
1184
|
/** Column definitions driving headers, cells and sorting. */
|
|
1078
1185
|
readonly columns: _angular_core.InputSignal<readonly TableColumn<T>[]>;
|
|
1079
1186
|
/** Adds a checkbox column for row/select-all selection. */
|
|
@@ -1182,10 +1289,10 @@ declare class TableComponent<T extends {
|
|
|
1182
1289
|
/** Fires when an `editable` cell is committed (Enter or blur) with the new value. */
|
|
1183
1290
|
readonly cellEdited: _angular_core.OutputEmitterRef<TableCellEditEvent<T>>;
|
|
1184
1291
|
/** Cell templates supplied as an explicit map instead of (or in addition to)
|
|
1185
|
-
* projected `dsCellTemplate` directives. Lets a wrapper component
|
|
1186
|
-
*
|
|
1187
|
-
*
|
|
1188
|
-
*
|
|
1292
|
+
* projected `dsCellTemplate` directives. Lets a wrapper component collect
|
|
1293
|
+
* the directives itself and pass them down, since content projected through
|
|
1294
|
+
* a wrapper's `<ng-content>` is not seen by this component's content query.
|
|
1295
|
+
* Entries here override projected ones. */
|
|
1189
1296
|
readonly cellTemplateMap: _angular_core.InputSignal<Record<string, TemplateRef<{
|
|
1190
1297
|
$implicit: unknown;
|
|
1191
1298
|
row: unknown;
|
|
@@ -1321,6 +1428,9 @@ declare class TableComponent<T extends {
|
|
|
1321
1428
|
/** Accessible name for an interactive row, taken from the first visible column. */
|
|
1322
1429
|
protected rowAriaLabel(row: T): string;
|
|
1323
1430
|
/** `aria-sort` value for a header: only meaningful on sortable columns. */
|
|
1431
|
+
/** Row identity — the `rowId` accessor when given, else `row.id`. Public so a
|
|
1432
|
+
* host reading `selectedIds`/`expandedIds` can compute the same keys. */
|
|
1433
|
+
rowKey(row: T): string;
|
|
1324
1434
|
protected ariaSort(col: TableColumn<T>): 'ascending' | 'descending' | 'none' | null;
|
|
1325
1435
|
protected onSort(col: TableColumn<T>): void;
|
|
1326
1436
|
protected headerClasses(col: TableColumn<T>): string;
|
|
@@ -1334,7 +1444,7 @@ declare class TableComponent<T extends {
|
|
|
1334
1444
|
* across re-renders. Mixes column key + row index into one of five widths. */
|
|
1335
1445
|
protected skeletonWidth(col: TableColumn<T>, rowIndex: number): string;
|
|
1336
1446
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableComponent<any>, never>;
|
|
1337
|
-
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; }; "animateHeight": { "alias": "animateHeight"; "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; }; "sortingOrder": { "alias": "sortingOrder"; "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; }; "total": { "alias": "total"; "required": false; "isSignal": true; }; "scrollToTopOnPageChange": { "alias": "scrollToTopOnPageChange"; "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>;
|
|
1447
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TableComponent<any>, "ds-table", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "rowId": { "alias": "rowId"; "required": false; "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; }; "animateHeight": { "alias": "animateHeight"; "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; }; "sortingOrder": { "alias": "sortingOrder"; "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; }; "total": { "alias": "total"; "required": false; "isSignal": true; }; "scrollToTopOnPageChange": { "alias": "scrollToTopOnPageChange"; "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>;
|
|
1338
1448
|
}
|
|
1339
1449
|
|
|
1340
1450
|
declare class PaginationComponent {
|
|
@@ -1349,6 +1459,9 @@ declare class PaginationComponent {
|
|
|
1349
1459
|
readonly pageSizeOptions: _angular_core.InputSignal<number[]>;
|
|
1350
1460
|
/** Shows the "Showing X–Y of Z" range label. */
|
|
1351
1461
|
readonly showLabel: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1462
|
+
/** Shows the rows-per-page dropdown. Turn it off for a screen with a fixed
|
|
1463
|
+
* page size — otherwise the control offers a choice the host won't honour. */
|
|
1464
|
+
readonly showPageSize: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1352
1465
|
protected readonly totalPages: _angular_core.Signal<number>;
|
|
1353
1466
|
protected readonly pageItems: _angular_core.Signal<(number | "ellipsis")[]>;
|
|
1354
1467
|
protected readonly rangeLabel: _angular_core.Signal<string>;
|
|
@@ -1360,7 +1473,7 @@ declare class PaginationComponent {
|
|
|
1360
1473
|
protected goTo(page: number): void;
|
|
1361
1474
|
protected onSizeChange(value: string): void;
|
|
1362
1475
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PaginationComponent, never>;
|
|
1363
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PaginationComponent, "ds-pagination", never, { "total": { "alias": "total"; "required": true; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "currentPage": { "alias": "currentPage"; "required": false; "isSignal": true; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; "isSignal": true; }; "showLabel": { "alias": "showLabel"; "required": false; "isSignal": true; }; }, { "pageSize": "pageSizeChange"; "currentPage": "currentPageChange"; }, never, never, true, never>;
|
|
1476
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PaginationComponent, "ds-pagination", never, { "total": { "alias": "total"; "required": true; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "currentPage": { "alias": "currentPage"; "required": false; "isSignal": true; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; "isSignal": true; }; "showLabel": { "alias": "showLabel"; "required": false; "isSignal": true; }; "showPageSize": { "alias": "showPageSize"; "required": false; "isSignal": true; }; }, { "pageSize": "pageSizeChange"; "currentPage": "currentPageChange"; }, never, never, true, never>;
|
|
1364
1477
|
}
|
|
1365
1478
|
|
|
1366
1479
|
interface DateFormatSpec {
|
|
@@ -1425,6 +1538,9 @@ declare class DatePickerComponent extends DsControlValueAccessor<Date | RangeVal
|
|
|
1425
1538
|
readonly mode: _angular_core.InputSignal<DatePickerMode>;
|
|
1426
1539
|
/** Trigger height — sm/md/lg. */
|
|
1427
1540
|
readonly size: _angular_core.InputSignal<DsSize>;
|
|
1541
|
+
/** Stretch the trigger to fill its container instead of hugging the mask
|
|
1542
|
+
* width — opt in when the field shares a grid/flex track with inputs. */
|
|
1543
|
+
readonly fullWidth: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1428
1544
|
/** Selected date (single) or `[start, end]` (range), two-way bound. */
|
|
1429
1545
|
readonly value: _angular_core.ModelSignal<Date | RangeValue | null>;
|
|
1430
1546
|
/** Accessible-name fallback only — the mask fills the visible placeholder, not this. */
|
|
@@ -1434,9 +1550,11 @@ declare class DatePickerComponent extends DsControlValueAccessor<Date | RangeVal
|
|
|
1434
1550
|
/** Helper text shown below the field. */
|
|
1435
1551
|
readonly hint: _angular_core.InputSignal<string>;
|
|
1436
1552
|
/** Reserve the message-row height even when empty, so the field doesn't shift
|
|
1437
|
-
* the layout below it when a hint/error appears.
|
|
1438
|
-
*
|
|
1439
|
-
|
|
1553
|
+
* the layout below it when a hint/error appears. Falls back to
|
|
1554
|
+
* `DS_CONFIG.field.reserveMessage`, then off — opt in per field, or app-wide
|
|
1555
|
+
* for a form that shows validation messages. */
|
|
1556
|
+
readonly reserveMessage: _angular_core.InputSignalWithTransform<boolean | null, unknown>;
|
|
1557
|
+
protected readonly reserveMessageResolved: _angular_core.Signal<boolean>;
|
|
1440
1558
|
/** Marks the field required — shows an asterisk and sets `aria-required`. */
|
|
1441
1559
|
readonly required: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1442
1560
|
/** Shows an "(optional)" marker beside the label — ignored when `required` is set. */
|
|
@@ -1604,7 +1722,7 @@ declare class DatePickerComponent extends DsControlValueAccessor<Date | RangeVal
|
|
|
1604
1722
|
protected isPresetDisabled(preset: DatePickerPreset): boolean;
|
|
1605
1723
|
protected applyPreset(preset: DatePickerPreset): void;
|
|
1606
1724
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DatePickerComponent, never>;
|
|
1607
|
-
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; }; "reserveMessage": { "alias": "reserveMessage"; "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>;
|
|
1725
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DatePickerComponent, "ds-date-picker", never, { "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "fullWidth": { "alias": "fullWidth"; "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; }; "reserveMessage": { "alias": "reserveMessage"; "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>;
|
|
1608
1726
|
}
|
|
1609
1727
|
|
|
1610
1728
|
type TimePickerMode = 'single' | 'range';
|
|
@@ -1697,6 +1815,16 @@ declare class TimePickerComponent extends DsControlValueAccessor<string | TimeRa
|
|
|
1697
1815
|
readonly disabledTime: _angular_core.InputSignal<((time: string) => boolean) | null>;
|
|
1698
1816
|
/** Trigger height — sm/md/lg. */
|
|
1699
1817
|
readonly size: _angular_core.InputSignal<DsSize>;
|
|
1818
|
+
/** Stretch the trigger to fill its container instead of hugging its content —
|
|
1819
|
+
* opt in when the field shares a grid/flex track with inputs. */
|
|
1820
|
+
readonly fullWidth: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1821
|
+
/** Field label shown above the trigger — same row a `ds-date-picker` label
|
|
1822
|
+
* occupies, so date + time in one form row line up without a hand-rolled label. */
|
|
1823
|
+
readonly label: _angular_core.InputSignal<string>;
|
|
1824
|
+
/** Marks the field required — shows an asterisk and sets `aria-required`. */
|
|
1825
|
+
readonly required: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1826
|
+
/** Shows an "(optional)" marker beside the label — ignored when `required` is set. */
|
|
1827
|
+
readonly optional: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1700
1828
|
/** Disables the picker and blocks all interaction. */
|
|
1701
1829
|
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1702
1830
|
/** Applies error styling and marks the trigger `aria-invalid`. */
|
|
@@ -1704,9 +1832,11 @@ declare class TimePickerComponent extends DsControlValueAccessor<string | TimeRa
|
|
|
1704
1832
|
/** Helper text shown below the picker. */
|
|
1705
1833
|
readonly hint: _angular_core.InputSignal<string>;
|
|
1706
1834
|
/** Reserve the message-row height even when empty, so the field doesn't shift
|
|
1707
|
-
* the layout below it when a hint/error appears.
|
|
1708
|
-
*
|
|
1709
|
-
|
|
1835
|
+
* the layout below it when a hint/error appears. Falls back to
|
|
1836
|
+
* `DS_CONFIG.field.reserveMessage`, then off — opt in per field, or app-wide
|
|
1837
|
+
* for a form that shows validation messages. */
|
|
1838
|
+
readonly reserveMessage: _angular_core.InputSignalWithTransform<boolean | null, unknown>;
|
|
1839
|
+
protected readonly reserveMessageResolved: _angular_core.Signal<boolean>;
|
|
1710
1840
|
/** Shown in the trigger when no time is set. */
|
|
1711
1841
|
readonly placeholder: _angular_core.InputSignal<string>;
|
|
1712
1842
|
/** Shows an inline clear button when a value is set — single mode only. */
|
|
@@ -1716,6 +1846,7 @@ declare class TimePickerComponent extends DsControlValueAccessor<string | TimeRa
|
|
|
1716
1846
|
/** Override the DS-config format for this instance. */
|
|
1717
1847
|
readonly format: _angular_core.InputSignal<TimeFormat | null>;
|
|
1718
1848
|
protected readonly uid: string;
|
|
1849
|
+
protected readonly labelId: string;
|
|
1719
1850
|
protected readonly openSegment: _angular_core.WritableSignal<Segment | null>;
|
|
1720
1851
|
private overlayRef;
|
|
1721
1852
|
protected readonly singleTrigger: _angular_core.Signal<ElementRef<HTMLButtonElement> | undefined>;
|
|
@@ -1751,7 +1882,7 @@ declare class TimePickerComponent extends DsControlValueAccessor<string | TimeRa
|
|
|
1751
1882
|
private minutesOf;
|
|
1752
1883
|
private laterOf;
|
|
1753
1884
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TimePickerComponent, never>;
|
|
1754
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TimePickerComponent, "ds-time-picker", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "minuteStep": { "alias": "minuteStep"; "required": false; "isSignal": true; }; "minTime": { "alias": "minTime"; "required": false; "isSignal": true; }; "maxTime": { "alias": "maxTime"; "required": false; "isSignal": true; }; "disabledTime": { "alias": "disabledTime"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "hint": { "alias": "hint"; "required": false; "isSignal": true; }; "reserveMessage": { "alias": "reserveMessage"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "format": { "alias": "format"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
1885
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TimePickerComponent, "ds-time-picker", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "minuteStep": { "alias": "minuteStep"; "required": false; "isSignal": true; }; "minTime": { "alias": "minTime"; "required": false; "isSignal": true; }; "maxTime": { "alias": "maxTime"; "required": false; "isSignal": true; }; "disabledTime": { "alias": "disabledTime"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "fullWidth": { "alias": "fullWidth"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "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; }; "hint": { "alias": "hint"; "required": false; "isSignal": true; }; "reserveMessage": { "alias": "reserveMessage"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "format": { "alias": "format"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
1755
1886
|
}
|
|
1756
1887
|
|
|
1757
1888
|
interface BreadcrumbItem {
|
|
@@ -2035,7 +2166,7 @@ declare class ModalComponent implements OnDestroy {
|
|
|
2035
2166
|
protected onBackdrop(event: MouseEvent): void;
|
|
2036
2167
|
protected onEscape(): void;
|
|
2037
2168
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ModalComponent, never>;
|
|
2038
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ModalComponent, "ds-modal", never, { "open": { "alias": "open"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "error": { "alias": "error"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": true; "isSignal": true; }; "closeOnBackdrop": { "alias": "closeOnBackdrop"; "required": false; "isSignal": true; }; "persistent": { "alias": "persistent"; "required": false; "isSignal": true; }; }, { "open": "openChange"; "closed": "closed"; "confirmed": "confirmed"; }, never, ["[body]", "[impact]", "[actions]"], true, [{ directive: typeof DsStaticPreview; inputs: { "staticPreview": "staticPreview"; }; outputs: {}; }]>;
|
|
2169
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ModalComponent, "ds-modal", never, { "open": { "alias": "open"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "error": { "alias": "error"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": true; "isSignal": true; }; "closeOnBackdrop": { "alias": "closeOnBackdrop"; "required": false; "isSignal": true; }; "persistent": { "alias": "persistent"; "required": false; "isSignal": true; }; }, { "open": "openChange"; "closed": "closed"; "confirmed": "confirmed"; }, never, ["[eyebrow]", "[body]", "[impact]", "[actions]"], true, [{ directive: typeof DsStaticPreview; inputs: { "staticPreview": "staticPreview"; }; outputs: {}; }]>;
|
|
2039
2170
|
}
|
|
2040
2171
|
|
|
2041
2172
|
declare class ModalCardComponent {
|
|
@@ -2057,7 +2188,7 @@ declare class ModalCardComponent {
|
|
|
2057
2188
|
protected readonly classes: _angular_core.Signal<string>;
|
|
2058
2189
|
protected onClose(): void;
|
|
2059
2190
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ModalCardComponent, never>;
|
|
2060
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ModalCardComponent, "ds-modal-card", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "error": { "alias": "error"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": true; "isSignal": true; }; "showClose": { "alias": "showClose"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "dialogRole": { "alias": "dialogRole"; "required": false; "isSignal": true; }; }, { "closed": "closed"; }, never, ["[body]", "[impact]", "[actions]"], true, never>;
|
|
2191
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ModalCardComponent, "ds-modal-card", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "error": { "alias": "error"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": true; "isSignal": true; }; "showClose": { "alias": "showClose"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "dialogRole": { "alias": "dialogRole"; "required": false; "isSignal": true; }; }, { "closed": "closed"; }, never, ["[eyebrow]", "[body]", "[impact]", "[actions]"], true, never>;
|
|
2061
2192
|
}
|
|
2062
2193
|
|
|
2063
2194
|
type ModalConfirmTone = 'default' | 'error';
|
|
@@ -2356,7 +2487,28 @@ declare class TooltipDirective implements OnDestroy {
|
|
|
2356
2487
|
private ref;
|
|
2357
2488
|
private timer;
|
|
2358
2489
|
private readonly tipId;
|
|
2359
|
-
|
|
2490
|
+
/**
|
|
2491
|
+
* Where `aria-describedby` belongs, when focus is involved. A host that is not
|
|
2492
|
+
* focusable itself never reaches a screen reader — `ds-menu-item` carries
|
|
2493
|
+
* `role="none"` and puts the real `<button>` inside — so describing the host
|
|
2494
|
+
* describes something the user never focuses. `focusin` bubbles, so its target
|
|
2495
|
+
* IS whatever took focus; recording it is what keeps this directive out of the
|
|
2496
|
+
* host component's internal DOM. A pointer-only open leaves this null and
|
|
2497
|
+
* falls back to the host, where no screen reader is involved anyway.
|
|
2498
|
+
*/
|
|
2499
|
+
private focusedTarget;
|
|
2500
|
+
/**
|
|
2501
|
+
* Where `aria-describedby` was actually written, remembered so teardown strips
|
|
2502
|
+
* it from the same element. Not derivable at teardown: focus can arrive after
|
|
2503
|
+
* the panel opened (hover, then click or arrow onto it), which moves
|
|
2504
|
+
* `focusedTarget` and would otherwise strand the attribute on the host,
|
|
2505
|
+
* pointing at a panel that no longer exists.
|
|
2506
|
+
*/
|
|
2507
|
+
private describedElement;
|
|
2508
|
+
protected onPointerEnter(): void;
|
|
2509
|
+
protected onFocusIn(event: FocusEvent): void;
|
|
2510
|
+
protected onFocusOut(): void;
|
|
2511
|
+
private scheduleShow;
|
|
2360
2512
|
protected onClose(): void;
|
|
2361
2513
|
private disposeRef;
|
|
2362
2514
|
protected onEscape(): void;
|
|
@@ -2701,9 +2853,11 @@ declare class AutocompleteComponent<T = unknown> extends DsControlValueAccessor<
|
|
|
2701
2853
|
/** Helper text shown below the field. */
|
|
2702
2854
|
readonly hint: _angular_core.InputSignal<string>;
|
|
2703
2855
|
/** Reserve the message-row height even when empty, so the field doesn't shift
|
|
2704
|
-
* the layout below it when a hint/error appears.
|
|
2705
|
-
*
|
|
2706
|
-
|
|
2856
|
+
* the layout below it when a hint/error appears. Falls back to
|
|
2857
|
+
* `DS_CONFIG.field.reserveMessage`, then off — opt in per field, or app-wide
|
|
2858
|
+
* for a form that shows validation messages. */
|
|
2859
|
+
readonly reserveMessage: _angular_core.InputSignalWithTransform<boolean | null, unknown>;
|
|
2860
|
+
protected readonly reserveMessageResolved: _angular_core.Signal<boolean>;
|
|
2707
2861
|
/** Shows a "Create «text»" row when the typed text matches no option. */
|
|
2708
2862
|
readonly allowCreate: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
2709
2863
|
/** Accessible name for the combobox input. */
|
|
@@ -2939,9 +3093,11 @@ declare class OtpInputComponent extends DsControlValueAccessor<string> {
|
|
|
2939
3093
|
/** Helper text shown below the cells. */
|
|
2940
3094
|
readonly hint: _angular_core.InputSignal<string>;
|
|
2941
3095
|
/** Reserve the message-row height even when empty, so the field doesn't shift
|
|
2942
|
-
* the layout below it when a hint/error appears.
|
|
2943
|
-
*
|
|
2944
|
-
|
|
3096
|
+
* the layout below it when a hint/error appears. Falls back to
|
|
3097
|
+
* `DS_CONFIG.field.reserveMessage`, then off — opt in per field, or app-wide
|
|
3098
|
+
* for a form that shows validation messages. */
|
|
3099
|
+
readonly reserveMessage: _angular_core.InputSignalWithTransform<boolean | null, unknown>;
|
|
3100
|
+
protected readonly reserveMessageResolved: _angular_core.Signal<boolean>;
|
|
2945
3101
|
/** Accessible group label for the cell row. */
|
|
2946
3102
|
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
2947
3103
|
/** Fires once, with the full code, on the partial → complete transition. */
|
|
@@ -2990,9 +3146,11 @@ declare class SliderComponent extends DsControlValueAccessor<SliderValue> {
|
|
|
2990
3146
|
/** Helper text shown below the slider. */
|
|
2991
3147
|
readonly hint: _angular_core.InputSignal<string>;
|
|
2992
3148
|
/** Reserve the message-row height even when empty, so the field doesn't shift
|
|
2993
|
-
* the layout below it when a hint/error appears.
|
|
2994
|
-
*
|
|
2995
|
-
|
|
3149
|
+
* the layout below it when a hint/error appears. Falls back to
|
|
3150
|
+
* `DS_CONFIG.field.reserveMessage`, then off — opt in per field, or app-wide
|
|
3151
|
+
* for a form that shows validation messages. */
|
|
3152
|
+
readonly reserveMessage: _angular_core.InputSignalWithTransform<boolean | null, unknown>;
|
|
3153
|
+
protected readonly reserveMessageResolved: _angular_core.Signal<boolean>;
|
|
2996
3154
|
private readonly track;
|
|
2997
3155
|
private dragging;
|
|
2998
3156
|
protected readonly uid: string;
|
|
@@ -3105,9 +3263,11 @@ declare class ColorPickerComponent extends DsControlValueAccessor<string> implem
|
|
|
3105
3263
|
/** Helper text shown below the trigger. */
|
|
3106
3264
|
readonly hint: _angular_core.InputSignal<string>;
|
|
3107
3265
|
/** Reserve the message-row height even when empty, so the field doesn't shift
|
|
3108
|
-
* the layout below it when a hint/error appears.
|
|
3109
|
-
*
|
|
3110
|
-
|
|
3266
|
+
* the layout below it when a hint/error appears. Falls back to
|
|
3267
|
+
* `DS_CONFIG.field.reserveMessage`, then off — opt in per field, or app-wide
|
|
3268
|
+
* for a form that shows validation messages. */
|
|
3269
|
+
readonly reserveMessage: _angular_core.InputSignalWithTransform<boolean | null, unknown>;
|
|
3270
|
+
protected readonly reserveMessageResolved: _angular_core.Signal<boolean>;
|
|
3111
3271
|
protected readonly trigger: _angular_core.Signal<ElementRef<HTMLButtonElement>>;
|
|
3112
3272
|
protected readonly panelTpl: _angular_core.Signal<TemplateRef<unknown>>;
|
|
3113
3273
|
protected readonly open: _angular_core.WritableSignal<boolean>;
|
|
@@ -3180,9 +3340,11 @@ declare class MultiSelectComponent extends DsControlValueAccessor<string[]> impl
|
|
|
3180
3340
|
/** Helper text shown below the field. */
|
|
3181
3341
|
readonly hint: _angular_core.InputSignal<string>;
|
|
3182
3342
|
/** Reserve the message-row height even when empty, so the field doesn't shift
|
|
3183
|
-
* the layout below it when a hint/error appears.
|
|
3184
|
-
*
|
|
3185
|
-
|
|
3343
|
+
* the layout below it when a hint/error appears. Falls back to
|
|
3344
|
+
* `DS_CONFIG.field.reserveMessage`, then off — opt in per field, or app-wide
|
|
3345
|
+
* for a form that shows validation messages. */
|
|
3346
|
+
readonly reserveMessage: _angular_core.InputSignalWithTransform<boolean | null, unknown>;
|
|
3347
|
+
protected readonly reserveMessageResolved: _angular_core.Signal<boolean>;
|
|
3186
3348
|
/** Accessible name for the trigger — falls back to `placeholder`. */
|
|
3187
3349
|
readonly ariaLabel: _angular_core.InputSignal<string | null>;
|
|
3188
3350
|
/** Shows a "Select all" row that toggles every filter-matching, enabled option. */
|
|
@@ -3262,9 +3424,11 @@ declare class CheckboxComponent extends DsBooleanControlValueAccessor {
|
|
|
3262
3424
|
/** Helper text shown below the checkbox. */
|
|
3263
3425
|
readonly hint: _angular_core.InputSignal<string>;
|
|
3264
3426
|
/** Reserve the message-row height even when empty, so the field doesn't shift
|
|
3265
|
-
* the layout below it when a hint/error appears.
|
|
3266
|
-
*
|
|
3267
|
-
|
|
3427
|
+
* the layout below it when a hint/error appears. Falls back to
|
|
3428
|
+
* `DS_CONFIG.field.reserveMessage`, then off — opt in per field, or app-wide
|
|
3429
|
+
* for a form that shows validation messages. */
|
|
3430
|
+
readonly reserveMessage: _angular_core.InputSignalWithTransform<boolean | null, unknown>;
|
|
3431
|
+
protected readonly reserveMessageResolved: _angular_core.Signal<boolean>;
|
|
3268
3432
|
/** Checkbox size — sm/md/lg. */
|
|
3269
3433
|
readonly size: _angular_core.InputSignal<DsSize>;
|
|
3270
3434
|
/** Marks the field required — shows an asterisk and sets `aria-required`. */
|
|
@@ -3279,8 +3443,9 @@ declare class CheckboxComponent extends DsBooleanControlValueAccessor {
|
|
|
3279
3443
|
protected readonly messageState: _angular_core.Signal<FieldMessageState>;
|
|
3280
3444
|
protected readonly fieldClass: _angular_core.Signal<string>;
|
|
3281
3445
|
protected onCheckedChange(event: Event): void;
|
|
3446
|
+
protected readonly devMode: boolean;
|
|
3282
3447
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CheckboxComponent, never>;
|
|
3283
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CheckboxComponent, "ds-checkbox", never, { "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "indeterminate": { "alias": "indeterminate"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "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; }; "reserveMessage": { "alias": "reserveMessage"; "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,
|
|
3448
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CheckboxComponent, "ds-checkbox", never, { "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "indeterminate": { "alias": "indeterminate"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "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; }; "reserveMessage": { "alias": "reserveMessage"; "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, ["*"], true, never>;
|
|
3284
3449
|
}
|
|
3285
3450
|
|
|
3286
3451
|
declare class RadioComponent {
|
|
@@ -3300,9 +3465,11 @@ declare class RadioComponent {
|
|
|
3300
3465
|
/** Helper text shown below the control. */
|
|
3301
3466
|
readonly hint: _angular_core.InputSignal<string>;
|
|
3302
3467
|
/** Reserve the message-row height even when empty, so the field doesn't shift
|
|
3303
|
-
* the layout below it when a hint/error appears.
|
|
3304
|
-
*
|
|
3305
|
-
|
|
3468
|
+
* the layout below it when a hint/error appears. Falls back to
|
|
3469
|
+
* `DS_CONFIG.field.reserveMessage`, then off — opt in per field, or app-wide
|
|
3470
|
+
* for a form that shows validation messages. */
|
|
3471
|
+
readonly reserveMessage: _angular_core.InputSignalWithTransform<boolean | null, unknown>;
|
|
3472
|
+
protected readonly reserveMessageResolved: _angular_core.Signal<boolean>;
|
|
3306
3473
|
/** Control size — sm/md/lg. */
|
|
3307
3474
|
readonly size: _angular_core.InputSignal<DsSize>;
|
|
3308
3475
|
/** Marks the radio required — shows an asterisk on the label and sets `aria-required`. */
|
|
@@ -3326,8 +3493,9 @@ declare class RadioComponent {
|
|
|
3326
3493
|
/** Called by the group's keyboard handler to focus this radio's input. */
|
|
3327
3494
|
focus(): void;
|
|
3328
3495
|
protected onSelect(): void;
|
|
3496
|
+
protected readonly devMode: boolean;
|
|
3329
3497
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RadioComponent, never>;
|
|
3330
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<RadioComponent, "ds-radio", never, { "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "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; }; "reserveMessage": { "alias": "reserveMessage"; "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,
|
|
3498
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<RadioComponent, "ds-radio", never, { "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "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; }; "reserveMessage": { "alias": "reserveMessage"; "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, ["*"], true, never>;
|
|
3331
3499
|
}
|
|
3332
3500
|
|
|
3333
3501
|
/** Contract that ds-radio reads from its parent ds-radio-group, injected via
|
|
@@ -3360,9 +3528,11 @@ declare class RadioGroupComponent extends DsControlValueAccessor<unknown> implem
|
|
|
3360
3528
|
/** Helper text shown below the group. */
|
|
3361
3529
|
readonly hint: _angular_core.InputSignal<string>;
|
|
3362
3530
|
/** Reserve the message-row height even when empty, so the field doesn't shift
|
|
3363
|
-
* the layout below it when a hint/error appears.
|
|
3364
|
-
*
|
|
3365
|
-
|
|
3531
|
+
* the layout below it when a hint/error appears. Falls back to
|
|
3532
|
+
* `DS_CONFIG.field.reserveMessage`, then off — opt in per field, or app-wide
|
|
3533
|
+
* for a form that shows validation messages. */
|
|
3534
|
+
readonly reserveMessage: _angular_core.InputSignalWithTransform<boolean | null, unknown>;
|
|
3535
|
+
protected readonly reserveMessageResolved: _angular_core.Signal<boolean>;
|
|
3366
3536
|
/** Accessible name for the group when no visible label is provided. */
|
|
3367
3537
|
readonly ariaLabel: _angular_core.InputSignal<string | null>;
|
|
3368
3538
|
/** Visible group label; omit to supply your own. */
|
|
@@ -3397,9 +3567,11 @@ declare class SwitchComponent extends DsBooleanControlValueAccessor {
|
|
|
3397
3567
|
/** Helper text shown below the switch. */
|
|
3398
3568
|
readonly hint: _angular_core.InputSignal<string>;
|
|
3399
3569
|
/** Reserve the message-row height even when empty, so the field doesn't shift
|
|
3400
|
-
* the layout below it when a hint/error appears.
|
|
3401
|
-
*
|
|
3402
|
-
|
|
3570
|
+
* the layout below it when a hint/error appears. Falls back to
|
|
3571
|
+
* `DS_CONFIG.field.reserveMessage`, then off — opt in per field, or app-wide
|
|
3572
|
+
* for a form that shows validation messages. */
|
|
3573
|
+
readonly reserveMessage: _angular_core.InputSignalWithTransform<boolean | null, unknown>;
|
|
3574
|
+
protected readonly reserveMessageResolved: _angular_core.Signal<boolean>;
|
|
3403
3575
|
/** Switch size — sm/md/lg. */
|
|
3404
3576
|
readonly size: _angular_core.InputSignal<DsSize>;
|
|
3405
3577
|
/** Marks the field required — shows an asterisk and sets `aria-required`. */
|
|
@@ -3415,8 +3587,9 @@ declare class SwitchComponent extends DsBooleanControlValueAccessor {
|
|
|
3415
3587
|
protected readonly switchClasses: _angular_core.Signal<string>;
|
|
3416
3588
|
protected readonly fieldClass: _angular_core.Signal<string>;
|
|
3417
3589
|
protected onCheckedChange(event: Event): void;
|
|
3590
|
+
protected readonly devMode: boolean;
|
|
3418
3591
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SwitchComponent, never>;
|
|
3419
|
-
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; }; "reserveMessage": { "alias": "reserveMessage"; "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,
|
|
3592
|
+
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; }; "reserveMessage": { "alias": "reserveMessage"; "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, ["*"], true, never>;
|
|
3420
3593
|
}
|
|
3421
3594
|
|
|
3422
3595
|
/**
|
|
@@ -3436,5 +3609,5 @@ declare class FieldClickFocusDirective {
|
|
|
3436
3609
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<FieldClickFocusDirective, "[dsFieldClickFocus]", never, {}, {}, never, never, true, never>;
|
|
3437
3610
|
}
|
|
3438
3611
|
|
|
3439
|
-
export { ACCORDION, AccordionComponent, AccordionItemComponent, AlertComponent, AppLayoutComponent, AutocompleteComponent, AvatarComponent, AvatarGroupComponent, BadgeComponent, BannerComponent, BodyScrollLockService, 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, LayoutScrollService, 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, 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, initialsFrom, isSelectOptionGroup, provideDsConfig, provideDsIcons, provideDsTheme };
|
|
3612
|
+
export { ACCORDION, AccordionComponent, AccordionItemComponent, AlertComponent, AppLayoutComponent, AutocompleteComponent, AvatarComponent, AvatarGroupComponent, BadgeComponent, BannerComponent, BodyScrollLockService, 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, LayoutScrollService, ListComponent, ListItemComponent, LoadingOverlayComponent, MenuComponent, MenuDividerComponent, MenuItemComponent, ModalCardComponent, ModalComponent, ModalService, MultiSelectComponent, NumberStepperComponent, OtpInputComponent, PageFooterComponent, PageHeaderComponent, PaginationComponent, PopoverComponent, ProgressComponent, RADIO_GROUP, RadioComponent, RadioGroupComponent, 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, inheritDsConfig, initialsFrom, isSelectOptionGroup, provideDsConfig, provideDsIcons, provideDsTheme };
|
|
3440
3613
|
export type { AccordionContract, AccordionItemRef, AlertVariant, AutocompleteOption, AutocompleteOptionGroup, AutocompleteWidth, AvatarSize, AvatarStatus, AvatarTintOptions, BannerVariant, BreadcrumbItem, ButtonColor, ButtonType, ButtonVariant, CardElevation, CardPadding, ContainerSize, DatePickerMode, DatePickerPreset, DatePickerValue, DateValue, DescriptionListOrientation, DividerSpacing, DividerVariant, DrawerPlacement, DropzoneFile, DropzoneFileState, DsConfig, DsIconRegistry, DsSize, DsStatus, DsStatusKey, DsStatusRegistry, DsThemeOptions, DsToastConfig, DsToastHorizontalPosition, DsToastPosition, DsToastVerticalPosition, EmptyStateVariant, IconButtonType, IconButtonVariant, IconName, InputType, LayoutAlign, LayoutGap, LayoutJustify, ModalConfirmOptions, ModalConfirmTone, ModalSize, MultiSelectOption, OtpMode, PageFooterVariant, PopoverAlign, PopoverPlacement, ProgressVariant, RadioGroupChild, RadioGroupContract, RangeValue, SegmentedOption, SelectItem, SelectOption, SelectOptionGroup, SidenavAlertItem, SidenavContract, SidenavItemModel, SidenavSearchProvider, SidenavSearchResult, SortChangeEvent, SortDir, SplitButtonItem, SplitButtonVariant, StepperLabelPosition, StepperOrientation, TableCellEditEvent, TableColumn, TableRowAction, TableRowActionEvent, TabsOrientation, TabsVariant, TagVariant, TextareaResize, TimeFormat, TimePickerMode, TimePickerValue, TimeRangeValue, TimeValue, TimelineTone, ToastAction, ToastEntry, ToastOptions, ToastPromiseMessages, ToastRef, ToastVariant, TooltipPlacement, TreeNode };
|