@ids-group-ltd/ids-design-system 0.14.2 → 0.14.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.
Files changed (57) hide show
  1. package/CHANGELOG.md +93 -0
  2. package/components.md +15 -15
  3. package/docs/agent/forms/ds-color-picker.md +1 -1
  4. package/docs/agent/forms/ds-date-picker.md +1 -1
  5. package/docs/agent/forms/ds-select.md +1 -1
  6. package/docs/agent/forms/ds-textarea.md +1 -1
  7. package/docs/agent/forms/ds-time-picker.md +1 -1
  8. package/docs/agent/forms/the-picker-family-ds-select-ds-multi-select-ds-autocomplete.md +1 -1
  9. package/docs/agent/foundations/tokens.md +1 -1
  10. package/docs/agent/navigation/ds-tabs.md +1 -1
  11. package/docs/agent/overlays/ds-bottom-sheet.md +1 -1
  12. package/docs/agent/overlays/ds-drawer.md +1 -1
  13. package/docs/agent/overlays/ds-modal.md +1 -1
  14. package/docs/agent/overlays/ds-popover.md +1 -1
  15. package/docs/agent/overlays/ds-tooltip.md +3 -3
  16. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +2 -2
  17. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
  18. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs +16 -4
  19. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs.map +1 -1
  20. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +25 -10
  21. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -1
  22. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +28 -11
  23. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
  24. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs +13 -4
  25. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs.map +1 -1
  26. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +3 -3
  27. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
  28. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +3 -4
  29. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
  30. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs +1 -1
  31. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs.map +1 -1
  32. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs +1 -1
  33. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs.map +1 -1
  34. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +2 -2
  35. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
  36. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs +2 -2
  37. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs.map +1 -1
  38. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +31 -9
  39. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -1
  40. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +16 -5
  41. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
  42. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs +74 -18
  43. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs.map +1 -1
  44. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +2 -2
  45. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
  46. package/migrations/0.14.3.json +71 -0
  47. package/package.json +1 -1
  48. package/schematics/check-overrides/surface.json +6 -1
  49. package/themes/_semantic.scss +1 -0
  50. package/themes/dark/_theme.scss +1 -0
  51. package/types/ids-group-ltd-ids-design-system-components-bottom-sheet.d.ts +4 -1
  52. package/types/ids-group-ltd-ids-design-system-components-color-picker.d.ts +4 -2
  53. package/types/ids-group-ltd-ids-design-system-components-date-picker.d.ts +4 -2
  54. package/types/ids-group-ltd-ids-design-system-components-drawer.d.ts +4 -1
  55. package/types/ids-group-ltd-ids-design-system-components-textarea.d.ts +11 -3
  56. package/types/ids-group-ltd-ids-design-system-components-time-picker.d.ts +3 -2
  57. package/types/ids-group-ltd-ids-design-system-components-tooltip.d.ts +10 -1
