common-header-lib 0.20.5 → 0.20.7
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 +18 -1
- package/fesm2022/common-header-lib.mjs +16 -13
- package/fesm2022/common-header-lib.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,12 +2,29 @@
|
|
|
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.7**
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
## What's New
|
|
10
10
|
|
|
11
|
+
### 0.20.7
|
|
12
|
+
|
|
13
|
+
- **LOB dropdown truncation**: long LOB names now truncate with an ellipsis instead of overflowing the 140px trigger untruncated. Also fixes a vertical-centering regression the ellipsis fix introduced (PrimeNG's own un-overridden `.p-select-label` padding was fighting the new `line-height`-based centering) and adds `margin-left: 8px` for spacing.
|
|
14
|
+
- **Mail pagination dropdown regression fixed**: the rows-per-page dropdown inside the mailbox's paginator was falling back to raw, unstyled PrimeNG defaults instead of this library's theme. Root cause: `UserMailboxComponent`'s `.mail-content` wrapper never received the `lib-ui` marker class added by the 0.20.4 dialog-scoping pass — a gap in that original commit, not a new leak.
|
|
15
|
+
- **Comprehensive Jasmine/Karma test suite** added across the library and the test app (previously the Karma harness didn't execute any tests at all — a test-infrastructure-only fix, no production code affected). Found and fixed 4 real defects along the way: `LandingpgConfigComponent.ngOnInit()` ordering, a missing null-guard in `ViewPasswordPopupComponent` that could throw if dialog data was malformed, a leaked polling interval in `EventService.checkMFA()`, and a no-op call in `DateDiffPipe`. Removed one confirmed-dead method (`LoggedInUserInfo.setPrivateKeyFromBigInts`).
|
|
16
|
+
- **`library-integration-guide.md`**: documented a known issue where the Workspace API's `/workflow/api/Workflow/Workflow/` endpoint returns 503, with an interceptor workaround to prevent it from being misclassified as a session/auth error.
|
|
17
|
+
|
|
18
|
+
### 0.20.6
|
|
19
|
+
|
|
20
|
+
- **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.
|
|
21
|
+
- **General Configuration tab buttons** now carry `aria-pressed`.
|
|
22
|
+
- **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`).
|
|
23
|
+
- **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.
|
|
24
|
+
- **`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.
|
|
25
|
+
- **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.
|
|
26
|
+
- **`SliceToTwoPipe` fix**: hyphens are now treated as a name separator alongside spaces and underscores — `"Amit-Wagh"` previously produced `"AM"` instead of the correct `"AW"`.
|
|
27
|
+
|
|
11
28
|
### 0.20.5
|
|
12
29
|
|
|
13
30
|
- **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.
|