@memberjunction/ng-explorer-core 6.1.4 → 6.2.0-edge.1
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/dist/app-routing.module.d.ts +23 -1
- package/dist/app-routing.module.d.ts.map +1 -1
- package/dist/app-routing.module.js +73 -17
- package/dist/app-routing.module.js.map +1 -1
- package/dist/generated/lazy-feature-config.d.ts +1 -1
- package/dist/generated/lazy-feature-config.d.ts.map +1 -1
- package/dist/generated/lazy-feature-config.js +1 -8
- package/dist/generated/lazy-feature-config.js.map +1 -1
- package/dist/lib/command-palette/command-palette.component.d.ts +7 -1
- package/dist/lib/command-palette/command-palette.component.d.ts.map +1 -1
- package/dist/lib/command-palette/command-palette.component.js +28 -14
- package/dist/lib/command-palette/command-palette.component.js.map +1 -1
- package/dist/lib/conversation-feedback/conversation-feedback.d.ts +103 -13
- package/dist/lib/conversation-feedback/conversation-feedback.d.ts.map +1 -1
- package/dist/lib/conversation-feedback/conversation-feedback.js +219 -67
- package/dist/lib/conversation-feedback/conversation-feedback.js.map +1 -1
- package/dist/lib/dashboard-preferences-dialog/dashboard-preferences-dialog.component.d.ts +64 -10
- package/dist/lib/dashboard-preferences-dialog/dashboard-preferences-dialog.component.d.ts.map +1 -1
- package/dist/lib/dashboard-preferences-dialog/dashboard-preferences-dialog.component.js +172 -66
- package/dist/lib/dashboard-preferences-dialog/dashboard-preferences-dialog.component.js.map +1 -1
- package/dist/lib/generic/resource-container-component.d.ts +19 -5
- package/dist/lib/generic/resource-container-component.d.ts.map +1 -1
- package/dist/lib/generic/resource-container-component.js +43 -13
- package/dist/lib/generic/resource-container-component.js.map +1 -1
- package/dist/lib/guards/entities.guard.d.ts +4 -0
- package/dist/lib/guards/entities.guard.d.ts.map +1 -1
- package/dist/lib/guards/entities.guard.js +10 -2
- package/dist/lib/guards/entities.guard.js.map +1 -1
- package/dist/lib/identity-claims/claim-redeem.component.d.ts +4 -0
- package/dist/lib/identity-claims/claim-redeem.component.d.ts.map +1 -1
- package/dist/lib/identity-claims/claim-redeem.component.js +10 -2
- package/dist/lib/identity-claims/claim-redeem.component.js.map +1 -1
- package/dist/lib/oauth/oauth-callback.component.d.ts +4 -0
- package/dist/lib/oauth/oauth-callback.component.d.ts.map +1 -1
- package/dist/lib/oauth/oauth-callback.component.js +10 -2
- package/dist/lib/oauth/oauth-callback.component.js.map +1 -1
- package/dist/lib/profile/profile-dialog.component.d.ts.map +1 -1
- package/dist/lib/profile/profile-dialog.component.js +194 -191
- package/dist/lib/profile/profile-dialog.component.js.map +1 -1
- package/dist/lib/resource-wrappers/artifact-resource.component.d.ts +20 -2
- package/dist/lib/resource-wrappers/artifact-resource.component.d.ts.map +1 -1
- package/dist/lib/resource-wrappers/artifact-resource.component.js +33 -9
- package/dist/lib/resource-wrappers/artifact-resource.component.js.map +1 -1
- package/dist/lib/resource-wrappers/chat-collections-resource.component.d.ts +80 -10
- package/dist/lib/resource-wrappers/chat-collections-resource.component.d.ts.map +1 -1
- package/dist/lib/resource-wrappers/chat-collections-resource.component.js +168 -56
- package/dist/lib/resource-wrappers/chat-collections-resource.component.js.map +1 -1
- package/dist/lib/resource-wrappers/chat-conversations-resource.component.d.ts +186 -23
- package/dist/lib/resource-wrappers/chat-conversations-resource.component.d.ts.map +1 -1
- package/dist/lib/resource-wrappers/chat-conversations-resource.component.js +500 -177
- package/dist/lib/resource-wrappers/chat-conversations-resource.component.js.map +1 -1
- package/dist/lib/resource-wrappers/chat-deeplink-params.d.ts +2 -0
- package/dist/lib/resource-wrappers/chat-deeplink-params.d.ts.map +1 -1
- package/dist/lib/resource-wrappers/chat-deeplink-params.js +5 -1
- package/dist/lib/resource-wrappers/chat-deeplink-params.js.map +1 -1
- package/dist/lib/resource-wrappers/chat-search-routing.d.ts +25 -0
- package/dist/lib/resource-wrappers/chat-search-routing.d.ts.map +1 -0
- package/dist/lib/resource-wrappers/chat-search-routing.js +24 -0
- package/dist/lib/resource-wrappers/chat-search-routing.js.map +1 -0
- package/dist/lib/resource-wrappers/chat-tasks-resource.component.d.ts +14 -2
- package/dist/lib/resource-wrappers/chat-tasks-resource.component.d.ts.map +1 -1
- package/dist/lib/resource-wrappers/chat-tasks-resource.component.js +32 -8
- package/dist/lib/resource-wrappers/chat-tasks-resource.component.js.map +1 -1
- package/dist/lib/resource-wrappers/dashboard-resource.component.d.ts +54 -8
- package/dist/lib/resource-wrappers/dashboard-resource.component.d.ts.map +1 -1
- package/dist/lib/resource-wrappers/dashboard-resource.component.js +138 -46
- package/dist/lib/resource-wrappers/dashboard-resource.component.js.map +1 -1
- package/dist/lib/resource-wrappers/livekit-room-resource.component.d.ts +223 -30
- package/dist/lib/resource-wrappers/livekit-room-resource.component.d.ts.map +1 -1
- package/dist/lib/resource-wrappers/livekit-room-resource.component.js +438 -118
- package/dist/lib/resource-wrappers/livekit-room-resource.component.js.map +1 -1
- package/dist/lib/resource-wrappers/search-results-resource.component.d.ts +7 -3
- package/dist/lib/resource-wrappers/search-results-resource.component.d.ts.map +1 -1
- package/dist/lib/resource-wrappers/search-results-resource.component.js +23 -15
- package/dist/lib/resource-wrappers/search-results-resource.component.js.map +1 -1
- package/dist/lib/resource-wrappers/view-resource.component.d.ts +68 -10
- package/dist/lib/resource-wrappers/view-resource.component.d.ts.map +1 -1
- package/dist/lib/resource-wrappers/view-resource.component.js +178 -62
- package/dist/lib/resource-wrappers/view-resource.component.js.map +1 -1
- package/dist/lib/services/startup-validation.service.d.ts +4 -0
- package/dist/lib/services/startup-validation.service.d.ts.map +1 -1
- package/dist/lib/services/startup-validation.service.js +10 -2
- package/dist/lib/services/startup-validation.service.js.map +1 -1
- package/dist/lib/services/system-validation.service.d.ts +13 -1
- package/dist/lib/services/system-validation.service.d.ts.map +1 -1
- package/dist/lib/services/system-validation.service.js +29 -5
- package/dist/lib/services/system-validation.service.js.map +1 -1
- package/dist/lib/shell/components/dialogs/app-access-dialog.component.d.ts +54 -4
- package/dist/lib/shell/components/dialogs/app-access-dialog.component.d.ts.map +1 -1
- package/dist/lib/shell/components/dialogs/app-access-dialog.component.js +130 -40
- package/dist/lib/shell/components/dialogs/app-access-dialog.component.js.map +1 -1
- package/dist/lib/shell/components/header/app-nav.component.d.ts +29 -1
- package/dist/lib/shell/components/header/app-nav.component.d.ts.map +1 -1
- package/dist/lib/shell/components/header/app-nav.component.js +56 -12
- package/dist/lib/shell/components/header/app-nav.component.js.map +1 -1
- package/dist/lib/shell/components/header/app-switcher.component.d.ts +33 -5
- package/dist/lib/shell/components/header/app-switcher.component.d.ts.map +1 -1
- package/dist/lib/shell/components/header/app-switcher.component.js +85 -29
- package/dist/lib/shell/components/header/app-switcher.component.js.map +1 -1
- package/dist/lib/shell/components/record-open/record-origin-crumb.component.d.ts +7 -1
- package/dist/lib/shell/components/record-open/record-origin-crumb.component.d.ts.map +1 -1
- package/dist/lib/shell/components/record-open/record-origin-crumb.component.js +63 -9
- package/dist/lib/shell/components/record-open/record-origin-crumb.component.js.map +1 -1
- package/dist/lib/shell/components/tabs/component-cache-manager.d.ts +30 -1
- package/dist/lib/shell/components/tabs/component-cache-manager.d.ts.map +1 -1
- package/dist/lib/shell/components/tabs/component-cache-manager.js +63 -15
- package/dist/lib/shell/components/tabs/component-cache-manager.js.map +1 -1
- package/dist/lib/shell/components/tabs/tab-container.component.d.ts +99 -9
- package/dist/lib/shell/components/tabs/tab-container.component.d.ts.map +1 -1
- package/dist/lib/shell/components/tabs/tab-container.component.js +310 -110
- package/dist/lib/shell/components/tabs/tab-container.component.js.map +1 -1
- package/dist/lib/shell/loading-themes.d.ts +16 -12
- package/dist/lib/shell/loading-themes.d.ts.map +1 -1
- package/dist/lib/shell/loading-themes.js +145 -137
- package/dist/lib/shell/loading-themes.js.map +1 -1
- package/dist/lib/shell/readiness-beacon.d.ts +24 -0
- package/dist/lib/shell/readiness-beacon.d.ts.map +1 -0
- package/dist/lib/shell/readiness-beacon.js +40 -0
- package/dist/lib/shell/readiness-beacon.js.map +1 -0
- package/dist/lib/shell/services/about-dialog.service.d.ts +6 -0
- package/dist/lib/shell/services/about-dialog.service.d.ts.map +1 -1
- package/dist/lib/shell/services/about-dialog.service.js +16 -4
- package/dist/lib/shell/services/about-dialog.service.js.map +1 -1
- package/dist/lib/shell/services/profile-dialog.service.d.ts +6 -0
- package/dist/lib/shell/services/profile-dialog.service.d.ts.map +1 -1
- package/dist/lib/shell/services/profile-dialog.service.js +16 -4
- package/dist/lib/shell/services/profile-dialog.service.js.map +1 -1
- package/dist/lib/shell/services/user-sharing-center-dialog.service.d.ts +6 -0
- package/dist/lib/shell/services/user-sharing-center-dialog.service.d.ts.map +1 -1
- package/dist/lib/shell/services/user-sharing-center-dialog.service.js +15 -3
- package/dist/lib/shell/services/user-sharing-center-dialog.service.js.map +1 -1
- package/dist/lib/shell/shell.component.d.ts +275 -40
- package/dist/lib/shell/shell.component.d.ts.map +1 -1
- package/dist/lib/shell/shell.component.js +704 -290
- package/dist/lib/shell/shell.component.js.map +1 -1
- package/dist/lib/single-dashboard/Components/add-item/add-item.component.d.ts +64 -8
- package/dist/lib/single-dashboard/Components/add-item/add-item.component.d.ts.map +1 -1
- package/dist/lib/single-dashboard/Components/add-item/add-item.component.js +129 -37
- package/dist/lib/single-dashboard/Components/add-item/add-item.component.js.map +1 -1
- package/dist/lib/single-dashboard/Components/delete-item/delete-item.component.d.ts +26 -2
- package/dist/lib/single-dashboard/Components/delete-item/delete-item.component.d.ts.map +1 -1
- package/dist/lib/single-dashboard/Components/delete-item/delete-item.component.js +48 -10
- package/dist/lib/single-dashboard/Components/delete-item/delete-item.component.js.map +1 -1
- package/dist/lib/single-dashboard/Components/edit-dashboard/edit-dashboard.component.d.ts +84 -6
- package/dist/lib/single-dashboard/Components/edit-dashboard/edit-dashboard.component.d.ts.map +1 -1
- package/dist/lib/single-dashboard/Components/edit-dashboard/edit-dashboard.component.js +133 -29
- package/dist/lib/single-dashboard/Components/edit-dashboard/edit-dashboard.component.js.map +1 -1
- package/dist/lib/single-dashboard/single-dashboard.component.d.ts +173 -23
- package/dist/lib/single-dashboard/single-dashboard.component.d.ts.map +1 -1
- package/dist/lib/single-dashboard/single-dashboard.component.js +383 -109
- package/dist/lib/single-dashboard/single-dashboard.component.js.map +1 -1
- package/dist/lib/single-list-detail/single-list-detail.component.d.ts +383 -55
- package/dist/lib/single-list-detail/single-list-detail.component.d.ts.map +1 -1
- package/dist/lib/single-list-detail/single-list-detail.component.js +962 -326
- package/dist/lib/single-list-detail/single-list-detail.component.js.map +1 -1
- package/dist/lib/single-query/single-query.component.d.ts +22 -2
- package/dist/lib/single-query/single-query.component.d.ts.map +1 -1
- package/dist/lib/single-query/single-query.component.js +40 -10
- package/dist/lib/single-query/single-query.component.js.map +1 -1
- package/dist/lib/single-record/single-record.component.d.ts +41 -3
- package/dist/lib/single-record/single-record.component.d.ts.map +1 -1
- package/dist/lib/single-record/single-record.component.js +71 -11
- package/dist/lib/single-record/single-record.component.js.map +1 -1
- package/dist/lib/single-search-result/single-search-result.component.d.ts +23 -3
- package/dist/lib/single-search-result/single-search-result.component.d.ts.map +1 -1
- package/dist/lib/single-search-result/single-search-result.component.js +42 -12
- package/dist/lib/single-search-result/single-search-result.component.js.map +1 -1
- package/dist/lib/system-validation/system-validation-banner.component.d.ts +12 -2
- package/dist/lib/system-validation/system-validation-banner.component.d.ts.map +1 -1
- package/dist/lib/system-validation/system-validation-banner.component.js +25 -5
- package/dist/lib/system-validation/system-validation-banner.component.js.map +1 -1
- package/dist/lib/user-menu/user-menu.types.d.ts +4 -0
- package/dist/lib/user-menu/user-menu.types.d.ts.map +1 -1
- package/dist/lib/user-menu/user-menu.types.js +10 -2
- package/dist/lib/user-menu/user-menu.types.js.map +1 -1
- package/dist/lib/user-notifications/user-notifications.component.d.ts +59 -7
- package/dist/lib/user-notifications/user-notifications.component.d.ts.map +1 -1
- package/dist/lib/user-notifications/user-notifications.component.js +151 -47
- package/dist/lib/user-notifications/user-notifications.component.js.map +1 -1
- package/dist/lib/user-profile/user-profile.component.d.ts +3 -2
- package/dist/lib/user-profile/user-profile.component.d.ts.map +1 -1
- package/dist/lib/user-profile/user-profile.component.js +5 -4
- package/dist/lib/user-profile/user-profile.component.js.map +1 -1
- package/package.json +52 -52
|
@@ -197,8 +197,24 @@ export class AppNavComponent {
|
|
|
197
197
|
navListRef;
|
|
198
198
|
moreBtnRef;
|
|
199
199
|
trailingSlotRef;
|
|
200
|
-
|
|
201
|
-
|
|
200
|
+
NavItemClick = new EventEmitter();
|
|
201
|
+
/**
|
|
202
|
+
* @deprecated Use {@link NavItemClick}.
|
|
203
|
+
*
|
|
204
|
+
* The same emitter under the old binding name, so a template still binding
|
|
205
|
+
* (navItemClick) keeps working. Must stay AFTER NavItemClick: class fields
|
|
206
|
+
* initialise in order, and the other way round this captures undefined.
|
|
207
|
+
*/
|
|
208
|
+
navItemClick = this.NavItemClick;
|
|
209
|
+
NavItemDismiss = new EventEmitter();
|
|
210
|
+
/**
|
|
211
|
+
* @deprecated Use {@link NavItemDismiss}.
|
|
212
|
+
*
|
|
213
|
+
* The same emitter under the old binding name, so a template still binding
|
|
214
|
+
* (navItemDismiss) keeps working. Must stay AFTER NavItemDismiss: class fields
|
|
215
|
+
* initialise in order, and the other way round this captures undefined.
|
|
216
|
+
*/
|
|
217
|
+
navItemDismiss = this.NavItemDismiss;
|
|
202
218
|
/**
|
|
203
219
|
* Disable the priority+ overflow behavior. Used by the mobile drawer instance,
|
|
204
220
|
* where items stack vertically and can never overflow horizontally.
|
|
@@ -452,7 +468,7 @@ export class AppNavComponent {
|
|
|
452
468
|
}
|
|
453
469
|
/** True when any overflowed item is the active one (More button shows active tint) */
|
|
454
470
|
get OverflowHasActive() {
|
|
455
|
-
return this.OverflowItems.some(item => this.
|
|
471
|
+
return this.OverflowItems.some(item => this.IsActive(item));
|
|
456
472
|
}
|
|
457
473
|
/** Open/close the More dropdown, anchoring it under the More button and clamping it inside the host */
|
|
458
474
|
ToggleMore(event) {
|
|
@@ -522,9 +538,13 @@ export class AppNavComponent {
|
|
|
522
538
|
/**
|
|
523
539
|
* Check if a nav item is dynamic (generated from recent orphan resources)
|
|
524
540
|
*/
|
|
525
|
-
|
|
541
|
+
IsDynamic(item) {
|
|
526
542
|
return item.isDynamic === true;
|
|
527
543
|
}
|
|
544
|
+
/** @deprecated Use {@link IsDynamic}. */
|
|
545
|
+
isDynamic(item) {
|
|
546
|
+
return this.IsDynamic(item);
|
|
547
|
+
}
|
|
528
548
|
/**
|
|
529
549
|
* Compute if nav item is active based on active tab
|
|
530
550
|
*/
|
|
@@ -556,38 +576,54 @@ export class AppNavComponent {
|
|
|
556
576
|
/**
|
|
557
577
|
* Get cached navigation items (no computation in getter)
|
|
558
578
|
*/
|
|
559
|
-
get
|
|
579
|
+
get NavItems() {
|
|
560
580
|
return this._cachedNavItems;
|
|
561
581
|
}
|
|
582
|
+
/** @deprecated Use {@link NavItems}. */
|
|
583
|
+
get navItems() {
|
|
584
|
+
return this.NavItems;
|
|
585
|
+
}
|
|
562
586
|
/**
|
|
563
587
|
* Check if nav item is active (uses cached state from Map)
|
|
564
588
|
*/
|
|
565
|
-
|
|
589
|
+
IsActive(item) {
|
|
566
590
|
const key = this.getItemKey(item);
|
|
567
591
|
return this.activeStateMap.get(key) || false;
|
|
568
592
|
}
|
|
593
|
+
/** @deprecated Use {@link IsActive}. */
|
|
594
|
+
isActive(item) {
|
|
595
|
+
return this.IsActive(item);
|
|
596
|
+
}
|
|
569
597
|
/**
|
|
570
598
|
* Track function for @for to optimize rendering
|
|
571
599
|
*/
|
|
572
|
-
|
|
600
|
+
TrackByNavItem(_index, item) {
|
|
573
601
|
return this.getItemKey(item);
|
|
574
602
|
}
|
|
603
|
+
/** @deprecated Use {@link TrackByNavItem}. */
|
|
604
|
+
trackByNavItem(_index, item) {
|
|
605
|
+
return this.TrackByNavItem(_index, item);
|
|
606
|
+
}
|
|
575
607
|
/**
|
|
576
608
|
* Handle nav item click
|
|
577
609
|
*/
|
|
578
|
-
|
|
610
|
+
OnNavClick(item, event) {
|
|
579
611
|
this.MoreOpen = false;
|
|
580
|
-
this.
|
|
612
|
+
this.NavItemClick.emit({
|
|
581
613
|
item,
|
|
582
614
|
shiftKey: event?.shiftKey || false
|
|
583
615
|
});
|
|
584
616
|
}
|
|
617
|
+
/** @deprecated Use {@link OnNavClick}. */
|
|
618
|
+
onNavClick(item, event) {
|
|
619
|
+
return this.OnNavClick(item, event);
|
|
620
|
+
}
|
|
585
621
|
/**
|
|
586
622
|
* Handle dismiss click on a dynamic nav item.
|
|
587
623
|
* Removes from the app's recent stack and refreshes nav items immediately.
|
|
588
624
|
* Stops propagation so the nav click handler doesn't fire.
|
|
589
625
|
*/
|
|
590
|
-
|
|
626
|
+
OnDismiss(item, event) {
|
|
591
627
|
event.stopPropagation();
|
|
592
628
|
// Remove from the app's recent stack directly so we can refresh immediately
|
|
593
629
|
if (this._app) {
|
|
@@ -597,7 +633,11 @@ export class AppNavComponent {
|
|
|
597
633
|
this.updateCachedData();
|
|
598
634
|
}
|
|
599
635
|
}
|
|
600
|
-
this.
|
|
636
|
+
this.NavItemDismiss.emit(item);
|
|
637
|
+
}
|
|
638
|
+
/** @deprecated Use {@link OnDismiss}. */
|
|
639
|
+
onDismiss(item, event) {
|
|
640
|
+
return this.OnDismiss(item, event);
|
|
601
641
|
}
|
|
602
642
|
static ɵfac = function AppNavComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || AppNavComponent)(i0.ɵɵdirectiveInject(i1.WorkspaceStateManager), i0.ɵɵdirectiveInject(i2.SharedService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i0.ElementRef)); };
|
|
603
643
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AppNavComponent, selectors: [["mj-app-nav"]], viewQuery: function AppNavComponent_Query(rf, ctx) { if (rf & 1) {
|
|
@@ -609,7 +649,7 @@ export class AppNavComponent {
|
|
|
609
649
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.trailingSlotRef = _t.first);
|
|
610
650
|
} }, hostBindings: function AppNavComponent_HostBindings(rf, ctx) { if (rf & 1) {
|
|
611
651
|
i0.ɵɵlistener("click", function AppNavComponent_click_HostBindingHandler($event) { return ctx.onDocumentClick($event); }, i0.ɵɵresolveDocument)("keydown.escape", function AppNavComponent_keydown_escape_HostBindingHandler() { return ctx.onEscape(); }, i0.ɵɵresolveDocument);
|
|
612
|
-
} }, inputs: { OverflowEnabled: "OverflowEnabled", app: "app" }, outputs: { navItemClick: "navItemClick", navItemDismiss: "navItemDismiss" }, standalone: false, ngContentSelectors: _c3, decls: 10, vars: 5, consts: [["navList", ""], ["trailingSlot", ""], ["moreBtn", ""], [1, "nav-list"], ["aria-hidden", "true", 1, "nav-skeleton"], ["role", "link", 1, "nav-item", 3, "mjClickable", "testId", "active", "dynamic", "no-icon"], ["mjClickable", "More navigation items", "testId", "nav-more-btn", 1, "nav-item", "nav-more-btn", 3, "active"], [1, "nav-trailing"], [1, "nav-more-dropdown", 3, "left"], [1, "nav-skeleton-pill", 2, "width", "88px"], [1, "nav-skeleton-pill", 2, "width", "72px"], [1, "nav-skeleton-pill", 2, "width", "96px"], ["role", "link", 1, "nav-item", 3, "click", "mjClickable", "testId"], [3, "class"], [1, "badge"], ["title", "Remove", 1, "dismiss-btn"], ["title", "Remove", 1, "dismiss-btn", 3, "click"], [1, "fa-solid", "fa-xmark"], ["mjClickable", "More navigation items", "testId", "nav-more-btn", 1, "nav-item", "nav-more-btn", 3, "click"], [1, "fa-solid", "fa-ellipsis"], [1, "more-count"], [1, "nav-more-dropdown"], ["role", "link", 1, "nav-more-item", 3, "mjClickable", "testId", "active", "dynamic"], ["role", "link", 1, "nav-more-item", 3, "click", "mjClickable", "testId"], [1, "more-item-label"]], template: function AppNavComponent_Template(rf, ctx) { if (rf & 1) {
|
|
652
|
+
} }, inputs: { OverflowEnabled: "OverflowEnabled", app: "app" }, outputs: { NavItemClick: "NavItemClick", navItemClick: "navItemClick", NavItemDismiss: "NavItemDismiss", navItemDismiss: "navItemDismiss" }, standalone: false, ngContentSelectors: _c3, decls: 10, vars: 5, consts: [["navList", ""], ["trailingSlot", ""], ["moreBtn", ""], [1, "nav-list"], ["aria-hidden", "true", 1, "nav-skeleton"], ["role", "link", 1, "nav-item", 3, "mjClickable", "testId", "active", "dynamic", "no-icon"], ["mjClickable", "More navigation items", "testId", "nav-more-btn", 1, "nav-item", "nav-more-btn", 3, "active"], [1, "nav-trailing"], [1, "nav-more-dropdown", 3, "left"], [1, "nav-skeleton-pill", 2, "width", "88px"], [1, "nav-skeleton-pill", 2, "width", "72px"], [1, "nav-skeleton-pill", 2, "width", "96px"], ["role", "link", 1, "nav-item", 3, "click", "mjClickable", "testId"], [3, "class"], [1, "badge"], ["title", "Remove", 1, "dismiss-btn"], ["title", "Remove", 1, "dismiss-btn", 3, "click"], [1, "fa-solid", "fa-xmark"], ["mjClickable", "More navigation items", "testId", "nav-more-btn", 1, "nav-item", "nav-more-btn", 3, "click"], [1, "fa-solid", "fa-ellipsis"], [1, "more-count"], [1, "nav-more-dropdown"], ["role", "link", 1, "nav-more-item", 3, "mjClickable", "testId", "active", "dynamic"], ["role", "link", 1, "nav-more-item", 3, "click", "mjClickable", "testId"], [1, "more-item-label"]], template: function AppNavComponent_Template(rf, ctx) { if (rf & 1) {
|
|
613
653
|
i0.ɵɵprojectionDef();
|
|
614
654
|
i0.ɵɵelementStart(0, "nav", 3, 0);
|
|
615
655
|
i0.ɵɵconditionalCreate(2, AppNavComponent_Conditional_2_Template, 4, 0, "div", 4);
|
|
@@ -643,8 +683,12 @@ export class AppNavComponent {
|
|
|
643
683
|
}], trailingSlotRef: [{
|
|
644
684
|
type: ViewChild,
|
|
645
685
|
args: ['trailingSlot']
|
|
686
|
+
}], NavItemClick: [{
|
|
687
|
+
type: Output
|
|
646
688
|
}], navItemClick: [{
|
|
647
689
|
type: Output
|
|
690
|
+
}], NavItemDismiss: [{
|
|
691
|
+
type: Output
|
|
648
692
|
}], navItemDismiss: [{
|
|
649
693
|
type: Output
|
|
650
694
|
}], OverflowEnabled: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-nav.component.js","sourceRoot":"","sources":["../../../../../src/lib/shell/components/header/app-nav.component.ts","../../../../../src/lib/shell/components/header/app-nav.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,EAAuD,uBAAuB,EAAc,SAAS,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAG1L,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;;;;;;;;;;ICAtC,8BAA6C;IAG3C,AADA,AADA,0BAA2D,eACA,eACA;IAC7D,iBAAM;;;IAcF,oBAA2B;;;IAAxB,2BAAmB;;;IAItB,gCAAoB;IAAA,YAAgB;IAAA,iBAAO;;;IAAvB,cAAgB;IAAhB,mCAAgB;;;;IAGpC,kCAA6E;IAAlC,6OAAS,iCAAuB,KAAC;IAC1E,wBAAiC;IACnC,iBAAS;;;;IApBb,+BASqC;IAAnC,wMAAS,kCAAwB,KAAC;IAClC,sFAAiB;IAGjB,4BAAM;IAAA,YAAgB;IAAA,iBAAO;IAC7B,yFAAkB;IAGlB,2FAAuB;IAKzB,iBAAM;;;;IAdJ,AADA,AADA,kDAA+B,sCACE,0BACL;IAJ5B,AAFA,2CAA0B,uCAES;;IAMnC,cAEC;IAFD,uCAEC;IACK,eAAgB;IAAhB,mCAAgB;IACtB,cAEC;IAFD,wCAEC;IACD,cAIC;IAJD,oDAIC;;;;IAIH,kCAQ+B;IAA7B,sLAAS,yBAAkB,KAAC;IAC5B,wBAAoC;IACpC,4BAAM;IAAA,oBAAI;IAAA,iBAAO;IACjB,gCAAyB;IAAA,YAA0B;IACrD,AADqD,iBAAO,EACtD;;;IALJ,kDAAkC;;IAIT,eAA0B;IAA1B,iDAA0B;;;IA4B/C,oBAA2B;;;IAAxB,2BAAmB;;;IAItB,gC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B,MAAM;;kBACN,MAAM;;kBAMN,KAAK;;kBAqBL,KAAK;;kBA6RL,YAAY;mBAAC,gBAAgB,EAAE,CAAC,QAAQ,CAAC;;kBASzC,YAAY;mBAAC,yBAAyB;;kFAtX5B,eAAe","sourcesContent":["import { Component, Input, Output, EventEmitter, OnInit, OnDestroy, AfterViewInit, ChangeDetectorRef, ChangeDetectionStrategy, ElementRef, ViewChild, HostListener } from '@angular/core';\nimport { BaseApplication, DynamicNavItem, NavItem, WorkspaceStateManager, WorkspaceConfiguration } from '@memberjunction/ng-base-application';\nimport { SharedService } from '@memberjunction/ng-shared';\nimport { Subject, takeUntil } from 'rxjs';\n\n/**\n * Event emitted when a nav item is clicked\n */\nexport interface NavItemClickEvent {\n item: NavItem;\n shiftKey: boolean;\n}\n\n/**\n * Horizontal navigation items for the current app.\n * Uses OnPush change detection and reactive state management for optimal performance.\n *\n * Overflow behavior (priority+ pattern): when the header can't fit every nav item,\n * trailing items collapse into a \"More\" dropdown instead of squeezing the header's\n * action cluster off-screen. Item widths are measured once per nav-items change\n * (all items render for one frame, widths are cached), then every resize recomputes\n * the fit from the cache — no re-measure, no layout thrash.\n */\n@Component({\n standalone: false,\n selector: 'mj-app-nav',\n templateUrl: './app-nav.component.html',\n styleUrls: ['./app-nav.component.css'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class AppNavComponent implements OnInit, OnDestroy, AfterViewInit {\n private destroy$ = new Subject<void>();\n private _app: BaseApplication | null = null;\n private _cachedNavItems: NavItem[] = [];\n private _servicesInjected = false;\n\n /**\n * Monotonically increasing counter used to detect and discard stale async results.\n *\n * Because GetNavItems() is async (HomeApplication does a DB lookup for record names),\n * and RxJS subscribe() does NOT serialize async callbacks, multiple calls to\n * updateCachedData() can overlap. Without this guard, a slow call (e.g., Home app\n * doing a DB lookup) that started BEFORE a fast call (e.g., switching to App B)\n * could resolve AFTER the fast call and overwrite the correct nav items with stale ones.\n *\n * How it works:\n * 1. Each updateCachedData() call increments this counter and captures it as `gen`\n * 2. After the await, it checks: does `gen` still match `_updateGeneration`?\n * 3. If not, a newer call started while we were waiting — discard our stale results\n */\n private _updateGeneration = 0;\n\n // Map of nav item key (Route or Label) to active state\n private activeStateMap = new Map<string, boolean>();\n\n // ---- Overflow (priority+) state ----\n /** Cached natural pixel width of each nav item, parallel to navItems order */\n private itemWidths: number[] = [];\n /** Measured width of the More button (fallback used until first render) */\n private moreBtnWidth = 120;\n /** Left offset (px, relative to host) where the More dropdown anchors */\n public MoreDropdownLeft = 0;\n /** True when even one item + More can't fit — the lone visible pill\n * shrinks with an ellipsis instead of clipping the More button. */\n public Tight = false;\n /** Flex gap between nav items — measured from the rendered row (falls back\n * to --mj-space-1's default of 4px until first measurement) */\n private itemGap = 4;\n /** How many leading nav items are currently visible inline */\n public VisibleCount = Number.MAX_SAFE_INTEGER;\n /** Whether the More dropdown is open */\n public MoreOpen = false;\n /** True while nav items are being (re)loaded for skeleton display */\n public Loading = false;\n\n private resizeObserver: ResizeObserver | null = null;\n private _overflowEnabled = true;\n\n @ViewChild('navList') private navListRef?: ElementRef<HTMLElement>;\n @ViewChild('moreBtn') private moreBtnRef?: ElementRef<HTMLElement>;\n @ViewChild('trailingSlot') private trailingSlotRef?: ElementRef<HTMLElement>;\n\n @Output() navItemClick = new EventEmitter<NavItemClickEvent>();\n @Output() navItemDismiss = new EventEmitter<NavItem>();\n\n /**\n * Disable the priority+ overflow behavior. Used by the mobile drawer instance,\n * where items stack vertically and can never overflow horizontally.\n */\n @Input()\n set OverflowEnabled(value: boolean) {\n this._overflowEnabled = value;\n if (!value) {\n this.VisibleCount = Number.MAX_SAFE_INTEGER;\n }\n }\n get OverflowEnabled(): boolean {\n return this._overflowEnabled;\n }\n\n constructor(\n private workspaceManager: WorkspaceStateManager,\n private sharedService: SharedService,\n private cdr: ChangeDetectorRef,\n private host: ElementRef<HTMLElement>\n ) {}\n\n /**\n * Input setter for app - triggers cache update when app changes\n */\n @Input()\n set app(value: BaseApplication | null) {\n if (this._app !== value) {\n this._app = value;\n this._cachedNavItems = []; // Clear stale items immediately so previous app's items don't flash\n this.activeStateMap.clear();\n this._servicesInjected = false; // Reset injection flag\n this.Loading = value != null; // Skeleton until GetNavItems resolves\n this.updateCachedData();\n this.cdr.markForCheck();\n }\n }\n\n get app(): BaseApplication | null {\n return this._app;\n }\n\n ngOnInit(): void {\n // Subscribe to workspace configuration changes.\n // Must rebuild nav items (not just active states) because dynamic nav items\n // are generated based on the currently active tab - when a user navigates\n // from one record to another (e.g., via OpenEntityRecord), the active tab\n // changes and the dynamic nav item needs to reflect the new record.\n this.workspaceManager.Configuration\n .pipe(takeUntil(this.destroy$))\n .subscribe(async () => {\n await this.updateCachedData();\n });\n }\n\n ngAfterViewInit(): void {\n if (this._overflowEnabled && typeof ResizeObserver !== 'undefined') {\n this.resizeObserver = new ResizeObserver(() => this.recomputeFit());\n this.resizeObserver.observe(this.host.nativeElement);\n }\n // Widths measured before webfonts arrive are stale (Explorer's Montserrat\n // loads late over the fallback stack) — invalidate the cache once fonts\n // settle so the fit is computed against real glyph metrics.\n if (this._overflowEnabled && typeof document !== 'undefined' && document.fonts?.ready) {\n document.fonts.ready.then(() => {\n this.itemWidths = [];\n this.recomputeFit();\n });\n }\n }\n\n ngOnDestroy(): void {\n this.resizeObserver?.disconnect();\n this.destroy$.next();\n this.destroy$.complete();\n }\n\n /**\n * Update cached nav items and app color when app changes\n */\n private async updateCachedData(): Promise<void> {\n // Capture the current generation before any async work.\n // See _updateGeneration JSDoc for full explanation of the race condition this prevents.\n const gen = ++this._updateGeneration;\n\n if (this._app) {\n // Inject services once for apps that need them (e.g., HomeApplication for dynamic nav items)\n if (!this._servicesInjected) {\n const appWithServices = this._app as BaseApplication & {\n SetWorkspaceManager?: (manager: WorkspaceStateManager) => void;\n SetSharedService?: (service: SharedService) => void;\n };\n\n if (typeof appWithServices.SetWorkspaceManager === 'function') {\n appWithServices.SetWorkspaceManager(this.workspaceManager);\n }\n if (typeof appWithServices.SetSharedService === 'function') {\n appWithServices.SetSharedService(this.sharedService);\n }\n this._servicesInjected = true;\n }\n\n const items = await this._app.GetNavItems() || [];\n\n // If a newer call started while we were awaiting, our results are stale — bail out\n // so we don't overwrite the newer call's (correct) results.\n if (gen !== this._updateGeneration) {\n return;\n }\n\n // Only show items with Status 'Active' or undefined (default to Active)\n this._cachedNavItems = items.filter(item => !item.Status || item.Status === 'Active');\n } else {\n this._cachedNavItems = [];\n }\n\n this.Loading = false;\n\n // Update active states after nav items change\n const config = this.workspaceManager.GetConfiguration();\n this.updateActiveStates(config);\n\n // New item set: show everything for one frame so natural widths can be\n // measured (the row clips, so the temporary full row is invisible),\n // then collapse to fit. Tight mode MUST be off during measurement — its\n // flex-shrink would record squeezed widths and poison the fit arithmetic.\n this.VisibleCount = Number.MAX_SAFE_INTEGER;\n this.MoreOpen = false;\n this.Tight = false;\n this.syncChangeDetection();\n\n if (this._overflowEnabled) {\n requestAnimationFrame(() => {\n this.measureItemWidths();\n this.recomputeFit();\n });\n }\n }\n\n /**\n * Cache the natural width of every nav item. Called in the frame after a new\n * item set renders (all items visible, flex-shrink: 0, so widths are natural\n * even if the row is clipped by overflow: hidden).\n */\n private measureItemWidths(): void {\n const list = this.navListRef?.nativeElement;\n if (!list) {\n return;\n }\n const els = Array.from(list.querySelectorAll<HTMLElement>('.nav-item:not(.nav-more-btn)'));\n if (els.length !== this._cachedNavItems.length) {\n return; // View out of sync (mid-CD) — the next update cycle re-measures\n }\n this.itemWidths = els.map(el => el.offsetWidth);\n // Measure the real flex gap (rem-based tokens can differ from the 4px\n // fallback if the root font-size changes)\n const gap = parseFloat(getComputedStyle(list).columnGap);\n if (!Number.isNaN(gap)) {\n this.itemGap = gap;\n }\n }\n\n /**\n * Decide how many items fit in the host's current width; the rest collapse\n * into the More dropdown. Pure arithmetic over cached widths — safe to call\n * on every resize.\n */\n private recomputeFit(): void {\n if (!this._overflowEnabled || this._cachedNavItems.length === 0) {\n return;\n }\n const hostWidth = this.host.nativeElement.clientWidth;\n if (hostWidth === 0) {\n return; // Hidden (mobile breakpoint) — leave state alone\n }\n if (!this.ensureFreshWidthCache()) {\n return; // Cache still stale — a retry frame is already scheduled\n }\n if (this.moreBtnRef?.nativeElement) {\n this.moreBtnWidth = this.moreBtnRef.nativeElement.offsetWidth || this.moreBtnWidth;\n }\n // Reserve the trailing slot's width (projected shell items, e.g. the\n // Records pill) so nav items yield to More before painting under it.\n // Measured fresh each pass — the slot appears/disappears with open records,\n // and every such change arrives via a configuration$ emission that re-runs\n // this fit anyway.\n const trailingWidth = this.trailingSlotRef?.nativeElement?.offsetWidth ?? 0;\n const fit = this.computeFitCount(hostWidth - trailingWidth);\n this.applyFit(fit.count, fit.tight);\n }\n\n /**\n * Self-heal for the item-width cache: if it's stale or missing (the\n * measurement frame can race the first render after a reload/app switch),\n * expand to the full item set, re-measure, and retry next frame until it\n * converges. Returns true when the cache matches the current item set.\n */\n private ensureFreshWidthCache(): boolean {\n if (this.itemWidths.length === this._cachedNavItems.length) {\n return true;\n }\n if (this.VisibleCount < this._cachedNavItems.length || this.Tight) {\n this.VisibleCount = Number.MAX_SAFE_INTEGER;\n this.Tight = false; // Never measure with tight-mode shrink applied\n this.syncChangeDetection();\n }\n this.measureItemWidths();\n if (this.itemWidths.length !== this._cachedNavItems.length) {\n requestAnimationFrame(() => this.recomputeFit());\n return false;\n }\n return true;\n }\n\n /** Pure fit arithmetic: how many leading items fit beside the More button */\n private computeFitCount(hostWidth: number): { count: number; tight: boolean } {\n const gap = this.itemGap;\n const n = this.itemWidths.length;\n const totalAll = this.itemWidths.reduce((a, b) => a + b, 0) + gap * (n - 1);\n if (totalAll <= hostWidth) {\n return { count: Number.MAX_SAFE_INTEGER, tight: false }; // Everything fits\n }\n // Reserve room for the More button, then fit as many leading items as possible\n let used = this.moreBtnWidth;\n let fit = 0;\n for (let i = 0; i < n; i++) {\n const next = used + gap + this.itemWidths[i];\n if (next > hostWidth) {\n break;\n }\n used = next;\n fit++;\n }\n // Never collapse below one visible item; tight = even the lone item + More overflows\n return { count: Math.max(1, fit), tight: fit === 0 };\n }\n\n /** Commit a fit result, closing More if nothing overflows; CD only on change */\n private applyFit(count: number, tight: boolean): void {\n if (count === this.VisibleCount && tight === this.Tight) {\n return;\n }\n this.VisibleCount = count;\n this.Tight = tight;\n if (this.OverflowItems.length === 0) {\n this.MoreOpen = false;\n }\n this.syncChangeDetection();\n }\n\n /**\n * markForCheck + synchronous detectChanges. In Angular 21 zoneless mode,\n * markForCheck() alone is unreliable when the trigger is an RxJS\n * subscription or rAF callback not tracked by the zoneless scheduler — the\n * dirty flag is set but no follow-up tick is scheduled. detectChanges()\n * throws if invoked re-entrantly during an in-flight CD pass; that's\n * harmless (the in-flight pass picks up our markForCheck), hence the catch.\n */\n private syncChangeDetection(): void {\n this.cdr.markForCheck();\n try {\n this.cdr.detectChanges();\n } catch {\n // Re-entrant CD — harmless.\n }\n }\n\n /** Items rendered inline in the header row */\n get InlineItems(): NavItem[] {\n return this._cachedNavItems.slice(0, this.VisibleCount);\n }\n\n /** Items collapsed into the More dropdown */\n get OverflowItems(): NavItem[] {\n return this.VisibleCount >= this._cachedNavItems.length\n ? []\n : this._cachedNavItems.slice(this.VisibleCount);\n }\n\n /** True when any overflowed item is the active one (More button shows active tint) */\n get OverflowHasActive(): boolean {\n return this.OverflowItems.some(item => this.isActive(item));\n }\n\n /** Open/close the More dropdown, anchoring it under the More button and clamping it inside the host */\n ToggleMore(event: MouseEvent): void {\n event.stopPropagation();\n this.MoreOpen = !this.MoreOpen;\n if (this.MoreOpen) {\n // Anchor the dropdown under the More button; once the dropdown has\n // rendered, clamp it so its right edge stays inside the host.\n this.MoreDropdownLeft = this.moreBtnRef?.nativeElement?.offsetLeft ?? 0;\n requestAnimationFrame(() => {\n const dropdown = this.host.nativeElement.querySelector<HTMLElement>('.nav-more-dropdown');\n if (dropdown) {\n const maxLeft = this.host.nativeElement.clientWidth - dropdown.offsetWidth;\n this.MoreDropdownLeft = Math.max(0, Math.min(this.MoreDropdownLeft, maxLeft));\n this.cdr.markForCheck();\n try {\n this.cdr.detectChanges();\n } catch {\n // Re-entrant CD — harmless.\n }\n }\n });\n }\n this.cdr.markForCheck();\n }\n\n /** Close the More dropdown on any outside click or Escape */\n @HostListener('document:click', ['$event'])\n onDocumentClick(event: MouseEvent): void {\n if (this.MoreOpen && !this.host.nativeElement.contains(event.target as Node)) {\n this.MoreOpen = false;\n this.cdr.markForCheck();\n }\n }\n\n /** Close the More dropdown on Escape */\n @HostListener('document:keydown.escape')\n onEscape(): void {\n if (this.MoreOpen) {\n this.MoreOpen = false;\n this.cdr.markForCheck();\n }\n }\n\n /**\n * Update active state map based on current workspace configuration\n */\n private updateActiveStates(config: WorkspaceConfiguration | null): void {\n this.activeStateMap.clear();\n\n if (!config || !this._app) {\n return;\n }\n\n const activeTab = config.tabs.find(t => t.id === config.activeTabId);\n if (!activeTab || activeTab.applicationId !== this._app.ID) {\n return;\n }\n\n // Compute active state for each nav item once\n for (const item of this._cachedNavItems) {\n const key = this.getItemKey(item);\n const isActive = this.computeIsActive(item, activeTab);\n this.activeStateMap.set(key, isActive);\n }\n }\n\n /**\n * Get unique key for nav item (used for tracking and active state).\n * Prefers RecordID for dynamic items to avoid label collisions.\n */\n private getItemKey(item: NavItem): string {\n return item.RecordID || item.Route || item.Label || '';\n }\n\n /**\n * Check if a nav item is dynamic (generated from recent orphan resources)\n */\n isDynamic(item: NavItem): boolean {\n return (item as DynamicNavItem).isDynamic === true;\n }\n\n /**\n * Compute if nav item is active based on active tab\n */\n private computeIsActive(item: NavItem, activeTab: any): boolean {\n // Check if nav item has a custom matching function (for dynamic items)\n const dynamicItem = item as NavItem & { isActiveMatch?: (tab: unknown) => boolean };\n if (dynamicItem.isActiveMatch && typeof dynamicItem.isActiveMatch === 'function') {\n return dynamicItem.isActiveMatch(activeTab);\n }\n\n const config = activeTab.configuration || {};\n\n // Match by DriverClass (most reliable for Custom resource types — always set correctly)\n if (item.DriverClass && (config['driverClass'] === item.DriverClass || config['resourceTypeDriverClass'] === item.DriverClass)) {\n return true;\n }\n\n // Match by navItemName from config (reliable — set when nav item opens)\n if (config['navItemName'] && config['navItemName'] === item.Label) {\n return true;\n }\n\n // Match by route (for route-based nav items)\n if (item.Route && config['route'] === item.Route) {\n return true;\n }\n\n // NOTE: We intentionally do NOT match by activeTab.title here.\n // Tab titles can be stale (updated asynchronously by DisplayNameChangedEvent\n // from cached components) and cause double-matches where two nav items\n // both appear active. DriverClass and navItemName are sufficient.\n return false;\n }\n\n /**\n * Get cached navigation items (no computation in getter)\n */\n get navItems(): NavItem[] {\n return this._cachedNavItems;\n }\n\n /**\n * Check if nav item is active (uses cached state from Map)\n */\n isActive(item: NavItem): boolean {\n const key = this.getItemKey(item);\n return this.activeStateMap.get(key) || false;\n }\n\n /**\n * Track function for @for to optimize rendering\n */\n trackByNavItem(_index: number, item: NavItem): string {\n return this.getItemKey(item);\n }\n\n /**\n * Handle nav item click\n */\n onNavClick(item: NavItem, event?: MouseEvent): void {\n this.MoreOpen = false;\n this.navItemClick.emit({\n item,\n shiftKey: event?.shiftKey || false\n });\n }\n\n /**\n * Handle dismiss click on a dynamic nav item.\n * Removes from the app's recent stack and refreshes nav items immediately.\n * Stops propagation so the nav click handler doesn't fire.\n */\n onDismiss(item: NavItem, event: MouseEvent): void {\n event.stopPropagation();\n\n // Remove from the app's recent stack directly so we can refresh immediately\n if (this._app) {\n const appWithRemove = this._app as BaseApplication & {\n RemoveDynamicNavItem?: (navItem: NavItem) => void;\n };\n if (typeof appWithRemove.RemoveDynamicNavItem === 'function') {\n appWithRemove.RemoveDynamicNavItem(item);\n this.updateCachedData();\n }\n }\n\n this.navItemDismiss.emit(item);\n }\n\n}\n","<nav class=\"nav-list\" #navList [class.tight]=\"Tight\">\n @if (Loading && navItems.length === 0) {\n <!-- Skeleton pills while GetNavItems() resolves — prevents header pop-in -->\n <div class=\"nav-skeleton\" aria-hidden=\"true\">\n <span class=\"nav-skeleton-pill\" style=\"width: 88px\"></span>\n <span class=\"nav-skeleton-pill\" style=\"width: 72px\"></span>\n <span class=\"nav-skeleton-pill\" style=\"width: 96px\"></span>\n </div>\n }\n @for (item of InlineItems; track trackByNavItem($index, item)) {\n <div\n class=\"nav-item\"\n [mjClickable]=\"item.Label\"\n role=\"link\"\n [testId]=\"'nav-item-' + item.Label\"\n [attr.aria-current]=\"isActive(item) ? 'page' : null\"\n [class.active]=\"isActive(item)\"\n [class.dynamic]=\"isDynamic(item)\"\n [class.no-icon]=\"!item.Icon\"\n (click)=\"onNavClick(item, $event)\">\n @if (item.Icon) {\n <i [class]=\"item.Icon\"></i>\n }\n <span>{{ item.Label }}</span>\n @if (item.Badge) {\n <span class=\"badge\">{{ item.Badge }}</span>\n }\n @if (isDynamic(item)) {\n <button class=\"dismiss-btn\" title=\"Remove\" (click)=\"onDismiss(item, $event)\">\n <i class=\"fa-solid fa-xmark\"></i>\n </button>\n }\n </div>\n }\n @if (OverflowItems.length > 0) {\n <div\n #moreBtn\n class=\"nav-item nav-more-btn\"\n mjClickable=\"More navigation items\"\n testId=\"nav-more-btn\"\n [attr.aria-haspopup]=\"true\"\n [attr.aria-expanded]=\"MoreOpen\"\n [class.active]=\"OverflowHasActive\"\n (click)=\"ToggleMore($event)\">\n <i class=\"fa-solid fa-ellipsis\"></i>\n <span>More</span>\n <span class=\"more-count\">{{ OverflowItems.length }}</span>\n </div>\n }\n <!-- Trailing slot: shell-level items that sit AFTER the app's own nav\n (the Records pill). Its width is reserved by\n recomputeFit so the priority+ arithmetic never lets nav items paint\n under it. -->\n <span class=\"nav-trailing\" #trailingSlot>\n <ng-content></ng-content>\n </span>\n</nav>\n\n<!-- The dropdown lives OUTSIDE the clipped nav row (the row keeps\n overflow: hidden so fit-arithmetic slack can never paint over the\n header's action cluster). Anchored to the More button by measurement. -->\n@if (MoreOpen && OverflowItems.length > 0) {\n <div class=\"nav-more-dropdown\" [style.left.px]=\"MoreDropdownLeft\">\n @for (item of OverflowItems; track trackByNavItem($index, item)) {\n <div\n class=\"nav-more-item\"\n [mjClickable]=\"item.Label\"\n role=\"link\"\n [testId]=\"'nav-more-item-' + item.Label\"\n [attr.aria-current]=\"isActive(item) ? 'page' : null\"\n [class.active]=\"isActive(item)\"\n [class.dynamic]=\"isDynamic(item)\"\n (click)=\"onNavClick(item, $event)\">\n @if (item.Icon) {\n <i [class]=\"item.Icon\"></i>\n }\n <span class=\"more-item-label\">{{ item.Label }}</span>\n @if (item.Badge) {\n <span class=\"badge\">{{ item.Badge }}</span>\n }\n @if (isDynamic(item)) {\n <button class=\"dismiss-btn\" title=\"Remove\" (click)=\"onDismiss(item, $event)\">\n <i class=\"fa-solid fa-xmark\"></i>\n </button>\n }\n </div>\n }\n </div>\n}\n"]}
|
|
1
|
+
{"version":3,"file":"app-nav.component.js","sourceRoot":"","sources":["../../../../../src/lib/shell/components/header/app-nav.component.ts","../../../../../src/lib/shell/components/header/app-nav.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,EAAuD,uBAAuB,EAAc,SAAS,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAG1L,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;;;;;;;;;;ICAtC,8BAA6C;IAG3C,AADA,AADA,0BAA2D,eACA,eACA;IAC7D,iBAAM;;;IAcF,oBAA2B;;;IAAxB,2BAAmB;;;IAItB,gCAAoB;IAAA,YAAgB;IAAA,iBAAO;;;IAAvB,cAAgB;IAAhB,mCAAgB;;;;IAGpC,kCAA6E;IAAlC,6OAAS,iCAAuB,KAAC;IAC1E,wBAAiC;IACnC,iBAAS;;;;IApBb,+BASqC;IAAnC,wMAAS,kCAAwB,KAAC;IAClC,sFAAiB;IAGjB,4BAAM;IAAA,YAAgB;IAAA,iBAAO;IAC7B,yFAAkB;IAGlB,2FAAuB;IAKzB,iBAAM;;;;IAdJ,AADA,AADA,kDAA+B,sCACE,0BACL;IAJ5B,AA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MN,KAAK;;kBAqBL,KAAK;;kBA6RL,YAAY;mBAAC,gBAAgB,EAAE,CAAC,QAAQ,CAAC;;kBASzC,YAAY;mBAAC,yBAAyB;;kFAxY5B,eAAe","sourcesContent":["import { Component, Input, Output, EventEmitter, OnInit, OnDestroy, AfterViewInit, ChangeDetectorRef, ChangeDetectionStrategy, ElementRef, ViewChild, HostListener } from '@angular/core';\nimport { BaseApplication, DynamicNavItem, NavItem, WorkspaceStateManager, WorkspaceConfiguration } from '@memberjunction/ng-base-application';\nimport { SharedService } from '@memberjunction/ng-shared';\nimport { Subject, takeUntil } from 'rxjs';\n\n/**\n * Event emitted when a nav item is clicked\n */\nexport interface NavItemClickEvent {\n item: NavItem; // case-violation-ok-legacy-back-compat: the type is named in an exported signature, so consumers build object literals against it; an interface has no runtime carrier for a stub\n shiftKey: boolean; // case-violation-ok-legacy-back-compat: the type is named in an exported signature, so consumers build object literals against it; an interface has no runtime carrier for a stub\n}\n\n/**\n * Horizontal navigation items for the current app.\n * Uses OnPush change detection and reactive state management for optimal performance.\n *\n * Overflow behavior (priority+ pattern): when the header can't fit every nav item,\n * trailing items collapse into a \"More\" dropdown instead of squeezing the header's\n * action cluster off-screen. Item widths are measured once per nav-items change\n * (all items render for one frame, widths are cached), then every resize recomputes\n * the fit from the cache — no re-measure, no layout thrash.\n */\n@Component({\n standalone: false,\n selector: 'mj-app-nav',\n templateUrl: './app-nav.component.html',\n styleUrls: ['./app-nav.component.css'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class AppNavComponent implements OnInit, OnDestroy, AfterViewInit {\n private destroy$ = new Subject<void>();\n private _app: BaseApplication | null = null;\n private _cachedNavItems: NavItem[] = [];\n private _servicesInjected = false;\n\n /**\n * Monotonically increasing counter used to detect and discard stale async results.\n *\n * Because GetNavItems() is async (HomeApplication does a DB lookup for record names),\n * and RxJS subscribe() does NOT serialize async callbacks, multiple calls to\n * updateCachedData() can overlap. Without this guard, a slow call (e.g., Home app\n * doing a DB lookup) that started BEFORE a fast call (e.g., switching to App B)\n * could resolve AFTER the fast call and overwrite the correct nav items with stale ones.\n *\n * How it works:\n * 1. Each updateCachedData() call increments this counter and captures it as `gen`\n * 2. After the await, it checks: does `gen` still match `_updateGeneration`?\n * 3. If not, a newer call started while we were waiting — discard our stale results\n */\n private _updateGeneration = 0;\n\n // Map of nav item key (Route or Label) to active state\n private activeStateMap = new Map<string, boolean>();\n\n // ---- Overflow (priority+) state ----\n /** Cached natural pixel width of each nav item, parallel to navItems order */\n private itemWidths: number[] = [];\n /** Measured width of the More button (fallback used until first render) */\n private moreBtnWidth = 120;\n /** Left offset (px, relative to host) where the More dropdown anchors */\n public MoreDropdownLeft = 0;\n /** True when even one item + More can't fit — the lone visible pill\n * shrinks with an ellipsis instead of clipping the More button. */\n public Tight = false;\n /** Flex gap between nav items — measured from the rendered row (falls back\n * to --mj-space-1's default of 4px until first measurement) */\n private itemGap = 4;\n /** How many leading nav items are currently visible inline */\n public VisibleCount = Number.MAX_SAFE_INTEGER;\n /** Whether the More dropdown is open */\n public MoreOpen = false;\n /** True while nav items are being (re)loaded for skeleton display */\n public Loading = false;\n\n private resizeObserver: ResizeObserver | null = null;\n private _overflowEnabled = true;\n\n @ViewChild('navList') private navListRef?: ElementRef<HTMLElement>;\n @ViewChild('moreBtn') private moreBtnRef?: ElementRef<HTMLElement>;\n @ViewChild('trailingSlot') private trailingSlotRef?: ElementRef<HTMLElement>;\n\n @Output() NavItemClick = new EventEmitter<NavItemClickEvent>();\n\n /**\n * @deprecated Use {@link NavItemClick}.\n *\n * The same emitter under the old binding name, so a template still binding\n * (navItemClick) keeps working. Must stay AFTER NavItemClick: class fields\n * initialise in order, and the other way round this captures undefined.\n */\n @Output() navItemClick = this.NavItemClick;\n @Output() NavItemDismiss = new EventEmitter<NavItem>();\n\n /**\n * @deprecated Use {@link NavItemDismiss}.\n *\n * The same emitter under the old binding name, so a template still binding\n * (navItemDismiss) keeps working. Must stay AFTER NavItemDismiss: class fields\n * initialise in order, and the other way round this captures undefined.\n */\n @Output() navItemDismiss = this.NavItemDismiss;\n\n /**\n * Disable the priority+ overflow behavior. Used by the mobile drawer instance,\n * where items stack vertically and can never overflow horizontally.\n */\n @Input()\n set OverflowEnabled(value: boolean) {\n this._overflowEnabled = value;\n if (!value) {\n this.VisibleCount = Number.MAX_SAFE_INTEGER;\n }\n }\n get OverflowEnabled(): boolean {\n return this._overflowEnabled;\n }\n\n constructor(\n private workspaceManager: WorkspaceStateManager,\n private sharedService: SharedService,\n private cdr: ChangeDetectorRef,\n private host: ElementRef<HTMLElement>\n ) {}\n\n /**\n * Input setter for app - triggers cache update when app changes\n */\n @Input()\n set app(value: BaseApplication | null) {\n if (this._app !== value) {\n this._app = value;\n this._cachedNavItems = []; // Clear stale items immediately so previous app's items don't flash\n this.activeStateMap.clear();\n this._servicesInjected = false; // Reset injection flag\n this.Loading = value != null; // Skeleton until GetNavItems resolves\n this.updateCachedData();\n this.cdr.markForCheck();\n }\n }\n\n get app(): BaseApplication | null {\n return this._app;\n }\n\n ngOnInit(): void {\n // Subscribe to workspace configuration changes.\n // Must rebuild nav items (not just active states) because dynamic nav items\n // are generated based on the currently active tab - when a user navigates\n // from one record to another (e.g., via OpenEntityRecord), the active tab\n // changes and the dynamic nav item needs to reflect the new record.\n this.workspaceManager.Configuration\n .pipe(takeUntil(this.destroy$))\n .subscribe(async () => {\n await this.updateCachedData();\n });\n }\n\n ngAfterViewInit(): void {\n if (this._overflowEnabled && typeof ResizeObserver !== 'undefined') {\n this.resizeObserver = new ResizeObserver(() => this.recomputeFit());\n this.resizeObserver.observe(this.host.nativeElement);\n }\n // Widths measured before webfonts arrive are stale (Explorer's Montserrat\n // loads late over the fallback stack) — invalidate the cache once fonts\n // settle so the fit is computed against real glyph metrics.\n if (this._overflowEnabled && typeof document !== 'undefined' && document.fonts?.ready) {\n document.fonts.ready.then(() => {\n this.itemWidths = [];\n this.recomputeFit();\n });\n }\n }\n\n ngOnDestroy(): void {\n this.resizeObserver?.disconnect();\n this.destroy$.next();\n this.destroy$.complete();\n }\n\n /**\n * Update cached nav items and app color when app changes\n */\n private async updateCachedData(): Promise<void> {\n // Capture the current generation before any async work.\n // See _updateGeneration JSDoc for full explanation of the race condition this prevents.\n const gen = ++this._updateGeneration;\n\n if (this._app) {\n // Inject services once for apps that need them (e.g., HomeApplication for dynamic nav items)\n if (!this._servicesInjected) {\n const appWithServices = this._app as BaseApplication & {\n SetWorkspaceManager?: (manager: WorkspaceStateManager) => void;\n SetSharedService?: (service: SharedService) => void;\n };\n\n if (typeof appWithServices.SetWorkspaceManager === 'function') {\n appWithServices.SetWorkspaceManager(this.workspaceManager);\n }\n if (typeof appWithServices.SetSharedService === 'function') {\n appWithServices.SetSharedService(this.sharedService);\n }\n this._servicesInjected = true;\n }\n\n const items = await this._app.GetNavItems() || [];\n\n // If a newer call started while we were awaiting, our results are stale — bail out\n // so we don't overwrite the newer call's (correct) results.\n if (gen !== this._updateGeneration) {\n return;\n }\n\n // Only show items with Status 'Active' or undefined (default to Active)\n this._cachedNavItems = items.filter(item => !item.Status || item.Status === 'Active');\n } else {\n this._cachedNavItems = [];\n }\n\n this.Loading = false;\n\n // Update active states after nav items change\n const config = this.workspaceManager.GetConfiguration();\n this.updateActiveStates(config);\n\n // New item set: show everything for one frame so natural widths can be\n // measured (the row clips, so the temporary full row is invisible),\n // then collapse to fit. Tight mode MUST be off during measurement — its\n // flex-shrink would record squeezed widths and poison the fit arithmetic.\n this.VisibleCount = Number.MAX_SAFE_INTEGER;\n this.MoreOpen = false;\n this.Tight = false;\n this.syncChangeDetection();\n\n if (this._overflowEnabled) {\n requestAnimationFrame(() => {\n this.measureItemWidths();\n this.recomputeFit();\n });\n }\n }\n\n /**\n * Cache the natural width of every nav item. Called in the frame after a new\n * item set renders (all items visible, flex-shrink: 0, so widths are natural\n * even if the row is clipped by overflow: hidden).\n */\n private measureItemWidths(): void {\n const list = this.navListRef?.nativeElement;\n if (!list) {\n return;\n }\n const els = Array.from(list.querySelectorAll<HTMLElement>('.nav-item:not(.nav-more-btn)'));\n if (els.length !== this._cachedNavItems.length) {\n return; // View out of sync (mid-CD) — the next update cycle re-measures\n }\n this.itemWidths = els.map(el => el.offsetWidth);\n // Measure the real flex gap (rem-based tokens can differ from the 4px\n // fallback if the root font-size changes)\n const gap = parseFloat(getComputedStyle(list).columnGap);\n if (!Number.isNaN(gap)) {\n this.itemGap = gap;\n }\n }\n\n /**\n * Decide how many items fit in the host's current width; the rest collapse\n * into the More dropdown. Pure arithmetic over cached widths — safe to call\n * on every resize.\n */\n private recomputeFit(): void {\n if (!this._overflowEnabled || this._cachedNavItems.length === 0) {\n return;\n }\n const hostWidth = this.host.nativeElement.clientWidth;\n if (hostWidth === 0) {\n return; // Hidden (mobile breakpoint) — leave state alone\n }\n if (!this.ensureFreshWidthCache()) {\n return; // Cache still stale — a retry frame is already scheduled\n }\n if (this.moreBtnRef?.nativeElement) {\n this.moreBtnWidth = this.moreBtnRef.nativeElement.offsetWidth || this.moreBtnWidth;\n }\n // Reserve the trailing slot's width (projected shell items, e.g. the\n // Records pill) so nav items yield to More before painting under it.\n // Measured fresh each pass — the slot appears/disappears with open records,\n // and every such change arrives via a configuration$ emission that re-runs\n // this fit anyway.\n const trailingWidth = this.trailingSlotRef?.nativeElement?.offsetWidth ?? 0;\n const fit = this.computeFitCount(hostWidth - trailingWidth);\n this.applyFit(fit.count, fit.tight);\n }\n\n /**\n * Self-heal for the item-width cache: if it's stale or missing (the\n * measurement frame can race the first render after a reload/app switch),\n * expand to the full item set, re-measure, and retry next frame until it\n * converges. Returns true when the cache matches the current item set.\n */\n private ensureFreshWidthCache(): boolean {\n if (this.itemWidths.length === this._cachedNavItems.length) {\n return true;\n }\n if (this.VisibleCount < this._cachedNavItems.length || this.Tight) {\n this.VisibleCount = Number.MAX_SAFE_INTEGER;\n this.Tight = false; // Never measure with tight-mode shrink applied\n this.syncChangeDetection();\n }\n this.measureItemWidths();\n if (this.itemWidths.length !== this._cachedNavItems.length) {\n requestAnimationFrame(() => this.recomputeFit());\n return false;\n }\n return true;\n }\n\n /** Pure fit arithmetic: how many leading items fit beside the More button */\n private computeFitCount(hostWidth: number): { count: number; tight: boolean } {\n const gap = this.itemGap;\n const n = this.itemWidths.length;\n const totalAll = this.itemWidths.reduce((a, b) => a + b, 0) + gap * (n - 1);\n if (totalAll <= hostWidth) {\n return { count: Number.MAX_SAFE_INTEGER, tight: false }; // Everything fits\n }\n // Reserve room for the More button, then fit as many leading items as possible\n let used = this.moreBtnWidth;\n let fit = 0;\n for (let i = 0; i < n; i++) {\n const next = used + gap + this.itemWidths[i];\n if (next > hostWidth) {\n break;\n }\n used = next;\n fit++;\n }\n // Never collapse below one visible item; tight = even the lone item + More overflows\n return { count: Math.max(1, fit), tight: fit === 0 };\n }\n\n /** Commit a fit result, closing More if nothing overflows; CD only on change */\n private applyFit(count: number, tight: boolean): void {\n if (count === this.VisibleCount && tight === this.Tight) {\n return;\n }\n this.VisibleCount = count;\n this.Tight = tight;\n if (this.OverflowItems.length === 0) {\n this.MoreOpen = false;\n }\n this.syncChangeDetection();\n }\n\n /**\n * markForCheck + synchronous detectChanges. In Angular 21 zoneless mode,\n * markForCheck() alone is unreliable when the trigger is an RxJS\n * subscription or rAF callback not tracked by the zoneless scheduler — the\n * dirty flag is set but no follow-up tick is scheduled. detectChanges()\n * throws if invoked re-entrantly during an in-flight CD pass; that's\n * harmless (the in-flight pass picks up our markForCheck), hence the catch.\n */\n private syncChangeDetection(): void {\n this.cdr.markForCheck();\n try {\n this.cdr.detectChanges();\n } catch {\n // Re-entrant CD — harmless.\n }\n }\n\n /** Items rendered inline in the header row */\n get InlineItems(): NavItem[] {\n return this._cachedNavItems.slice(0, this.VisibleCount);\n }\n\n /** Items collapsed into the More dropdown */\n get OverflowItems(): NavItem[] {\n return this.VisibleCount >= this._cachedNavItems.length\n ? []\n : this._cachedNavItems.slice(this.VisibleCount);\n }\n\n /** True when any overflowed item is the active one (More button shows active tint) */\n get OverflowHasActive(): boolean {\n return this.OverflowItems.some(item => this.IsActive(item));\n }\n\n /** Open/close the More dropdown, anchoring it under the More button and clamping it inside the host */\n ToggleMore(event: MouseEvent): void {\n event.stopPropagation();\n this.MoreOpen = !this.MoreOpen;\n if (this.MoreOpen) {\n // Anchor the dropdown under the More button; once the dropdown has\n // rendered, clamp it so its right edge stays inside the host.\n this.MoreDropdownLeft = this.moreBtnRef?.nativeElement?.offsetLeft ?? 0;\n requestAnimationFrame(() => {\n const dropdown = this.host.nativeElement.querySelector<HTMLElement>('.nav-more-dropdown');\n if (dropdown) {\n const maxLeft = this.host.nativeElement.clientWidth - dropdown.offsetWidth;\n this.MoreDropdownLeft = Math.max(0, Math.min(this.MoreDropdownLeft, maxLeft));\n this.cdr.markForCheck();\n try {\n this.cdr.detectChanges();\n } catch {\n // Re-entrant CD — harmless.\n }\n }\n });\n }\n this.cdr.markForCheck();\n }\n\n /** Close the More dropdown on any outside click or Escape */\n @HostListener('document:click', ['$event'])\n onDocumentClick(event: MouseEvent): void {\n if (this.MoreOpen && !this.host.nativeElement.contains(event.target as Node)) {\n this.MoreOpen = false;\n this.cdr.markForCheck();\n }\n }\n\n /** Close the More dropdown on Escape */\n @HostListener('document:keydown.escape')\n onEscape(): void {\n if (this.MoreOpen) {\n this.MoreOpen = false;\n this.cdr.markForCheck();\n }\n }\n\n /**\n * Update active state map based on current workspace configuration\n */\n private updateActiveStates(config: WorkspaceConfiguration | null): void {\n this.activeStateMap.clear();\n\n if (!config || !this._app) {\n return;\n }\n\n const activeTab = config.tabs.find(t => t.id === config.activeTabId);\n if (!activeTab || activeTab.applicationId !== this._app.ID) {\n return;\n }\n\n // Compute active state for each nav item once\n for (const item of this._cachedNavItems) {\n const key = this.getItemKey(item);\n const isActive = this.computeIsActive(item, activeTab);\n this.activeStateMap.set(key, isActive);\n }\n }\n\n /**\n * Get unique key for nav item (used for tracking and active state).\n * Prefers RecordID for dynamic items to avoid label collisions.\n */\n private getItemKey(item: NavItem): string {\n return item.RecordID || item.Route || item.Label || '';\n }\n\n /**\n * Check if a nav item is dynamic (generated from recent orphan resources)\n */\n IsDynamic(item: NavItem): boolean {\n return (item as DynamicNavItem).isDynamic === true;\n }\n\n /** @deprecated Use {@link IsDynamic}. */\n isDynamic(item: NavItem): boolean {\n return this.IsDynamic(item);\n }\n\n /**\n * Compute if nav item is active based on active tab\n */\n private computeIsActive(item: NavItem, activeTab: any): boolean {\n // Check if nav item has a custom matching function (for dynamic items)\n const dynamicItem = item as NavItem & { isActiveMatch?: (tab: unknown) => boolean };\n if (dynamicItem.isActiveMatch && typeof dynamicItem.isActiveMatch === 'function') {\n return dynamicItem.isActiveMatch(activeTab);\n }\n\n const config = activeTab.configuration || {};\n\n // Match by DriverClass (most reliable for Custom resource types — always set correctly)\n if (item.DriverClass && (config['driverClass'] === item.DriverClass || config['resourceTypeDriverClass'] === item.DriverClass)) {\n return true;\n }\n\n // Match by navItemName from config (reliable — set when nav item opens)\n if (config['navItemName'] && config['navItemName'] === item.Label) {\n return true;\n }\n\n // Match by route (for route-based nav items)\n if (item.Route && config['route'] === item.Route) {\n return true;\n }\n\n // NOTE: We intentionally do NOT match by activeTab.title here.\n // Tab titles can be stale (updated asynchronously by DisplayNameChangedEvent\n // from cached components) and cause double-matches where two nav items\n // both appear active. DriverClass and navItemName are sufficient.\n return false;\n }\n\n /**\n * Get cached navigation items (no computation in getter)\n */\n get NavItems(): NavItem[] {\n return this._cachedNavItems;\n }\n\n /** @deprecated Use {@link NavItems}. */\n get navItems(): NavItem[] {\n return this.NavItems;\n }\n\n /**\n * Check if nav item is active (uses cached state from Map)\n */\n IsActive(item: NavItem): boolean {\n const key = this.getItemKey(item);\n return this.activeStateMap.get(key) || false;\n }\n\n /** @deprecated Use {@link IsActive}. */\n isActive(item: NavItem): boolean {\n return this.IsActive(item);\n }\n\n /**\n * Track function for @for to optimize rendering\n */\n TrackByNavItem(_index: number, item: NavItem): string {\n return this.getItemKey(item);\n }\n\n /** @deprecated Use {@link TrackByNavItem}. */\n trackByNavItem(_index: number, item: NavItem): string {\n return this.TrackByNavItem(_index, item);\n }\n\n /**\n * Handle nav item click\n */\n OnNavClick(item: NavItem, event?: MouseEvent): void {\n this.MoreOpen = false;\n this.NavItemClick.emit({\n item,\n shiftKey: event?.shiftKey || false\n });\n }\n\n /** @deprecated Use {@link OnNavClick}. */\n onNavClick(item: NavItem, event?: MouseEvent): void {\n return this.OnNavClick(item, event);\n }\n\n /**\n * Handle dismiss click on a dynamic nav item.\n * Removes from the app's recent stack and refreshes nav items immediately.\n * Stops propagation so the nav click handler doesn't fire.\n */\n OnDismiss(item: NavItem, event: MouseEvent): void {\n event.stopPropagation();\n\n // Remove from the app's recent stack directly so we can refresh immediately\n if (this._app) {\n const appWithRemove = this._app as BaseApplication & {\n RemoveDynamicNavItem?: (navItem: NavItem) => void;\n };\n if (typeof appWithRemove.RemoveDynamicNavItem === 'function') {\n appWithRemove.RemoveDynamicNavItem(item);\n this.updateCachedData();\n }\n }\n\n this.NavItemDismiss.emit(item);\n }\n\n /** @deprecated Use {@link OnDismiss}. */\n onDismiss(item: NavItem, event: MouseEvent): void {\n return this.OnDismiss(item, event);\n }\n\n}\n","<nav class=\"nav-list\" #navList [class.tight]=\"Tight\">\n @if (Loading && navItems.length === 0) {\n <!-- Skeleton pills while GetNavItems() resolves — prevents header pop-in -->\n <div class=\"nav-skeleton\" aria-hidden=\"true\">\n <span class=\"nav-skeleton-pill\" style=\"width: 88px\"></span>\n <span class=\"nav-skeleton-pill\" style=\"width: 72px\"></span>\n <span class=\"nav-skeleton-pill\" style=\"width: 96px\"></span>\n </div>\n }\n @for (item of InlineItems; track trackByNavItem($index, item)) {\n <div\n class=\"nav-item\"\n [mjClickable]=\"item.Label\"\n role=\"link\"\n [testId]=\"'nav-item-' + item.Label\"\n [attr.aria-current]=\"isActive(item) ? 'page' : null\"\n [class.active]=\"isActive(item)\"\n [class.dynamic]=\"isDynamic(item)\"\n [class.no-icon]=\"!item.Icon\"\n (click)=\"onNavClick(item, $event)\">\n @if (item.Icon) {\n <i [class]=\"item.Icon\"></i>\n }\n <span>{{ item.Label }}</span>\n @if (item.Badge) {\n <span class=\"badge\">{{ item.Badge }}</span>\n }\n @if (isDynamic(item)) {\n <button class=\"dismiss-btn\" title=\"Remove\" (click)=\"onDismiss(item, $event)\">\n <i class=\"fa-solid fa-xmark\"></i>\n </button>\n }\n </div>\n }\n @if (OverflowItems.length > 0) {\n <div\n #moreBtn\n class=\"nav-item nav-more-btn\"\n mjClickable=\"More navigation items\"\n testId=\"nav-more-btn\"\n [attr.aria-haspopup]=\"true\"\n [attr.aria-expanded]=\"MoreOpen\"\n [class.active]=\"OverflowHasActive\"\n (click)=\"ToggleMore($event)\">\n <i class=\"fa-solid fa-ellipsis\"></i>\n <span>More</span>\n <span class=\"more-count\">{{ OverflowItems.length }}</span>\n </div>\n }\n <!-- Trailing slot: shell-level items that sit AFTER the app's own nav\n (the Records pill). Its width is reserved by\n recomputeFit so the priority+ arithmetic never lets nav items paint\n under it. -->\n <span class=\"nav-trailing\" #trailingSlot>\n <ng-content></ng-content>\n </span>\n</nav>\n\n<!-- The dropdown lives OUTSIDE the clipped nav row (the row keeps\n overflow: hidden so fit-arithmetic slack can never paint over the\n header's action cluster). Anchored to the More button by measurement. -->\n@if (MoreOpen && OverflowItems.length > 0) {\n <div class=\"nav-more-dropdown\" [style.left.px]=\"MoreDropdownLeft\">\n @for (item of OverflowItems; track trackByNavItem($index, item)) {\n <div\n class=\"nav-more-item\"\n [mjClickable]=\"item.Label\"\n role=\"link\"\n [testId]=\"'nav-more-item-' + item.Label\"\n [attr.aria-current]=\"isActive(item) ? 'page' : null\"\n [class.active]=\"isActive(item)\"\n [class.dynamic]=\"isDynamic(item)\"\n (click)=\"onNavClick(item, $event)\">\n @if (item.Icon) {\n <i [class]=\"item.Icon\"></i>\n }\n <span class=\"more-item-label\">{{ item.Label }}</span>\n @if (item.Badge) {\n <span class=\"badge\">{{ item.Badge }}</span>\n }\n @if (isDynamic(item)) {\n <button class=\"dismiss-btn\" title=\"Remove\" (click)=\"onDismiss(item, $event)\">\n <i class=\"fa-solid fa-xmark\"></i>\n </button>\n }\n </div>\n }\n </div>\n}\n"]}
|
|
@@ -35,18 +35,42 @@ export declare class AppSwitcherComponent extends BaseAngularComponent implement
|
|
|
35
35
|
private appManager;
|
|
36
36
|
private cdr;
|
|
37
37
|
private destroy$;
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
ActiveApp: BaseApplication | null;
|
|
39
|
+
/** @deprecated Use {@link ActiveApp}. */
|
|
40
|
+
set activeApp(value: BaseApplication | null);
|
|
41
|
+
/** @deprecated Use {@link ActiveApp}. */
|
|
42
|
+
get activeApp(): BaseApplication | null;
|
|
43
|
+
IsViewingSystemTab: boolean;
|
|
44
|
+
/** @deprecated Use {@link IsViewingSystemTab}. */
|
|
45
|
+
set isViewingSystemTab(value: AppSwitcherComponent['IsViewingSystemTab']);
|
|
46
|
+
/** @deprecated Use {@link IsViewingSystemTab}. */
|
|
47
|
+
get isViewingSystemTab(): AppSwitcherComponent['IsViewingSystemTab'];
|
|
40
48
|
/** ID of the app currently being loaded (shows loading indicator) */
|
|
41
|
-
|
|
49
|
+
LoadingAppId: string | null;
|
|
50
|
+
/** @deprecated Use {@link LoadingAppId}. */
|
|
51
|
+
set loadingAppId(value: string | null);
|
|
52
|
+
/** @deprecated Use {@link LoadingAppId}. */
|
|
53
|
+
get loadingAppId(): string | null;
|
|
42
54
|
/** Presentation style (from Shell.AppSwitcher.Style instance config) */
|
|
43
55
|
SwitcherStyle: AppSwitcherStyle;
|
|
56
|
+
AppSelected: EventEmitter<string>;
|
|
57
|
+
/**
|
|
58
|
+
* @deprecated Use {@link AppSelected}.
|
|
59
|
+
*
|
|
60
|
+
* The same emitter under the old binding name, so a template still binding
|
|
61
|
+
* (appSelected) keeps working. Must stay AFTER AppSelected: class fields
|
|
62
|
+
* initialise in order, and the other way round this captures undefined.
|
|
63
|
+
*/
|
|
44
64
|
appSelected: EventEmitter<string>;
|
|
45
65
|
private filterInputRef?;
|
|
46
66
|
private triggerRef?;
|
|
47
67
|
private panelRef?;
|
|
48
68
|
private configContent?;
|
|
49
|
-
|
|
69
|
+
ShowDropdown: boolean;
|
|
70
|
+
/** @deprecated Use {@link ShowDropdown}. */
|
|
71
|
+
get showDropdown(): boolean;
|
|
72
|
+
/** @deprecated Use {@link ShowDropdown}. */
|
|
73
|
+
set showDropdown(value: boolean);
|
|
50
74
|
/** When true, the launcher body shows the app-configuration view instead of the card grid */
|
|
51
75
|
ConfigMode: boolean;
|
|
52
76
|
/** Pending action awaiting the inline unsaved-changes discard bar ('exit' = back to grid, 'close' = close launcher) */
|
|
@@ -97,6 +121,8 @@ export declare class AppSwitcherComponent extends BaseAngularComponent implement
|
|
|
97
121
|
* Get applications that should appear in the app switcher
|
|
98
122
|
* (NavigationStyle = 'App Switcher' or 'Both')
|
|
99
123
|
*/
|
|
124
|
+
get Apps(): BaseApplication[];
|
|
125
|
+
/** @deprecated Use {@link Apps}. */
|
|
100
126
|
get apps(): BaseApplication[];
|
|
101
127
|
/** Recently-used apps (persisted per user), newest first, capped for display.
|
|
102
128
|
* Compact mode skips the Recent section — with a handful of apps it's noise. */
|
|
@@ -162,6 +188,8 @@ export declare class AppSwitcherComponent extends BaseAngularComponent implement
|
|
|
162
188
|
* Select an application.
|
|
163
189
|
* When viewing a system tab, always emit to allow returning to the app.
|
|
164
190
|
*/
|
|
191
|
+
SelectApp(app: BaseApplication): void;
|
|
192
|
+
/** @deprecated Use {@link SelectApp}. */
|
|
165
193
|
selectApp(app: BaseApplication): void;
|
|
166
194
|
/** Case-insensitive UUID check whether an app is the currently active app. */
|
|
167
195
|
IsActiveApp(app: BaseApplication): boolean;
|
|
@@ -187,6 +215,6 @@ export declare class AppSwitcherComponent extends BaseAngularComponent implement
|
|
|
187
215
|
*/
|
|
188
216
|
ExitConfigMode(): void;
|
|
189
217
|
static ɵfac: i0.ɵɵFactoryDeclaration<AppSwitcherComponent, never>;
|
|
190
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AppSwitcherComponent, "mj-app-switcher", never, { "activeApp": { "alias": "activeApp"; "required": false; }; "isViewingSystemTab": { "alias": "isViewingSystemTab"; "required": false; }; "loadingAppId": { "alias": "loadingAppId"; "required": false; }; "SwitcherStyle": { "alias": "SwitcherStyle"; "required": false; }; }, { "appSelected": "appSelected"; }, never, never, false, never>;
|
|
218
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AppSwitcherComponent, "mj-app-switcher", never, { "ActiveApp": { "alias": "ActiveApp"; "required": false; }; "activeApp": { "alias": "activeApp"; "required": false; }; "IsViewingSystemTab": { "alias": "IsViewingSystemTab"; "required": false; }; "isViewingSystemTab": { "alias": "isViewingSystemTab"; "required": false; }; "LoadingAppId": { "alias": "LoadingAppId"; "required": false; }; "loadingAppId": { "alias": "loadingAppId"; "required": false; }; "SwitcherStyle": { "alias": "SwitcherStyle"; "required": false; }; }, { "AppSelected": "AppSelected"; "appSelected": "appSelected"; }, never, never, false, never>;
|
|
191
219
|
}
|
|
192
220
|
//# sourceMappingURL=app-switcher.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-switcher.component.d.ts","sourceRoot":"","sources":["../../../../../src/lib/shell/components/header/app-switcher.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,YAAY,EAAyB,MAAM,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACpI,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAC1F,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;;AAmBrE;;;;;;GAMG;AACH,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG,SAAS,GAAG,MAAM,CAAC;AAO/D;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,qBAMa,oBAAqB,SAAQ,oBAAqB,YAAW,MAAM,EAAE,SAAS;
|
|
1
|
+
{"version":3,"file":"app-switcher.component.d.ts","sourceRoot":"","sources":["../../../../../src/lib/shell/components/header/app-switcher.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,YAAY,EAAyB,MAAM,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACpI,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAC1F,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;;AAmBrE;;;;;;GAMG;AACH,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG,SAAS,GAAG,MAAM,CAAC;AAO/D;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,qBAMa,oBAAqB,SAAQ,oBAAqB,YAAW,MAAM,EAAE,SAAS;IA+E7E,OAAO,CAAC,UAAU;IAAsB,OAAO,CAAC,GAAG;IA9E/D,OAAO,CAAC,QAAQ,CAAuB;IAC9B,SAAS,EAAE,eAAe,GAAG,IAAI,CAAQ;IAElD,yCAAyC;IACzC,IAAa,SAAS,CAAC,KAAK,EAAE,eAAe,GAAG,IAAI,EAEnD;IACD,yCAAyC;IACzC,IAAI,SAAS,IAAI,eAAe,GAAG,IAAI,CAEtC;IACQ,kBAAkB,UAAS;IAEpC,kDAAkD;IAClD,IAAa,kBAAkB,CAAC,KAAK,EAAE,oBAAoB,CAAC,oBAAoB,CAAC,EAEhF;IACD,kDAAkD;IAClD,IAAI,kBAAkB,IAAI,oBAAoB,CAAC,oBAAoB,CAAC,CAEnE;IACD,qEAAqE;IAC5D,YAAY,EAAE,MAAM,GAAG,IAAI,CAAQ;IAE5C,4CAA4C;IAC5C,IAAa,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,EAE7C;IACD,4CAA4C;IAC5C,IAAI,YAAY,IAAI,MAAM,GAAG,IAAI,CAEhC;IACD,wEAAwE;IAC/D,aAAa,EAAE,gBAAgB,CAAU;IACxC,WAAW,uBAA8B;IAEnD;;;;;;OAMG;IACO,WAA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