@@ -0,0 +1,71 @@
1
+ {
2
+ "version": "0.14.3",
3
+ "items": [
4
+ {
5
+ "id": "exported-class-members-grew",
6
+ "kind": "behavior",
7
+ "old": "DrawerComponent, BottomSheetComponent, ColorPickerComponent, DatePickerComponent, TimePickerComponent, TextareaComponent, TooltipDirective",
8
+ "new": null,
9
+ "surface": "typescript",
10
+ "action": "Build after upgrading, and rename or mark `override` every member of yours the compiler reports as colliding.",
11
+ "appliesWhen": "Only a class of yours that extends one of the listed components. Template users of those components need nothing; subclassing a DS component is unsupported.",
12
+ "pitfall": "`protected` and `private` are no protection: a redeclared member collides exactly as a public one does.",
13
+ "restore": null,
14
+ "searchHints": [
15
+ "extends DrawerComponent",
16
+ "extends BottomSheetComponent",
17
+ "extends ColorPickerComponent",
18
+ "extends DatePickerComponent",
19
+ "extends TimePickerComponent",
20
+ "extends TextareaComponent",
21
+ "extends TooltipDirective"
22
+ ],
23
+ "detect": [
24
+ "extends DrawerComponent",
25
+ "extends BottomSheetComponent",
26
+ "extends ColorPickerComponent",
27
+ "extends DatePickerComponent",
28
+ "extends TimePickerComponent",
29
+ "extends TextareaComponent",
30
+ "extends TooltipDirective"
31
+ ],
32
+ "verify": "The app builds with no TS4114 or TS2416 against a DS base class.",
33
+ "note": "DrawerComponent, BottomSheetComponent, ColorPickerComponent and TimePickerComponent gained preview; DatePickerComponent gained preview and selectedAnchorDate; TextareaComponent gained countTrimmed and countedRange; TooltipDirective gained dsTooltipTextSelector, hostElement, isClipped, onKeydown and textElement. The compiler names every collision."
34
+ },
35
+ {
36
+ "id": "tabs-scroll-arrow-hover-colors",
37
+ "kind": "behavior",
38
+ "old": "--ds-tab-label-color-hover",
39
+ "new": null,
40
+ "surface": "style",
41
+ "action": "None, unless you set --ds-tab-label-color-hover or relied on the arrow hover look: set --ds-tabs-scroll-arrow-icon-color-hover and --ds-tabs-scroll-arrow-bg-color-hover on ds-tabs instead.",
42
+ "appliesWhen": "Only a ds-tabs with scrollable, and only its prev/next arrows on hover. Tab labels still read --ds-tab-label-color-hover.",
43
+ "pitfall": "An override of --ds-tab-label-color-hover still applies to the tabs, so the arrows quietly change colour while the override looks intact.",
44
+ "restore": "ds-tabs { --ds-tabs-scroll-arrow-icon-color-hover: var(--ds-tab-label-color-hover, var(--text-primary)); --ds-tabs-scroll-arrow-bg-color-hover: var(--surface-muted); }",
45
+ "searchHints": [
46
+ "--ds-tab-label-color-hover",
47
+ "scroll-arrow"
48
+ ],
49
+ "verify": "Hover the next arrow of a scrollable ds-tabs and confirm the chevron's computed colour equals the active tab label's and its surface is --surface-secondary, or your override."
50
+ }
51
+ ],
52
+ "informational": [
53
+ {
54
+ "text": "The over-limit highlight of a ds-textarea with maxLengthMode=\"soft\" reads the new semantic role --error-highlight (--red-300 in light, hsl(0deg 38% 40%) in dark) instead of --error-muted-strong. An override of --error-muted-strong no longer changes the highlight; set --error-highlight instead.",
55
+ "verify": "Type past maxLength in a soft-limit ds-textarea and confirm the computed background-color of the over-limit mark equals --error-highlight in both themes, and the text over it keeps its colour."
56
+ },
57
+ {
58
+ "text": "A dsTooltipWhenClipped host that takes focus itself opens its tip only on keyboard focus, not on a mouse click, and closes it on any key. A dsTooltipWhenClipped host that cannot take focus opens on Tab only when its nearest focusable ancestor is a control: a native a[href], button, input, select, textarea or summary, a table row, or an element with the role button, link, tab, option, menuitem, menuitemcheckbox, menuitemradio, row, gridcell, combobox, checkbox, radio, switch or treeitem. A focusable container such as a ds-tabs panel, a scroll region or a role-less div with tabindex=\"0\" opens nothing. A role-less focusable element that acts as a control discloses again once it carries its role.",
59
+ "verify": "Tab onto a ds-tabs panel holding a clipped dsTooltipWhenClipped label and confirm no tooltip opens; Tab onto a ds-button or ds-select trigger holding a clipped label and confirm its tooltip opens, and that a mouse click on it opens none."
60
+ },
61
+ {
62
+ "text": "The ds-table scroll box is position: relative, so the hidden header label of a column with screenReaderLabel and no label is clipped with the rows and no longer widens the page when the table overflows its container. An element positioned absolutely inside a cell template with no positioned ancestor of its own resolves against that scroll box.",
63
+ "verify": "At a viewport narrower than the table, put a column with screenReaderLabel and no label past the container's edge and confirm document.documentElement.scrollWidth equals clientWidth while the table still scrolls horizontally inside its box."
64
+ },
65
+ {
66
+ "text": "The ds-tabs scrollable arrows are padded like a tab, so each chevron sits on the tab label line under any --ds-tab-padding-top / --ds-tab-padding-bottom / --ds-tab-indicator-width values, and the hover surface is centred on that line inside the strip. With the default padding nothing moves. In the pills variant the hover surface matches the pill's height and radius.",
67
+ "verify": "On a scrollable ds-tabs whose --ds-tab-padding-bottom exceeds --ds-tab-padding-top, confirm the next arrow's chevron and a tab label share a vertical centre within 1px, and that hovering the arrow shows a surface centred on that line."
68
+ }
69
+ ],
70
+ "deleteList": []
71
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ids-group-ltd/ids-design-system",
3
- "version": "0.14.2",
3
+ "version": "0.14.3",
4
4
  "description": "IDS Group Angular design system: components, tokens, themes",
5
5
  "license": "MIT",
6
6
  "homepage": "https://ids-ds.proto.ids-group.co.uk/",
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.14.2",
2
+ "version": "0.14.3",
3
3
  "tokens": [
4
4
  "--ds-accordion-body-padding",
5
5
  "--ds-accordion-body-text-color",
@@ -871,6 +871,8 @@
871
871
  "--ds-tabs-gap",
872
872
  "--ds-tabs-panel-padding-top",
873
873
  "--ds-tabs-pills-bg-color",
874
+ "--ds-tabs-scroll-arrow-bg-color-hover",
875
+ "--ds-tabs-scroll-arrow-icon-color-hover",
874
876
  "--ds-tag-active-bg-color",
875
877
  "--ds-tag-active-border",
876
878
  "--ds-tag-active-label-color",
@@ -1230,6 +1232,7 @@
1230
1232
  "sheet-body",
1231
1233
  "sheet-handle",
1232
1234
  "sheet-overlay",
1235
+ "sheet-static",
1233
1236
  "sheet-title",
1234
1237
  "snapping"
1235
1238
  ],
@@ -1449,6 +1452,7 @@
1449
1452
  "drawer",
1450
1453
  "drawer-root",
1451
1454
  "drawer-scrim",
1455
+ "drawer-static",
1452
1456
  "footer",
1453
1457
  "header",
1454
1458
  "is-disabled",
@@ -2249,6 +2253,7 @@
2249
2253
  "time-clear",
2250
2254
  "time-footer",
2251
2255
  "time-panel",
2256
+ "time-static",
2252
2257
  "time-value",
2253
2258
  "trigger",
2254
2259
  "trigger-wrap"
@@ -180,6 +180,7 @@
180
180
  --error-subtitle: var(--red-50);
181
181
  --error-muted: var(--red-100);
182
182
  --error-muted-strong: var(--red-200);
183
+ --error-highlight: var(--red-300);
183
184
  --error-border: var(--red-200);
184
185
  --error-text: var(--red-600);
185
186
 
@@ -66,6 +66,7 @@
66
66
  --error-subtitle: hsl(0deg 45% 16%);
67
67
  --error-muted: hsl(0deg 40% 24%);
68
68
  --error-muted-strong: hsl(0deg 38% 32%);
69
+ --error-highlight: hsl(0deg 38% 40%);
69
70
  --error-border: hsl(0deg 38% 32%);
70
71
  --error-text: hsl(0deg 85% 74%);
71
72
 
@@ -1,5 +1,7 @@
1
1
  import * as _angular_core from '@angular/core';
2
2
  import { OnDestroy } from '@angular/core';
3
+ import * as i1 from '@ids-group-ltd/ids-design-system/components';
4
+ import { DsStaticPreview } from '@ids-group-ltd/ids-design-system/components';
3
5
 
4
6
  /** Bottom-anchored sheet — the mobile sibling of ds-drawer. Closes on scrim
5
7
  * tap, Escape, or a downward drag on the grab strip. While open it locks
@@ -24,6 +26,7 @@ declare class BottomSheetComponent implements OnDestroy {
24
26
  readonly snapPoints: _angular_core.InputSignal<readonly number[]>;
25
27
  private readonly doc;
26
28
  private readonly scrollLock;
29
+ protected readonly preview: DsStaticPreview;
27
30
  private readonly sheetRef;
28
31
  protected readonly dragOffset: _angular_core.WritableSignal<number | null>;
29
32
  /** Sheet is in the DOM (kept true through the leave animation). */
@@ -55,7 +58,7 @@ declare class BottomSheetComponent implements OnDestroy {
55
58
  protected onGrabMove(event: PointerEvent): void;
56
59
  protected onGrabEnd(): void;
57
60
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<BottomSheetComponent, never>;
58
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<BottomSheetComponent, "ds-bottom-sheet", never, { "open": { "alias": "open"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": true; "isSignal": true; }; "snapPoints": { "alias": "snapPoints"; "required": false; "isSignal": true; }; }, { "open": "openChange"; "closed": "closed"; }, never, ["*", "[actions]"], true, never>;
61
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<BottomSheetComponent, "ds-bottom-sheet", never, { "open": { "alias": "open"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": true; "isSignal": true; }; "snapPoints": { "alias": "snapPoints"; "required": false; "isSignal": true; }; }, { "open": "openChange"; "closed": "closed"; }, never, ["*", "[actions]"], true, [{ directive: typeof i1.DsStaticPreview; inputs: { "staticPreview": "staticPreview"; }; outputs: {}; }]>;
59
62
  }
60
63
 
61
64
  export { BottomSheetComponent };
@@ -1,6 +1,6 @@
1
1
  import * as _ids_group_ltd_ids_design_system_components_field_message from '@ids-group-ltd/ids-design-system/components/field-message';
2
2
  import * as _ids_group_ltd_ids_design_system_components from '@ids-group-ltd/ids-design-system/components';
3
- import { DsControlValueAccessor, DsOverlayCloseCause } from '@ids-group-ltd/ids-design-system/components';
3
+ import { DsControlValueAccessor, DsStaticPreview, DsOverlayCloseCause } from '@ids-group-ltd/ids-design-system/components';
4
4
  import * as _angular_core from '@angular/core';
5
5
  import { OnDestroy, ElementRef, TemplateRef } from '@angular/core';
6
6
  import * as _ids_group_ltd_ids_design_system_core from '@ids-group-ltd/ids-design-system/core';
@@ -19,6 +19,7 @@ declare class ColorPickerComponent extends DsControlValueAccessor<string> implem
19
19
  private readonly vcr;
20
20
  private readonly host;
21
21
  protected readonly intl: _angular_core.Signal<_ids_group_ltd_ids_design_system_core.DsIntl>;
22
+ protected readonly preview: DsStaticPreview;
22
23
  /** Public panel tokens forwarded onto the portaled overlay pane on open so
23
24
  * a consumer's `ds-color-picker { --ds-color-picker-panel-*: … }` reaches it.
24
25
  * Not the whole set: `prepareOverlayEnter` also forwards `DROPDOWN_PANEL_TOKENS`
@@ -49,6 +50,7 @@ declare class ColorPickerComponent extends DsControlValueAccessor<string> implem
49
50
  private overlayRef;
50
51
  private svDragging;
51
52
  private hueDragging;
53
+ constructor();
52
54
  ngOnDestroy(): void;
53
55
  protected readonly uid: string;
54
56
  protected readonly hintId: _angular_core.Signal<string | null>;
@@ -84,7 +86,7 @@ declare class ColorPickerComponent extends DsControlValueAccessor<string> implem
84
86
  private updateHue;
85
87
  private clampPct;
86
88
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<ColorPickerComponent, never>;
87
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<ColorPickerComponent, "ds-color-picker", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "presets": { "alias": "presets"; "required": false; "isSignal": true; }; "panelClass": { "alias": "panelClass"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "success": { "alias": "success"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
89
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ColorPickerComponent, "ds-color-picker", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "presets": { "alias": "presets"; "required": false; "isSignal": true; }; "panelClass": { "alias": "panelClass"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "success": { "alias": "success"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, [{ directive: typeof _ids_group_ltd_ids_design_system_components.DsStaticPreview; inputs: { "staticPreview": "staticPreview"; }; outputs: {}; }]>;
88
90
  }
89
91
 
90
92
  export { ColorPickerComponent };
@@ -1,6 +1,6 @@
1
1
  import * as _ids_group_ltd_ids_design_system_components_field_message from '@ids-group-ltd/ids-design-system/components/field-message';
2
2
  import * as _ids_group_ltd_ids_design_system_components from '@ids-group-ltd/ids-design-system/components';
3
- import { DsControlValueAccessor, DsOverlayCloseCause } from '@ids-group-ltd/ids-design-system/components';
3
+ import { DsControlValueAccessor, DsStaticPreview, DsOverlayCloseCause } from '@ids-group-ltd/ids-design-system/components';
4
4
  import * as _angular_core from '@angular/core';
5
5
  import { OnDestroy, ElementRef, TemplateRef } from '@angular/core';
6
6
  import * as _ids_group_ltd_ids_design_system_core from '@ids-group-ltd/ids-design-system/core';
@@ -55,6 +55,7 @@ declare class DatePickerComponent extends DsControlValueAccessor<Date | DateRang
55
55
  /** Segment of a ds-field-group: the group owns the border, radius and focus
56
56
  * ring, so .in-group strips this control back to its bare contents. */
57
57
  protected readonly inGroup: boolean;
58
+ protected readonly preview: DsStaticPreview;
58
59
  constructor();
59
60
  /** Field text for the DOM: fixed-width `_`-padded once any digit exists,
60
61
  * else '' (so an untouched field is genuinely empty — no error on blur,
@@ -210,6 +211,7 @@ declare class DatePickerComponent extends DsControlValueAccessor<Date | DateRang
210
211
  protected readonly weeksGrid: _angular_core.Signal<DayCell[][]>;
211
212
  private getRangeContext;
212
213
  protected open(moveFocusToGrid?: boolean): void;
214
+ private selectedAnchorDate;
213
215
  protected close(cause?: DsOverlayCloseCause): void;
214
216
  ngOnDestroy(): void;
215
217
  /**
@@ -260,7 +262,7 @@ declare class DatePickerComponent extends DsControlValueAccessor<Date | DateRang
260
262
  protected isPresetDisabled(preset: DatePickerPreset): boolean;
261
263
  protected applyPreset(preset: DatePickerPreset): void;
262
264
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<DatePickerComponent, never>;
263
- 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; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "optional": { "alias": "optional"; "required": false; "isSignal": true; }; "panelClass": { "alias": "panelClass"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "success": { "alias": "success"; "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>;
265
+ 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; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "optional": { "alias": "optional"; "required": false; "isSignal": true; }; "panelClass": { "alias": "panelClass"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "success": { "alias": "success"; "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, [{ directive: typeof _ids_group_ltd_ids_design_system_components.DsStaticPreview; inputs: { "staticPreview": "staticPreview"; }; outputs: {}; }]>;
264
266
  }
265
267
 
266
268
  export { DatePickerComponent };
@@ -2,12 +2,15 @@ import * as _angular_core from '@angular/core';
2
2
  import { OnDestroy } from '@angular/core';
3
3
  import * as _ids_group_ltd_ids_design_system_core from '@ids-group-ltd/ids-design-system/core';
4
4
  import { DsSize } from '@ids-group-ltd/ids-design-system/core';
5
+ import * as i1 from '@ids-group-ltd/ids-design-system/components';
6
+ import { DsStaticPreview } from '@ids-group-ltd/ids-design-system/components';
5
7
 
6
8
  type DrawerPlacement = 'right' | 'left' | 'top' | 'bottom';
7
9
 
8
10
  declare class DrawerComponent implements OnDestroy {
9
11
  private readonly scrollLock;
10
12
  protected readonly intl: _angular_core.Signal<_ids_group_ltd_ids_design_system_core.DsIntl>;
13
+ protected readonly preview: DsStaticPreview;
11
14
  /** Open state, two-way bound. */
12
15
  readonly open: _angular_core.ModelSignal<boolean>;
13
16
  /** Panel size — sm/md/lg. */
@@ -33,7 +36,7 @@ declare class DrawerComponent implements OnDestroy {
33
36
  private finishClose;
34
37
  protected onEscape(): void;
35
38
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<DrawerComponent, never>;
36
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<DrawerComponent, "ds-drawer", never, { "open": { "alias": "open"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "placement": { "alias": "placement"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": true; "isSignal": true; }; }, { "open": "openChange"; "closed": "closed"; }, never, ["[drawer-body]", "[drawer-footer]"], true, never>;
39
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<DrawerComponent, "ds-drawer", never, { "open": { "alias": "open"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "placement": { "alias": "placement"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": true; "isSignal": true; }; }, { "open": "openChange"; "closed": "closed"; }, never, ["[drawer-body]", "[drawer-footer]"], true, [{ directive: typeof i1.DsStaticPreview; inputs: { "staticPreview": "staticPreview"; }; outputs: {}; }]>;
37
40
  }
38
41
 
39
42
  export { DrawerComponent };
@@ -55,7 +55,8 @@ declare class TextareaComponent extends DsControlValueAccessor<string> {
55
55
  readonly ariaLabel: _angular_core.InputSignal<string | null>;
56
56
  /** Character limit - shows a live "{current}/{max}" counter below the field.
57
57
  * `maxLengthMode` decides what happens at the limit. Counts `value.length`, the
58
- * UTF-16 units the native `maxlength` counts, whitespace included. */
58
+ * UTF-16 units the native `maxlength` counts, whitespace included, unless
59
+ * `countTrimmed` is set. */
59
60
  readonly maxLength: _angular_core.InputSignalWithTransform<number | null, number | null | undefined>;
60
61
  /** `'hard'` applies the native maxlength attribute, so typing and paste stop at
61
62
  * `maxLength`. `'soft'` lets the text run past it: the counter turns red, the
@@ -63,10 +64,18 @@ declare class TextareaComponent extends DsControlValueAccessor<string> {
63
64
  * (`aria-invalid`, with the counter as its description). Blocking a save on
64
65
  * it is the form's job. */
65
66
  readonly maxLengthMode: _angular_core.InputSignal<TextareaMaxLengthMode>;
67
+ /** Leaves whitespace at either end of the text out of the counter, the soft-limit
68
+ * state and the highlight, for a value the server stores trimmed. Whitespace
69
+ * between words still counts. The native `maxlength` of `maxLengthMode="hard"`
70
+ * counts every character regardless. */
71
+ readonly countTrimmed: _angular_core.InputSignalWithTransform<boolean, unknown>;
72
+ private readonly countedRange;
73
+ protected readonly currentLength: _angular_core.Signal<number>;
66
74
  protected readonly overLimitBy: _angular_core.Signal<number>;
67
75
  protected readonly overflowParts: _angular_core.Signal<{
68
76
  within: string;
69
77
  over: string;
78
+ after: string;
70
79
  }>;
71
80
  /** Native `minlength` attribute. */
72
81
  readonly minLength: _angular_core.InputSignalWithTransform<number | null, number | null | undefined>;
@@ -84,7 +93,6 @@ declare class TextareaComponent extends DsControlValueAccessor<string> {
84
93
  protected readonly resolvedAriaLabel: _angular_core.Signal<string | null>;
85
94
  /** Effective disabled — own `disabled` input OR the reactive-forms state. */
86
95
  protected readonly isDisabled: _angular_core.Signal<boolean>;
87
- protected readonly currentLength: _angular_core.Signal<number>;
88
96
  protected readonly counterId: _angular_core.Signal<string | null>;
89
97
  protected readonly describedBy: _angular_core.Signal<string | null>;
90
98
  protected readonly nativeMaxLength: _angular_core.Signal<number | null>;
@@ -111,7 +119,7 @@ declare class TextareaComponent extends DsControlValueAccessor<string> {
111
119
  /** Selects the whole text, as `HTMLTextAreaElement.select()` does. */
112
120
  select(): void;
113
121
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<TextareaComponent, never>;
114
- 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; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "readOnly": { "alias": "readOnly"; "required": false; "isSignal": true; }; "readonlyBinding": { "alias": "readonly"; "required": false; "isSignal": true; }; "success": { "alias": "success"; "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; }; "maxLengthMode": { "alias": "maxLengthMode"; "required": false; "isSignal": true; }; "minLength": { "alias": "minLength"; "required": false; "isSignal": true; }; "pattern": { "alias": "pattern"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
122
+ 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; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "readOnly": { "alias": "readOnly"; "required": false; "isSignal": true; }; "readonlyBinding": { "alias": "readonly"; "required": false; "isSignal": true; }; "success": { "alias": "success"; "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; }; "maxLengthMode": { "alias": "maxLengthMode"; "required": false; "isSignal": true; }; "countTrimmed": { "alias": "countTrimmed"; "required": false; "isSignal": true; }; "minLength": { "alias": "minLength"; "required": false; "isSignal": true; }; "pattern": { "alias": "pattern"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
115
123
  }
116
124
 
117
125
  export { TextareaComponent };
@@ -1,6 +1,6 @@
1
1
  import * as _ids_group_ltd_ids_design_system_components_field_message from '@ids-group-ltd/ids-design-system/components/field-message';
2
2
  import * as _ids_group_ltd_ids_design_system_components from '@ids-group-ltd/ids-design-system/components';
3
- import { DsControlValueAccessor, DsOverlayCloseCause } from '@ids-group-ltd/ids-design-system/components';
3
+ import { DsControlValueAccessor, DsStaticPreview, DsOverlayCloseCause } from '@ids-group-ltd/ids-design-system/components';
4
4
  import * as _angular_core from '@angular/core';
5
5
  import { OnDestroy, ElementRef, TemplateRef } from '@angular/core';
6
6
  import * as _ids_group_ltd_ids_design_system_core from '@ids-group-ltd/ids-design-system/core';
@@ -92,6 +92,7 @@ declare class TimePickerComponent extends DsControlValueAccessor<string | TimeRa
92
92
  constructor();
93
93
  private readonly config;
94
94
  protected readonly intl: _angular_core.Signal<_ids_group_ltd_ids_design_system_core.DsIntl>;
95
+ protected readonly preview: DsStaticPreview;
95
96
  private readonly overlay;
96
97
  private readonly vcr;
97
98
  private readonly injector;
@@ -191,7 +192,7 @@ declare class TimePickerComponent extends DsControlValueAccessor<string | TimeRa
191
192
  private minutesOf;
192
193
  private laterOf;
193
194
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<TimePickerComponent, never>;
194
- 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; }; "panelClass": { "alias": "panelClass"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "success": { "alias": "success"; "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>;
195
+ 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; }; "panelClass": { "alias": "panelClass"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "success": { "alias": "success"; "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, [{ directive: typeof _ids_group_ltd_ids_design_system_components.DsStaticPreview; inputs: { "staticPreview": "staticPreview"; }; outputs: {}; }]>;
195
196
  }
196
197
 
197
198
  export { TimePickerComponent };
@@ -26,6 +26,14 @@ declare class TooltipDirective implements OnDestroy {
26
26
  * what it was handed. A tip whose text the host already contains sets no `aria-describedby`;
27
27
  * one given a `dsTooltip` that says more than the host does describes it as usual. */
28
28
  readonly dsTooltipWhenClipped: _angular_core.InputSignalWithTransform<boolean, unknown>;
29
+ /** A selector for the element inside the host whose clipping `dsTooltipWhenClipped` tests and
30
+ * whose text it discloses. It lets the pointer area be a whole row while the text is one part
31
+ * of it. Resolved on every open, so the element may come and go with the host's content; while
32
+ * nothing matches, no clipped tip opens. */
33
+ readonly dsTooltipTextSelector: _angular_core.InputSignal<string | null>;
34
+ get hostElement(): HTMLElement;
35
+ private textElement;
36
+ isClipped(): boolean;
29
37
  private tipText;
30
38
  /** A clipped host's full text is already in the DOM, so a screen reader has it; describing
31
39
  * the element with it again would announce it twice. */
@@ -62,12 +70,13 @@ declare class TooltipDirective implements OnDestroy {
62
70
  private scheduleShow;
63
71
  protected onClose(): void;
64
72
  private disposeRef;
73
+ protected onKeydown(): void;
65
74
  protected onEscape(): void;
66
75
  private show;
67
76
  private positionFor;
68
77
  ngOnDestroy(): void;
69
78
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<TooltipDirective, never>;
70
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TooltipDirective, "[dsTooltip]", never, { "dsTooltip": { "alias": "dsTooltip"; "required": false; "isSignal": true; }; "dsTooltipPlacement": { "alias": "dsTooltipPlacement"; "required": false; "isSignal": true; }; "dsTooltipDelay": { "alias": "dsTooltipDelay"; "required": false; "isSignal": true; }; "dsTooltipWhenClipped": { "alias": "dsTooltipWhenClipped"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
79
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TooltipDirective, "[dsTooltip]", never, { "dsTooltip": { "alias": "dsTooltip"; "required": false; "isSignal": true; }; "dsTooltipPlacement": { "alias": "dsTooltipPlacement"; "required": false; "isSignal": true; }; "dsTooltipDelay": { "alias": "dsTooltipDelay"; "required": false; "isSignal": true; }; "dsTooltipWhenClipped": { "alias": "dsTooltipWhenClipped"; "required": false; "isSignal": true; }; "dsTooltipTextSelector": { "alias": "dsTooltipTextSelector"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
71
80
  }
72
81
 
73
82
  declare class TooltipPanelComponent {