common-header-lib 0.20.5 → 0.20.6
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/README.md
CHANGED
|
@@ -2,12 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
Angular 20 shared header library for the Arcon platform. Provides the application header bar, LOB selector, user sidebar, notification panel, mailbox panel, waffle (9-dots) app panel, general configuration drawer, and all supporting services.
|
|
4
4
|
|
|
5
|
-
Current published version: **0.20.
|
|
5
|
+
Current published version: **0.20.6**
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
## What's New
|
|
10
10
|
|
|
11
|
+
### 0.20.6
|
|
12
|
+
|
|
13
|
+
- **9-dots app panel keyboard navigation**: full WAI-ARIA APG roving-focus grid — Arrow keys + Home/End move between app tiles, `aria-haspopup="dialog"` on the trigger. Tab past the last tile continues the user's forward tab traversal to the next page element instead of looping back onto the trigger; Shift+Tab out the front still returns to the trigger.
|
|
14
|
+
- **General Configuration tab buttons** now carry `aria-pressed`.
|
|
15
|
+
- **New `_accessibility.scss`**: the library's WCAG 2.4.7 focus-visible ring is now properly scoped to `.lib-ui` — previously an unscoped rule in `common-header-lib.component.scss` leaked its focus styling onto every focusable element on the host page (`ViewEncapsulation.None`).
|
|
16
|
+
- **Dropdown focus ring fixed**: PrimeNG's `p-select` puts keyboard-focus handling on an inner label span, not the outer box containing the dropdown chevron, so the ring previously stopped short of the chevron. Redirected via `:has(.p-select-label:focus-visible)` so the ring wraps the whole control; also removed a "double border" artifact from a pre-existing `.p-focus` rule.
|
|
17
|
+
- **`lib-ui` added to `SidePopupComponent` and `ConfirmDialogComponent`** — both were missing this marker class, so their contents fell back to the browser's raw default focus outline instead of this library's own ring.
|
|
18
|
+
- **Dialogs now render inside `<lib-app-header>` instead of `<body>`**: the LOB confirmation dialog, General Configuration, and Password/View Password dialogs previously escaped to `<body>`, so a consuming app could not target/style them with a scoped CSS selector. New `DialogHostService` gives them a reference to `<lib-app-header>`'s own host element to append into instead. `SidePopupComponent` already rendered inline and is unaffected.
|
|
19
|
+
- **`SliceToTwoPipe` fix**: hyphens are now treated as a name separator alongside spaces and underscores — `"Amit-Wagh"` previously produced `"AM"` instead of the correct `"AW"`.
|
|
20
|
+
|
|
11
21
|
### 0.20.5
|
|
12
22
|
|
|
13
23
|
- **Dialog dragging disabled** — the LOB change confirmation dialog and both `DialogService`-opened dialogs (General Configuration, Password/View Password) now have dragging explicitly disabled. PrimeNG defaults `ConfirmDialog` to `draggable=true`, and `DynamicDialogConfig`'s class-field default of `draggable=false` is never applied by `DialogService.open()` (it forwards the caller's plain config object, and PrimeNG's own template checks `!== false`, so `undefined` resolved to draggable). `SidePopupComponent` was already non-draggable.
|
|
@@ -284,9 +284,12 @@ class SliceToTwoPipe {
|
|
|
284
284
|
return 'NA';
|
|
285
285
|
}
|
|
286
286
|
textName = textName.trim();
|
|
287
|
-
|
|
287
|
+
// Space, underscore, and hyphen are all valid word separators for this
|
|
288
|
+
// input (display names, usernames, and hyphenated names all occur) —
|
|
289
|
+
// splitting on only one of them at a time missed hyphenated names like
|
|
290
|
+
// "Amit-Wagh".
|
|
288
291
|
let splitStringArr = textName
|
|
289
|
-
.split(
|
|
292
|
+
.split(/[ _-]+/)
|
|
290
293
|
.filter((part) => part.length > 0);
|
|
291
294
|
if (splitStringArr.length === 0) {
|
|
292
295
|
return 'NA';
|