common-header-lib 0.20.2 → 0.20.4
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 +22 -1
- package/fesm2022/common-header-lib.mjs +248 -154
- package/fesm2022/common-header-lib.mjs.map +1 -1
- package/index.d.ts +66 -14
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,26 @@
|
|
|
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.
|
|
5
|
+
Current published version: **0.20.4**
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## What's New
|
|
10
|
+
|
|
11
|
+
### 0.20.4
|
|
12
|
+
|
|
13
|
+
- **Dialog/PrimeNG style scoping (breaking-leak fix)** — `_dialogs.scss` and `_primeng.scss` used to override PrimeNG's own global classes (`.p-dialog`, `.p-confirmdialog`, `.p-select`, `.p-inputtext`, `.p-multiselect`, `.p-checkbox`, `.p-tooltip`, etc.) with no library-specific scoping, so a host application's own unrelated PrimeNG dialogs/controls inherited this library's styling. Every one of those overrides is now scoped behind one of two marker classes the library applies to its own elements:
|
|
14
|
+
- `lib-dialog` — applied to every dialog-family root the library renders (`SidePopupComponent`, `ConfirmDialogComponent`, and the `DialogService` configs for General Configuration / View Password).
|
|
15
|
+
- `lib-ui` — applied to the header's own root and the same dialog roots, covering everything else (selects, inputs, tooltips, etc.).
|
|
16
|
+
- Host applications are unaffected unless they happen to use those exact marker classes themselves.
|
|
17
|
+
- **LOB change confirmation dialog gets its own class** — the confirm-change-of-LOB dialog now carries `lib-lob-change-confirm-dialog`, so a parent project can target it directly even though it renders outside the component's own DOM (a plain ancestor selector wouldn't otherwise reach it). The header shows by default; a host application that wants it hidden adds its own `.lib-lob-change-confirm-dialog .p-dialog-header { display: none !important; }`. Its close (X) button has a transparent background/border by default, scoped to this dialog only.
|
|
18
|
+
- **New input: `lobReadOnly`** (`boolean`, default `false`) — makes the LOB dropdown non-interactive without hiding it (independent of `EnableLOB`, which controls visibility). Enforced at every layer that can mutate the LOB — the dropdown, the confirm dialog, `setCustomLobId()`, and the internal persistence service — not just a disabled attribute, so it holds up against dev-tools tampering including editing `localStorage` and reloading the page. See `library-integration-guide.md` for the full behavior and its documented limits.
|
|
19
|
+
- **`SidePopupComponent` / `ConfirmDialogComponent`** each gained an optional `styleClass` input so consumers can layer additional classes onto the underlying `p-dialog`/`p-confirmDialog` root (backward compatible).
|
|
20
|
+
- **Demo app** (`src/app/app.component.ts` in this workspace) now includes a working example of the `setCustomLobId()` public method via a `@ViewChild('libAppHeaderRef')` reference, matching the pattern documented in `library-integration-guide.md`.
|
|
21
|
+
|
|
22
|
+
### 0.20.3
|
|
23
|
+
|
|
24
|
+
- Added the **Proxy Access Token** feature as a new tab inside `GeneralConfigurationComponent` (`ProxyAccessTokenConfigurationComponent`) — generate/regenerate a proxy access token, copy it, and download SSL/TLS certificates per database type.
|
|
6
25
|
|
|
7
26
|
---
|
|
8
27
|
|
|
@@ -69,6 +88,7 @@ These are provided directly on `CommonHeaderLibComponent` (`providers: [HeaderDa
|
|
|
69
88
|
|---|---|---|---|
|
|
70
89
|
| `EnableLOB` | `boolean` | Input | Show/hide the LOB dropdown |
|
|
71
90
|
| `showAllLOB` | `boolean` | Input | Include "All LOBs" option in the list |
|
|
91
|
+
| `lobReadOnly` | `boolean` | Input | *(new in 0.20.4)* Make the LOB dropdown non-interactive without hiding it — see `library-integration-guide.md` |
|
|
72
92
|
| `lobSelected` | `LobSelectedEvent` | Output | Fired when the user confirms a LOB change |
|
|
73
93
|
| `timezoneDetails` | `TimezoneEvent` | Output | Fired when the user saves a timezone |
|
|
74
94
|
| `getBgImage` | `any` | Output | Fired when a background image is configured |
|
|
@@ -112,6 +132,7 @@ Component-specific styles live alongside each component in their own `.component
|
|
|
112
132
|
|
|
113
133
|
- The HTTP interceptor (`http-error-interceptor.service.ts`) rejects **all** outbound requests when the `001-SAC-GEC` key is absent from localStorage and throws `Unauthorized`. This is intentional security design — do not remove or bypass it.
|
|
114
134
|
- The AES encryption key stored in localStorage is provided by the host platform and is required to run the library. This is an accepted design decision.
|
|
135
|
+
- `lobReadOnly` (0.20.4) is a defense-in-depth client-side guard, not an absolute one — see `library-integration-guide.md` for exactly what it does and does not protect against.
|
|
115
136
|
|
|
116
137
|
---
|
|
117
138
|
|