common-header-lib 0.20.4 → 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/index.d.ts CHANGED
@@ -5,6 +5,23 @@ import { DynamicDialogConfig } from 'primeng/dynamicdialog';
5
5
  import * as i7 from '@ngx-translate/core';
6
6
  import { HttpInterceptorFn } from '@angular/common/http';
7
7
 
8
+ /**
9
+ * Holds a reference to <lib-app-header>'s own host element, so this
10
+ * library's dialogs (LOB confirm dialog, General Configuration, Password /
11
+ * View-Password) can be appended there instead of PrimeNG's default of
12
+ * <body> — letting consuming apps target/style the dialogs with a scoped
13
+ * CSS selector, since they stay inside the header's own DOM subtree.
14
+ *
15
+ * Provided at CommonHeaderLibComponent level (not root) so every dialog
16
+ * this library renders can inject it and reach that one instance, and so
17
+ * multiple <lib-app-header> instances on the same page each get their own.
18
+ */
19
+ declare class DialogHostService {
20
+ hostElement: HTMLElement | null;
21
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<DialogHostService, never>;
22
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<DialogHostService>;
23
+ }
24
+
8
25
  declare class ConfirmDialogComponent {
9
26
  header: _angular_core.InputSignal<string>;
10
27
  message: _angular_core.InputSignal<string>;
@@ -16,6 +33,10 @@ declare class ConfirmDialogComponent {
16
33
  styleClass: _angular_core.InputSignal<string>;
17
34
  result: _angular_core.OutputEmitterRef<boolean>;
18
35
  private readonly confirmationService;
36
+ /** Appends the dialog inside <lib-app-header> instead of PrimeNG's default
37
+ * of <body>, so consuming apps can target it with a scoped CSS selector.
38
+ * See DialogHostService. */
39
+ protected readonly dialogHostService: DialogHostService;
19
40
  openConfirmModal(event: Event): void;
20
41
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<ConfirmDialogComponent, never>;
21
42
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<ConfirmDialogComponent, "confirm-dialog", never, { "header": { "alias": "header"; "required": false; "isSignal": true; }; "message": { "alias": "message"; "required": false; "isSignal": true; }; "styleClass": { "alias": "styleClass"; "required": false; "isSignal": true; }; }, { "result": "result"; }, never, never, true, never>;
@@ -136,7 +157,11 @@ declare class AppPanelComponent {
136
157
  private readonly msgService;
137
158
  private readonly destroyRef;
138
159
  private readonly cdRef;
160
+ private readonly document;
139
161
  private readonly popoverRef;
162
+ private readonly popoverContentRef;
163
+ /** The 9-dots trigger button, captured on open so focus can return to it on close. */
164
+ private triggerElement;
140
165
  private readonly APP_PANEL_SKELETON_COUNT;
141
166
  /** List of apps the user is privileged to access. */
142
167
  ListOfUserPrivillegedApp: AppDetails[];
@@ -146,6 +171,34 @@ declare class AppPanelComponent {
146
171
  private readonly APP_CONNECTION_CHECKS;
147
172
  /** Toggles the popover and fetches the app list the first time it opens. */
148
173
  toggle(event: Event): void;
174
+ /** Moves focus to the first app tile. Called on popover open, and again once
175
+ * the app list finishes loading if the popover was opened while it was
176
+ * still showing the skeleton (which has no focusable tiles yet). */
177
+ onPopoverShow(): void;
178
+ /** Returns focus to the 9-dots trigger button on most close paths (Escape,
179
+ * outside click, or selecting an app). Skipped for a forward Tab-out —
180
+ * see onPopoverKeydown's Tab case and skipTriggerFocusOnHide below. */
181
+ onPopoverHide(): void;
182
+ /** Set just before closing via a forward Tab-out (see onPopoverKeydown),
183
+ * so onPopoverHide's normal focus-to-trigger restore is skipped — that
184
+ * path already sent focus to the next element itself. */
185
+ private skipTriggerFocusOnHide;
186
+ /** Grid keyboard navigation for the app tiles, matching the reference
187
+ * acmo-login-page waffle panel: Arrow keys + Home/End move the roving
188
+ * focus between tiles (3-column grid, see .waffle-align).
189
+ * Tab past the last tile continues the user's forward tab traversal to
190
+ * whatever comes after the 9-dots button on the page, instead of looping
191
+ * focus back onto it. Shift+Tab before the first tile returns focus to
192
+ * the 9-dots button itself (the natural "one step back" target). */
193
+ onPopoverKeydown(event: KeyboardEvent): void;
194
+ private focusFirstTile;
195
+ private getFocusableTiles;
196
+ /** Focuses whatever comes immediately after the 9-dots trigger button in
197
+ * the page's natural tab order, continuing the user's forward Tab press
198
+ * instead of looping it back onto the button they just tabbed away from.
199
+ * App tiles are excluded from the candidate list since they're mid-close. */
200
+ private focusNextAfterTrigger;
201
+ private isVisible;
149
202
  /** Fetches the apps assigned to the current user. */
150
203
  private getUserAssignedApp;
151
204
  /** Handles a click on an app tile.
@@ -340,6 +393,8 @@ declare class CommonHeaderLibComponent implements OnInit {
340
393
  appPanelRef: _angular_core.Signal<AppPanelComponent>;
341
394
  readonly headerData: HeaderDataService;
342
395
  readonly lobService: LobService;
396
+ private readonly dialogHostService;
397
+ private readonly elementRef;
343
398
  selectedLOBId: any;
344
399
  isOpenSidePopup: boolean;
345
400
  showUserDetails: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "common-header-lib",
3
- "version": "0.20.4",
3
+ "version": "0.20.6",
4
4
  "peerDependencies": {
5
5
  "@angular/cdk": "^20.2.0",
6
6
  "@angular/common": "^20.3.0",
@@ -14,7 +14,7 @@
14
14
  "Regenerate": "إعادة إنشاء",
15
15
  "Copied": "تم النسخ",
16
16
  "Action": "فعل",
17
- "ArconLearningCenter": "مركز أركون التعليمي",
17
+ "ArconCIResourceCenter": "مركز موارد ARCON CI",
18
18
  "AssetName": "اسم الأصول",
19
19
  "AssetNameFieldValidation": "الرجاء تحديد اسم الأصل",
20
20
  "AssetNamePlaceholder": "حدد اسم الأصل",
@@ -14,7 +14,7 @@
14
14
  "Regenerate": "Neu generieren",
15
15
  "Copied": "Kopiert",
16
16
  "Action": "Aktion",
17
- "ArconLearningCenter": "Arcon Lernzentrum",
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",
@@ -14,7 +14,7 @@
14
14
  "Regenerate": "Regenerate",
15
15
  "Copied": "Copied",
16
16
  "Action": "Action",
17
- "ArconLearningCenter": "Arcon Learning Center",
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": "Successful",
99
+ "Successful": "Success",
100
100
  "Error": "Error",
101
101
  "Warning": "Warning",
102
102
  "Information": "Information",
@@ -14,7 +14,7 @@
14
14
  "Regenerate": "Regenerar",
15
15
  "Copied": "Copiado",
16
16
  "Action": "Acción",
17
- "ArconLearningCenter": "Centro de Aprendizaje Arcon",
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",
@@ -14,7 +14,7 @@
14
14
  "Regenerate": "Régénérer",
15
15
  "Copied": "Copié",
16
16
  "Action": "Action",
17
- "ArconLearningCenter": "Centre d’apprentissage Arcon",
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",
@@ -14,7 +14,7 @@
14
14
  "Regenerate": "पुनः जनरेट करें",
15
15
  "Copied": "कॉपी किया गया",
16
16
  "Action": "क्रिया",
17
- "ArconLearningCenter": "आर्कॉन लर्निंग सेंटर",
17
+ "ArconCIResourceCenter": "आर्कॉन सीआई संसाधन केंद्र",
18
18
  "AssetName": "एसेट नाम",
19
19
  "AssetNameFieldValidation": "कृपया एसेट नाम चुनें",
20
20
  "AssetNamePlaceholder": "एसेट नाम चुनें",
@@ -14,7 +14,7 @@
14
14
  "Regenerate": "再生成",
15
15
  "Copied": "コピーしました",
16
16
  "Action": "アクション",
17
- "ArconLearningCenter": "Arcon学習センター",
17
+ "ArconCIResourceCenter": "ARCON CI リソースセンター",
18
18
  "AssetName": "アセット名",
19
19
  "AssetNameFieldValidation": "アセット名を選択してください",
20
20
  "AssetNamePlaceholder": "アセット名を選択",
@@ -14,7 +14,7 @@
14
14
  "Regenerate": "재생성",
15
15
  "Copied": "복사됨",
16
16
  "Action": "작업",
17
- "ArconLearningCenter": "Arcon 학습 센터",
17
+ "ArconCIResourceCenter": "ARCON CI 리소스 센터",
18
18
  "AssetName": "자산 이름",
19
19
  "AssetNameFieldValidation": "자산 이름을 선택하세요",
20
20
  "AssetNamePlaceholder": "자산 이름 선택",