common-header-lib 0.20.3 → 0.20.5
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 +34 -1
- package/assets/i18n/ar.json +1 -1
- package/assets/i18n/de.json +1 -1
- package/assets/i18n/en.json +2 -2
- package/assets/i18n/es.json +1 -1
- package/assets/i18n/fr.json +1 -1
- package/assets/i18n/hi.json +1 -1
- package/assets/i18n/ja.json +1 -1
- package/assets/i18n/ko.json +1 -1
- package/fesm2022/common-header-lib.mjs +313 -60
- package/fesm2022/common-header-lib.mjs.map +1 -1
- package/index.d.ts +121 -14
- package/package.json +1 -1
- package/src/assets/i18n/ar.json +1 -1
- package/src/assets/i18n/de.json +1 -1
- package/src/assets/i18n/en.json +2 -2
- package/src/assets/i18n/es.json +1 -1
- package/src/assets/i18n/fr.json +1 -1
- package/src/assets/i18n/hi.json +1 -1
- package/src/assets/i18n/ja.json +1 -1
- package/src/assets/i18n/ko.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,38 @@
|
|
|
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.5**
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## What's New
|
|
10
|
+
|
|
11
|
+
### 0.20.5
|
|
12
|
+
|
|
13
|
+
- **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.
|
|
14
|
+
- **Password/View Password dialog border-radius** consolidated to a single rule on the dialog root (`overflow: hidden`), replacing separate top/bottom-corner overrides that could go out of sync.
|
|
15
|
+
- **Toast title**: `Generic_lib.Successful` now reads "Success" in English (other 7 languages unchanged; word choice already matched "Success" there).
|
|
16
|
+
- **Mailbox table**: removed the icon column (mail/flag/lock icons served no function) — table is now 4 columns.
|
|
17
|
+
- **i18n key rename**: `ArconLearningCenter` → `ArconCIResourceCenter`, displayed as "ARCON CI Resource Center" (English) across all 8 language files. The sidebar menu item's icon and click behavior are unchanged — only the label.
|
|
18
|
+
- **9-dots app panel accessibility**: the waffle popover now moves focus to the first app tile on open, traps Tab/Shift+Tab within the tiles while open, and restores focus to the 9-dots button on close.
|
|
19
|
+
- **Mailbox "read" row**: recolored to background `#CCE5FF` with a `#0073EA` left border (previously border-only).
|
|
20
|
+
- **`_mailbox.scss` scoping fix**: `.p-datatable-table` and `.p-paginator-page.p-paginator-page-selected` are now scoped under `.mail-content`, closing a global-leak gap the 0.20.4 dialog-scoping pass did not cover.
|
|
21
|
+
- **Deferred**: `appendTo="body"` for `SidePopupComponent` was requested but held back pending the parent project's specific DOM-placement symptom — no change shipped this release.
|
|
22
|
+
|
|
23
|
+
### 0.20.4
|
|
24
|
+
|
|
25
|
+
- **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:
|
|
26
|
+
- `lib-dialog` — applied to every dialog-family root the library renders (`SidePopupComponent`, `ConfirmDialogComponent`, and the `DialogService` configs for General Configuration / View Password).
|
|
27
|
+
- `lib-ui` — applied to the header's own root and the same dialog roots, covering everything else (selects, inputs, tooltips, etc.).
|
|
28
|
+
- Host applications are unaffected unless they happen to use those exact marker classes themselves.
|
|
29
|
+
- **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.
|
|
30
|
+
- **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.
|
|
31
|
+
- **`SidePopupComponent` / `ConfirmDialogComponent`** each gained an optional `styleClass` input so consumers can layer additional classes onto the underlying `p-dialog`/`p-confirmDialog` root (backward compatible).
|
|
32
|
+
- **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`.
|
|
33
|
+
|
|
34
|
+
### 0.20.3
|
|
35
|
+
|
|
36
|
+
- 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
37
|
|
|
7
38
|
---
|
|
8
39
|
|
|
@@ -69,6 +100,7 @@ These are provided directly on `CommonHeaderLibComponent` (`providers: [HeaderDa
|
|
|
69
100
|
|---|---|---|---|
|
|
70
101
|
| `EnableLOB` | `boolean` | Input | Show/hide the LOB dropdown |
|
|
71
102
|
| `showAllLOB` | `boolean` | Input | Include "All LOBs" option in the list |
|
|
103
|
+
| `lobReadOnly` | `boolean` | Input | *(new in 0.20.4)* Make the LOB dropdown non-interactive without hiding it — see `library-integration-guide.md` |
|
|
72
104
|
| `lobSelected` | `LobSelectedEvent` | Output | Fired when the user confirms a LOB change |
|
|
73
105
|
| `timezoneDetails` | `TimezoneEvent` | Output | Fired when the user saves a timezone |
|
|
74
106
|
| `getBgImage` | `any` | Output | Fired when a background image is configured |
|
|
@@ -112,6 +144,7 @@ Component-specific styles live alongside each component in their own `.component
|
|
|
112
144
|
|
|
113
145
|
- 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
146
|
- 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.
|
|
147
|
+
- `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
148
|
|
|
116
149
|
---
|
|
117
150
|
|
package/assets/i18n/ar.json
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"Regenerate": "إعادة إنشاء",
|
|
15
15
|
"Copied": "تم النسخ",
|
|
16
16
|
"Action": "فعل",
|
|
17
|
-
"
|
|
17
|
+
"ArconCIResourceCenter": "مركز موارد ARCON CI",
|
|
18
18
|
"AssetName": "اسم الأصول",
|
|
19
19
|
"AssetNameFieldValidation": "الرجاء تحديد اسم الأصل",
|
|
20
20
|
"AssetNamePlaceholder": "حدد اسم الأصل",
|
package/assets/i18n/de.json
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"Regenerate": "Neu generieren",
|
|
15
15
|
"Copied": "Kopiert",
|
|
16
16
|
"Action": "Aktion",
|
|
17
|
-
"
|
|
17
|
+
"ArconCIResourceCenter": "ARCON CI-Ressourcenzentrum",
|
|
18
18
|
"AssetName": "Asset-Name",
|
|
19
19
|
"AssetNameFieldValidation": "Bitte Asset-Namen auswählen",
|
|
20
20
|
"AssetNamePlaceholder": "Asset-Namen auswählen",
|
package/assets/i18n/en.json
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"Regenerate": "Regenerate",
|
|
15
15
|
"Copied": "Copied",
|
|
16
16
|
"Action": "Action",
|
|
17
|
-
"
|
|
17
|
+
"ArconCIResourceCenter": "ARCON CI Resource Center",
|
|
18
18
|
"AssetName": "Asset Name",
|
|
19
19
|
"AssetNameFieldValidation": "Please Select Asset Name",
|
|
20
20
|
"AssetNamePlaceholder": "Select Asset Name",
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"RequiredField": "Required field",
|
|
97
97
|
"LandingPageValidation": "Please Select Application Name",
|
|
98
98
|
"SettingInvalidLobIdMsg": "The LOB you are trying to set is not available.",
|
|
99
|
-
"Successful": "
|
|
99
|
+
"Successful": "Success",
|
|
100
100
|
"Error": "Error",
|
|
101
101
|
"Warning": "Warning",
|
|
102
102
|
"Information": "Information",
|
package/assets/i18n/es.json
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"Regenerate": "Regenerar",
|
|
15
15
|
"Copied": "Copiado",
|
|
16
16
|
"Action": "Acción",
|
|
17
|
-
"
|
|
17
|
+
"ArconCIResourceCenter": "Centro de Recursos ARCON CI",
|
|
18
18
|
"AssetName": "Nombre del activo",
|
|
19
19
|
"AssetNameFieldValidation": "Por favor seleccione el nombre del activo",
|
|
20
20
|
"AssetNamePlaceholder": "Seleccione el nombre del activo",
|
package/assets/i18n/fr.json
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"Regenerate": "Régénérer",
|
|
15
15
|
"Copied": "Copié",
|
|
16
16
|
"Action": "Action",
|
|
17
|
-
"
|
|
17
|
+
"ArconCIResourceCenter": "Centre de ressources ARCON CI",
|
|
18
18
|
"AssetName": "Nom de l’actif",
|
|
19
19
|
"AssetNameFieldValidation": "Veuillez sélectionner le nom de l’actif",
|
|
20
20
|
"AssetNamePlaceholder": "Sélectionnez le nom de l’actif",
|
package/assets/i18n/hi.json
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"Regenerate": "पुनः जनरेट करें",
|
|
15
15
|
"Copied": "कॉपी किया गया",
|
|
16
16
|
"Action": "क्रिया",
|
|
17
|
-
"
|
|
17
|
+
"ArconCIResourceCenter": "आर्कॉन सीआई संसाधन केंद्र",
|
|
18
18
|
"AssetName": "एसेट नाम",
|
|
19
19
|
"AssetNameFieldValidation": "कृपया एसेट नाम चुनें",
|
|
20
20
|
"AssetNamePlaceholder": "एसेट नाम चुनें",
|
package/assets/i18n/ja.json
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"Regenerate": "再生成",
|
|
15
15
|
"Copied": "コピーしました",
|
|
16
16
|
"Action": "アクション",
|
|
17
|
-
"
|
|
17
|
+
"ArconCIResourceCenter": "ARCON CI リソースセンター",
|
|
18
18
|
"AssetName": "アセット名",
|
|
19
19
|
"AssetNameFieldValidation": "アセット名を選択してください",
|
|
20
20
|
"AssetNamePlaceholder": "アセット名を選択",
|
package/assets/i18n/ko.json
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"Regenerate": "재생성",
|
|
15
15
|
"Copied": "복사됨",
|
|
16
16
|
"Action": "작업",
|
|
17
|
-
"
|
|
17
|
+
"ArconCIResourceCenter": "ARCON CI 리소스 센터",
|
|
18
18
|
"AssetName": "자산 이름",
|
|
19
19
|
"AssetNameFieldValidation": "자산 이름을 선택하세요",
|
|
20
20
|
"AssetNamePlaceholder": "자산 이름 선택",
|