@ids-group-ltd/ids-design-system 0.6.0 → 0.6.2

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 CHANGED
@@ -8,6 +8,81 @@ While the package is on `0.x`, minor releases may contain breaking changes.
8
8
 
9
9
  ## Unreleased
10
10
 
11
+ ## 0.6.2 — 2026-07-21
12
+
13
+ ### Added
14
+
15
+ - **`ds-sidenav` accepts a projected `[brand]` slot for a custom logo.** A
16
+ `<ng-content select="[brand]">` now sits in the brand row at the top of the rail, so consumers
17
+ can project an `img`/SVG/any markup as the logo instead of — or alongside — the string `brand`
18
+ input. The string `brand` input is unchanged (it still renders an auto letter-mark from the
19
+ first character plus the brand name). The brand row, previously gated on the string `brand`
20
+ being set, now always renders and hides itself via `:empty` when there is neither brand text
21
+ nor projected content, so the empty state is identical to before.
22
+
23
+ ### Fixed
24
+
25
+ - **`ds-bottom-sheet` Escape is now scoped to its own panel instead of the document.** The sheet
26
+ bound `(document:keydown.escape)`, whereas modal and drawer scope Escape to their panel; with
27
+ stacked overlays this let a background sheet steal the Escape meant for the overlay on top. The
28
+ binding moves to `(keydown.escape)` on the sheet's overlay element, mirroring modal — the focus
29
+ trap auto-captures focus inside the sheet so Escape lands on the panel (sheets whose body has no
30
+ focusable content now need one for Escape to reach them), and a stacked overlay above the sheet
31
+ no longer has its Escape consumed underneath.
32
+ - **`ds-date-picker` mobile Backspace/Delete removes one digit and crosses separators instead of
33
+ wiping the whole segment.** Following 0.6.1's routing of mobile edits through `beforeinput`,
34
+ Gboard reports Backspace/Delete with a full-segment "selection" (its composing region), which
35
+ hit the segment editor's selection-clear branch and erased the entire segment (e.g. all of
36
+ `MM`) on one tap — also defeating 0.6.1's separator-crossing behaviour. The mobile `beforeinput`
37
+ path now collapses the selection to the caret edge (`selectionEnd` for Backspace,
38
+ `selectionStart` for Delete) before editing, forcing the single-character branch so one tap
39
+ deletes exactly one digit and crosses a `/` separator, matching desktop `keydown`.
40
+ - **`ds-bottom-sheet` no longer jolts all host-app content up then down as it opens.** The `.sheet`
41
+ enters via `translateY(100%) → none` inside the `position: fixed; inset: 0` `.sheet-overlay`, and
42
+ `cdkTrapFocusAutoCapture` focuses the panel's first tabbable at frame ~0 via `element.focus()`
43
+ without `preventScroll` — while the panel still sticks out below the frame. In consumer shells that
44
+ are a containing block for fixed descendants (`filter`/`transform`) combined with `overflow: hidden`
45
+ (e.g. a centred "phone frame"), the still-translated panel contributes scrollable overflow to that
46
+ shell, so the focus scroll-into-view yanks the shell's `scrollTop` up by ≈ the sheet height (all app
47
+ content jumps up in one frame); as the enter animation lands the overflow vanishes and the browser
48
+ clamps the scroll back to 0 (content slides back down). `.sheet-overlay` now uses `overflow: clip`,
49
+ which clips the translating panel so it never leaks scrollable overflow to consumer ancestors and —
50
+ unlike `hidden` — is not programmatically scrollable, so scroll-into-view cannot move it either. No
51
+ visual change: the panel was already visually cut at the frame edge.
52
+ - **`ds-drawer` no longer scroll-jolts host-app content as it opens.** Same bug class as the
53
+ bottom-sheet fix: the `.drawer` panel was itself `position: fixed` (a sibling of the fixed
54
+ `.drawer-scrim`) sliding in from `translateX/Y(±100%)` under the same `cdkTrapFocusAutoCapture`, so
55
+ the right/bottom (positive-direction) placements leaked scrollable overflow into the same kind of
56
+ containing-block-plus-`overflow: hidden` consumer frames. The scrim and panel are now wrapped in a
57
+ `.drawer-root` div (`position: fixed; inset: 0; z-index: var(--layer-modal); overflow: clip`) and
58
+ both children switched from `fixed` to `absolute`, so the wrapper genuinely clips them (fixed
59
+ descendants would escape an ancestor's clip); geometry is identical in normal and framed apps across
60
+ all four placements, including the RTL left-drawer case. `isolation: isolate` was added to `.drawer`
61
+ to preserve the stacking context the old `fixed` + `z-index` panel provided, so negative-`z-index`
62
+ content projected into the drawer body can't sink under the scrim. No public API or token change:
63
+ scrim click-to-close, panel-scoped plus document-level Escape, `animationend` teardown, and the focus
64
+ trap are all unchanged.
65
+
66
+ ## 0.6.1 — 2026-07-16
67
+
68
+ ### Fixed
69
+
70
+ - **`ds-date-picker` panel now closes on scroll of any scroll container.** 0.6.0 used the CDK
71
+ close-scroll strategy, which only observes the window and registered `cdkScrollable`s — so a plain
72
+ `overflow: auto` container (e.g. an app's scrolling `<main>`) never triggered the close and the
73
+ panel floated. It now also closes via a capture-phase document scroll listener, which catches the
74
+ non-bubbling scroll from any nested container.
75
+ - **`ds-date-picker` masked typing works on mobile keyboards.** Segment-aware editing was wired to
76
+ `keydown`, but Android/Gboard fires no reliable `keydown` for edits (Backspace arrives as a
77
+ `beforeinput` with `inputType: "deleteContentBackward"`), so deletion fell back to a native delete
78
+ + re-mask that couldn't cross a `/` separator — leaving the caret stuck (many taps to pass a
79
+ separator). Editing (digit entry, Backspace, Delete, selection replace) now also routes through
80
+ `beforeinput`, so a single tap crosses separators on a phone, matching desktop.
81
+ - **`ds-date-picker` panel drops the misleading `aria-modal` attribute.** The calendar panel is
82
+ non-modal (no backdrop, the rest of the page stays interactive) but still advertised
83
+ `aria-modal="true"`, telling assistive technology the page behind it was inert. Removed so the
84
+ announced ARIA state matches the panel's actual non-blocking behaviour.
85
+
11
86
  ## 0.6.0 — 2026-07-16
12
87
 
13
88
  ### Breaking
@@ -43,9 +118,10 @@ While the package is on `0.x`, minor releases may contain breaking changes.
43
118
  with a transparent input layered over a per-slot overlay, so the value stays fixed-width and the
44
119
  caret stays aligned as you type across segments (single and range mode).
45
120
  - **`ds-date-picker` calendar panel is now non-blocking (no backdrop).** The panel renders with
46
- `hasBackdrop: false`: it closes on pointer-down outside the panel, but the trigger stays live —
47
- clicking the calendar icon while the panel is open toggles it closed, and hover/pointer events
48
- reach the rest of the page instead of being swallowed by a full-screen scrim.
121
+ `hasBackdrop: false`, so hover/pointer events reach the rest of the page instead of being
122
+ swallowed by a full-screen scrim, and the trigger input stays live — clicking it while the panel
123
+ is open repositions the caret without closing. The panel closes on a pointer-down outside the
124
+ field and panel, on Escape, on selecting a day, and on scroll.
49
125
 
50
126
  ### Fixed
51
127