@memberjunction/ng-explorer-core 6.2.0-edge.7 → 6.2.0-edge.8

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.
@@ -12,13 +12,14 @@ import * as i10 from "@memberjunction/ng-ui-components";
12
12
  import * as i11 from "@memberjunction/ng-explorer-settings";
13
13
  import * as i12 from "@memberjunction/ng-shared-generic";
14
14
  import * as i13 from "@memberjunction/ng-search";
15
- import * as i14 from "./components/record-open/records-hub-pill.component";
16
- import * as i15 from "./components/record-open/record-bar.component";
17
- import * as i16 from "./components/record-open/record-switcher-sheet.component";
18
- import * as i17 from "@memberjunction/ng-realtime-media";
15
+ import * as i14 from "@memberjunction/ng-diagnostics";
16
+ import * as i15 from "./components/record-open/records-hub-pill.component";
17
+ import * as i16 from "./components/record-open/record-bar.component";
18
+ import * as i17 from "./components/record-open/record-switcher-sheet.component";
19
+ import * as i18 from "@memberjunction/ng-realtime-media";
19
20
  export declare class ShellModule {
20
21
  static ɵfac: i0.ɵɵFactoryDeclaration<ShellModule, never>;
21
- static ɵmod: i0.ɵɵNgModuleDeclaration<ShellModule, [typeof i1.ShellComponent, typeof i2.AppSwitcherComponent, typeof i3.AppNavComponent, typeof i4.TabContainerComponent, typeof i5.AppAccessDialogComponent, typeof i6.CommandPaletteComponent, typeof i7.OmnibarPaletteComponent], [typeof i8.CommonModule, typeof i9.FormsModule, typeof i10.MJDropdownComponent, typeof i10.MJClickableDirective, typeof i10.MJButtonDirective, typeof i10.MJEmptyStateComponent, typeof i11.ExplorerSettingsModule, typeof i12.SharedGenericModule, typeof i13.SearchModule, typeof i14.RecordsHubPillComponent, typeof i15.RecordBarComponent, typeof i16.RecordSwitcherSheetComponent, typeof i17.SharePanelDirective], [typeof i1.ShellComponent]>;
22
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ShellModule, [typeof i1.ShellComponent, typeof i2.AppSwitcherComponent, typeof i3.AppNavComponent, typeof i4.TabContainerComponent, typeof i5.AppAccessDialogComponent, typeof i6.CommandPaletteComponent, typeof i7.OmnibarPaletteComponent], [typeof i8.CommonModule, typeof i9.FormsModule, typeof i10.MJDropdownComponent, typeof i10.MJClickableDirective, typeof i10.MJButtonDirective, typeof i10.MJEmptyStateComponent, typeof i11.ExplorerSettingsModule, typeof i12.SharedGenericModule, typeof i13.SearchModule, typeof i14.MJDiagnosticsModule, typeof i15.RecordsHubPillComponent, typeof i16.RecordBarComponent, typeof i17.RecordSwitcherSheetComponent, typeof i18.SharePanelDirective], [typeof i1.ShellComponent]>;
22
23
  static ɵinj: i0.ɵɵInjectorDeclaration<ShellModule>;
23
24
  }
24
25
  //# sourceMappingURL=shell.module.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"shell.module.d.ts","sourceRoot":"","sources":["../../../src/lib/shell/shell.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAsBA,qBAgCa,WAAW;yCAAX,WAAW;0CAAX,WAAW;0CAAX,WAAW;CAAI"}
1
+ {"version":3,"file":"shell.module.d.ts","sourceRoot":"","sources":["../../../src/lib/shell/shell.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAuBA,qBAiCa,WAAW;yCAAX,WAAW;0CAAX,WAAW;0CAAX,WAAW;CAAI"}
@@ -17,6 +17,7 @@ import { ExplorerSettingsModule } from '@memberjunction/ng-explorer-settings';
17
17
  import { SharedGenericModule } from '@memberjunction/ng-shared-generic';
18
18
  import { MJDropdownComponent, MJClickableDirective, MJButtonDirective, MJEmptyStateComponent } from '@memberjunction/ng-ui-components';
19
19
  import { SearchModule } from '@memberjunction/ng-search';
20
+ import { MJDiagnosticsModule } from '@memberjunction/ng-diagnostics';
20
21
  // Marks the main content area as a panel a call can share on its own ("This panel").
21
22
  import { SharePanelDirective } from '@memberjunction/ng-realtime-media';
22
23
  import * as i0 from "@angular/core";
@@ -32,6 +33,7 @@ export class ShellModule {
32
33
  ExplorerSettingsModule,
33
34
  SharedGenericModule,
34
35
  SearchModule,
36
+ MJDiagnosticsModule,
35
37
  RecordSwitcherSheetComponent] });
36
38
  }
37
39
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ShellModule, [{
@@ -56,6 +58,7 @@ export class ShellModule {
56
58
  ExplorerSettingsModule,
57
59
  SharedGenericModule,
58
60
  SearchModule,
61
+ MJDiagnosticsModule,
59
62
  RecordsHubPillComponent,
60
63
  RecordBarComponent,
61
64
  RecordSwitcherSheetComponent,
@@ -84,6 +87,7 @@ export class ShellModule {
84
87
  ExplorerSettingsModule,
85
88
  SharedGenericModule,
86
89
  SearchModule,
90
+ MJDiagnosticsModule,
87
91
  RecordsHubPillComponent,
88
92
  RecordBarComponent,
89
93
  RecordSwitcherSheetComponent,
@@ -1 +1 @@
1
- {"version":3,"file":"shell.module.js","sourceRoot":"","sources":["../../../src/lib/shell/shell.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAClF,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACxE,OAAO,EAAE,qBAAqB,EAAE,MAAM,2CAA2C,CAAC;AAClF,OAAO,EAAE,wBAAwB,EAAE,MAAM,kDAAkD,CAAC;AAC5F,OAAO,EAAE,uBAAuB,EAAE,MAAM,8CAA8C,CAAC;AACvF,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,qBAAqB,EAAE,MAAM,4CAA4C,CAAC;AACnF,yEAAyE;AACzE,OAAO,EAAE,uBAAuB,EAAE,MAAM,qDAAqD,CAAC;AAC9F,OAAO,EAAE,kBAAkB,EA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;QACjB,qBAAqB;QACrB,sBAAsB;QACtB,mBAAmB;QACnB,YAAY;QACZ,uBAAuB;QACvB,kBAAkB;QAClB,4BAA4B;QAC5B,mBAAmB,aAMnB,cAAc","sourcesContent":["import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\nimport { ShellComponent } from './shell.component';\nimport { AppSwitcherComponent } from './components/header/app-switcher.component';\nimport { AppNavComponent } from './components/header/app-nav.component';\nimport { TabContainerComponent } from './components/tabs/tab-container.component';\nimport { AppAccessDialogComponent } from './components/dialogs/app-access-dialog.component';\nimport { CommandPaletteComponent } from '../command-palette/command-palette.component';\nimport { OmnibarPaletteComponent } from '../omnibar/omnibar-palette.component';\nimport { CommandPaletteService } from '../command-palette/command-palette.service';\n// Records-style record-open surface (Shell.RecordOpen.Style = 'records')\nimport { RecordsHubPillComponent } from './components/record-open/records-hub-pill.component';\nimport { RecordBarComponent } from './components/record-open/record-bar.component';\nimport { RecordSwitcherSheetComponent } from './components/record-open/record-switcher-sheet.component';\nimport { ExplorerSettingsModule } from '@memberjunction/ng-explorer-settings';\nimport { SharedGenericModule } from '@memberjunction/ng-shared-generic';\nimport { MJDropdownComponent, MJClickableDirective, MJButtonDirective, MJEmptyStateComponent } from '@memberjunction/ng-ui-components';\nimport { SearchModule } from '@memberjunction/ng-search';\n// Marks the main content area as a panel a call can share on its own (\"This panel\").\nimport { SharePanelDirective } from '@memberjunction/ng-realtime-media';\n\n@NgModule({\n declarations: [\n ShellComponent,\n AppSwitcherComponent,\n AppNavComponent,\n TabContainerComponent,\n AppAccessDialogComponent,\n CommandPaletteComponent,\n OmnibarPaletteComponent\n ],\n imports: [\n CommonModule,\n FormsModule,\n MJDropdownComponent,\n MJClickableDirective,\n MJButtonDirective,\n MJEmptyStateComponent,\n ExplorerSettingsModule,\n SharedGenericModule,\n SearchModule,\n RecordsHubPillComponent,\n RecordBarComponent,\n RecordSwitcherSheetComponent,\n SharePanelDirective\n ],\n providers: [\n CommandPaletteService\n ],\n exports: [\n ShellComponent\n ]\n})\nexport class ShellModule { }\n"]}
1
+ {"version":3,"file":"shell.module.js","sourceRoot":"","sources":["../../../src/lib/shell/shell.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAClF,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACxE,OAAO,EAAE,qBAAqB,EAAE,MAAM,2CAA2C,CAAC;AAClF,OAAO,EAAE,wBAAwB,EAAE,MAAM,kDAAkD,CAAC;AAC5F,OAAO,EAAE,uBAAuB,EAAE,MAAM,8CAA8C,CAAC;AACvF,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,qBAAqB,EAAE,MAAM,4CAA4C,CAAC;AACnF,yEAAyE;AACzE,OAAO,EAAE,uBAAuB,EAAE,MAAM,qDAAqD,CAAC;AAC9F,OAAO,EAAE,kBAAkB,EAAE,MAAM,+CAA+C,CAAC;AACnF,OAAO,EAAE,4BAA4B,EAAE,MAAM,0DAA0D,CAAC;AACxG,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAC9E,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACvI,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACrE,qFAAqF;AACrF,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;;AAmCxE,MAAM,OAAO,WAAW;qGAAX,WAAW;4DAAX,WAAW;iEAPX;YACT,qBAAqB;SACtB,YAjBC,YAAY;YACZ,WAAW;YACX,mBAAmB;YAGnB,qBAAqB;YACrB,sBAAsB;YACtB,mBAAmB;YACnB,YAAY;YACZ,mBAAmB;YAGnB,4BAA4B;;iFAUnB,WAAW;cAjCvB,QAAQ;eAAC;gBACR,YAAY,EAAE;oBACZ,cAAc;oBACd,oBAAoB;oBACpB,eAAe;oBACf,qBAAqB;oBACrB,wBAAwB;oBACxB,uBAAuB;oBACvB,uBAAuB;iBACxB;gBACD,OAAO,EAAE;oBACP,YAAY;oBACZ,WAAW;oBACX,mBAAmB;oBACnB,oBAAoB;oBACpB,iBAAiB;oBACjB,qBAAqB;oBACrB,sBAAsB;oBACtB,mBAAmB;oBACnB,YAAY;oBACZ,mBAAmB;oBACnB,uBAAuB;oBACvB,kBAAkB;oBAClB,4BAA4B;oBAC5B,mBAAmB;iBACpB;gBACD,SAAS,EAAE;oBACT,qBAAqB;iBACtB;gBACD,OAAO,EAAE;oBACP,cAAc;iBACf;aACF;;wFACY,WAAW,mBA/BpB,cAAc;QACd,oBAAoB;QACpB,eAAe;QACf,qBAAqB;QACrB,wBAAwB;QACxB,uBAAuB;QACvB,uBAAuB,aAGvB,YAAY;QACZ,WAAW;QACX,mBAAmB;QACnB,oBAAoB;QACpB,iBAAiB;QACjB,qBAAqB;QACrB,sBAAsB;QACtB,mBAAmB;QACnB,YAAY;QACZ,mBAAmB;QACnB,uBAAuB;QACvB,kBAAkB;QAClB,4BAA4B;QAC5B,mBAAmB,aAMnB,cAAc","sourcesContent":["import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\nimport { ShellComponent } from './shell.component';\nimport { AppSwitcherComponent } from './components/header/app-switcher.component';\nimport { AppNavComponent } from './components/header/app-nav.component';\nimport { TabContainerComponent } from './components/tabs/tab-container.component';\nimport { AppAccessDialogComponent } from './components/dialogs/app-access-dialog.component';\nimport { CommandPaletteComponent } from '../command-palette/command-palette.component';\nimport { OmnibarPaletteComponent } from '../omnibar/omnibar-palette.component';\nimport { CommandPaletteService } from '../command-palette/command-palette.service';\n// Records-style record-open surface (Shell.RecordOpen.Style = 'records')\nimport { RecordsHubPillComponent } from './components/record-open/records-hub-pill.component';\nimport { RecordBarComponent } from './components/record-open/record-bar.component';\nimport { RecordSwitcherSheetComponent } from './components/record-open/record-switcher-sheet.component';\nimport { ExplorerSettingsModule } from '@memberjunction/ng-explorer-settings';\nimport { SharedGenericModule } from '@memberjunction/ng-shared-generic';\nimport { MJDropdownComponent, MJClickableDirective, MJButtonDirective, MJEmptyStateComponent } from '@memberjunction/ng-ui-components';\nimport { SearchModule } from '@memberjunction/ng-search';\nimport { MJDiagnosticsModule } from '@memberjunction/ng-diagnostics';\n// Marks the main content area as a panel a call can share on its own (\"This panel\").\nimport { SharePanelDirective } from '@memberjunction/ng-realtime-media';\n\n@NgModule({\n declarations: [\n ShellComponent,\n AppSwitcherComponent,\n AppNavComponent,\n TabContainerComponent,\n AppAccessDialogComponent,\n CommandPaletteComponent,\n OmnibarPaletteComponent\n ],\n imports: [\n CommonModule,\n FormsModule,\n MJDropdownComponent,\n MJClickableDirective,\n MJButtonDirective,\n MJEmptyStateComponent,\n ExplorerSettingsModule,\n SharedGenericModule,\n SearchModule,\n MJDiagnosticsModule,\n RecordsHubPillComponent,\n RecordBarComponent,\n RecordSwitcherSheetComponent,\n SharePanelDirective\n ],\n providers: [\n CommandPaletteService\n ],\n exports: [\n ShellComponent\n ]\n})\nexport class ShellModule { }\n"]}
@@ -129,6 +129,8 @@ export declare class BaseUserMenu {
129
129
  protected Handle_submit_feedback(): Promise<UserMenuActionResult>;
130
130
  /** Signal the shell to open the About dialog */
131
131
  protected Handle_about(): Promise<UserMenuActionResult>;
132
+ /** Signal the shell to open the Diagnostic Bundle dialog */
133
+ protected Handle_diagnostic_bundle(): Promise<UserMenuActionResult>;
132
134
  /**
133
135
  * Build menu items for each registered theme plus a 'System' option.
134
136
  * Each theme gets a `select-theme-<id>` item ID. The currently active
@@ -1 +1 @@
1
- {"version":3,"file":"base-user-menu.d.ts","sourceRoot":"","sources":["../../../src/lib/user-menu/base-user-menu.ts"],"names":[],"mappings":"AACA,OAAO,EACH,YAAY,EACZ,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,eAAe,EAEf,eAAe,EAClB,MAAM,mBAAmB,CAAC;AAE3B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,qBAAa,YAAY;IACrB,SAAS,CAAC,QAAQ,EAAE,eAAe,GAAG,IAAI,CAAQ;IAClD,SAAS,CAAC,QAAQ,EAAE,eAAe,CAAC;;IAUpC;;OAEG;IACU,UAAU,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC;IAKhE;;OAEG;cACa,YAAY,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC;IAIrE;;OAEG;IACI,OAAO,IAAI,IAAI;IAQtB;;OAEG;IACH,SAAS,CAAC,iBAAiB,IAAI,eAAe;IAS9C;;OAEG;IACI,UAAU,IAAI,eAAe;IAIpC;;OAEG;IACI,UAAU,CAAC,OAAO,EAAE,OAAO,CAAC,eAAe,CAAC,GAAG,IAAI;IAQ1D;;;;;;;;OAQG;IACI,YAAY,IAAI,YAAY,EAAE;IA6FrC;;;OAGG;IACI,eAAe,IAAI,eAAe,EAAE;IA8B3C;;OAEG;IACH,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO;IAUpD;;;OAGG;IACH,SAAS,CAAC,aAAa,IAAI,MAAM,EAAE;IAInC;;OAEG;IACH,SAAS,CAAC,UAAU,CAAC,KAAK,EAAE,YAAY,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,YAAY,EAAE,CAAC;IAe3E;;;OAGG;IACU,eAAe,CAAC,MAA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AC,oBAAoB,CAAC;IASpE;;OAEG;cACa,aAAa,IAAI,OAAO,CAAC,oBAAoB,CAAC;IAmB9D;;OAEG;cACa,kBAAkB,IAAI,OAAO,CAAC,oBAAoB,CAAC;IAUnE;;;;OAIG;cACa,qBAAqB,IAAI,OAAO,CAAC,oBAAoB,CAAC;IAQtE,mDAAmD;cACnC,sBAAsB,IAAI,OAAO,CAAC,oBAAoB,CAAC;IAQvE,gDAAgD;cAChC,YAAY,IAAI,OAAO,CAAC,oBAAoB,CAAC;IAQ7D,4DAA4D;cAC5C,wBAAwB,IAAI,OAAO,CAAC,oBAAoB,CAAC;IAYzE;;;;OAIG;IACH,SAAS,CAAC,mBAAmB,IAAI,YAAY,EAAE;IAwC/C;;;OAGG;IACH,SAAS,CAAC,wBAAwB,CAAC,SAAS,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM;IAQvE;;OAEG;IACI,kBAAkB,IAAI,eAAe;IAe5C;;OAEG;IACH,SAAS,CAAC,aAAa,IAAI,MAAM;IAIjC;;OAEG;IACH,SAAS,KAAK,OAAO,IAAI,eAAe,GAAG,IAAI,CAE9C;IAED;;OAEG;IACI,aAAa,CAAC,OAAO,EAAE,OAAO,CAAC,eAAe,CAAC,GAAG,IAAI;CAKhE"}
@@ -159,6 +159,17 @@ export class BaseUserMenu {
159
159
  enabled: true,
160
160
  tooltip: 'Reset workspace to default layout'
161
161
  },
162
+ {
163
+ id: 'diagnostic-bundle',
164
+ label: 'Diagnostic Bundle',
165
+ icon: 'fa-solid fa-stethoscope',
166
+ group: 'system',
167
+ order: 15,
168
+ developerOnly: false,
169
+ visible: true,
170
+ enabled: true,
171
+ tooltip: 'Capture, download, or submit a diagnostic bundle (.mjdiag)'
172
+ },
162
173
  {
163
174
  id: 'about',
164
175
  label: 'About MemberJunction',
@@ -371,6 +382,14 @@ export class BaseUserMenu {
371
382
  message: 'about'
372
383
  };
373
384
  }
385
+ /** Signal the shell to open the Diagnostic Bundle dialog */
386
+ async Handle_diagnostic_bundle() {
387
+ return {
388
+ success: true,
389
+ closeMenu: true,
390
+ message: 'diagnostic-bundle'
391
+ };
392
+ }
374
393
  // ========================================
375
394
  // THEME HELPERS
376
395
  // ========================================
@@ -1 +1 @@
1
- {"version":3,"file":"base-user-menu.js","sourceRoot":"","sources":["../../../src/lib/user-menu/base-user-menu.ts"],"names":[],"mappings":"AAWA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,MAAM,OAAO,YAAY;IACX,QAAQ,GAA2B,IAAI,CAAC;IACxC,QAAQ,CAAkB;IAEpC;QACI,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,iBAAiB,EAAE,CAAC;IAC7C,CAAC;IAED,2CAA2C;IAC3C,iBAAiB;IACjB,2CAA2C;IAE3C;;OAEG;IACI,KAAK,CAAC,UAAU,CAAC,OAAwB;QAC5C,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QACxB,MAAM,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;IACrC,CAAC;IAED;;OAEG;IACO,KAAK,CAAC,YAAY,CAAC,OAAwB;QACjD,iDAAiD;IACrD,CAAC;IAED;;OAEG;IACI,OAAO;QACV,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;IACzB,CAAC;IAED,2CAA2C;IAC3C,UAAU;IACV,2CAA2C;IAE3C;;OAEG;IACO,iBAAiB;QACvB,OAAO;YACH,YAAY,EAAE,IAAI;YAClB,aAAa,EAAE,IAAI;YACnB,YAAY,EAAE,YAAY;YAC1B,cAAc,EAAE,MAAM;SACzB,CAAC;IACN,CAAC;IAED;;OAEG;IACI,UAAU;QACb,OAAO,EAAE,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;IAChC,CAAC;IAED;;OAEG;IACI,UAAU,CAAC,OAAiC;QAC/C,IAAI,CAAC,QAAQ,GAAG,EAAE,GAAG,IAAI,CAAC,QAAQ,EAAE,GAAG,OAAO,EAAE,CAAC;IACrD,CAAC;IAED,2CAA2C;IA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,IAAI,CAAC,QAAQ,GAAG,EAAE,GAAG,IAAI,CAAC,QAAQ,EAAE,GAAG,OAAO,EAAE,CAAC;QACrD,CAAC;IACL,CAAC;CACJ","sourcesContent":["import { RegisterClass } from '@memberjunction/global';\nimport {\n UserMenuItem,\n UserMenuElement,\n UserMenuContext,\n UserMenuActionResult,\n UserMenuOptions,\n UserMenuDivider,\n UserDisplayInfo\n} from './user-menu.types';\n\n/**\n * Base class for user menu implementations with built-in default behavior.\n *\n * This class provides the standard MemberJunction user menu. To customize:\n * 1. Create a subclass\n * 2. Register with @RegisterClass(BaseUserMenu)\n * 3. Override methods as needed\n *\n * Subclasses automatically get higher priority via compiler order since they\n * import this class, causing their @RegisterClass to execute after this one.\n *\n * @example\n * ```typescript\n * // In your custom app\n * import { BaseUserMenu } from '@memberjunction/ng-explorer-core';\n *\n * @RegisterClass(BaseUserMenu)\n * export class MyAppUserMenu extends BaseUserMenu {\n * public override GetMenuItems(): UserMenuItem[] {\n * const items = super.GetMenuItems();\n * // Add, remove, or modify items\n * items.push({ id: 'custom', label: 'My Custom Action', ... });\n * return items;\n * }\n *\n * protected override async Handle_custom(): Promise<UserMenuActionResult> {\n * // Handle the custom action\n * return { success: true, closeMenu: true };\n * }\n * }\n * ```\n */\nexport class BaseUserMenu {\n protected _context: UserMenuContext | null = null;\n protected _options: UserMenuOptions;\n\n constructor() {\n this._options = this.GetDefaultOptions();\n }\n\n // ========================================\n // INITIALIZATION\n // ========================================\n\n /**\n * Initialize the menu with context. Called by shell component.\n */\n public async Initialize(context: UserMenuContext): Promise<void> {\n this._context = context;\n await this.OnInitialize(context);\n }\n\n /**\n * Override to perform custom initialization\n */\n protected async OnInitialize(context: UserMenuContext): Promise<void> {\n // Override in subclass for custom initialization\n }\n\n /**\n * Cleanup when menu is destroyed\n */\n public Destroy(): void {\n this._context = null;\n }\n\n // ========================================\n // OPTIONS\n // ========================================\n\n /**\n * Get default menu configuration options\n */\n protected GetDefaultOptions(): UserMenuOptions {\n return {\n showUserName: true,\n showUserEmail: true,\n menuPosition: 'below-left',\n animationStyle: 'fade'\n };\n }\n\n /**\n * Get current menu options\n */\n public GetOptions(): UserMenuOptions {\n return { ...this._options };\n }\n\n /**\n * Update menu options\n */\n public SetOptions(options: Partial<UserMenuOptions>): void {\n this._options = { ...this._options, ...options };\n }\n\n // ========================================\n // MENU ITEMS - Override to customize\n // ========================================\n\n /**\n * Get all menu items. Override to customize the menu structure.\n *\n * Items are grouped by the `group` property with dividers between groups.\n * Groups are rendered in this order: primary, developer, system, danger.\n *\n * Developer-only items are automatically hidden unless the user has\n * Developer role AND developer mode is enabled.\n */\n public GetMenuItems(): UserMenuItem[] {\n return [\n // === PRIMARY GROUP ===\n {\n id: 'profile',\n label: 'My Profile',\n icon: 'fa-solid fa-user-circle',\n group: 'primary',\n order: 10,\n developerOnly: false,\n visible: true,\n enabled: true,\n tooltip: 'View and edit your profile'\n },\n {\n id: 'pin-to-home',\n label: 'Pin to Home',\n icon: 'fa-solid fa-house-chimney',\n group: 'primary',\n order: 20,\n developerOnly: false,\n visible: true,\n enabled: true,\n tooltip: 'Pin the current resource to your Home dashboard'\n },\n {\n id: 'sharing-center',\n label: 'Sharing Center',\n icon: 'fa-solid fa-share-nodes',\n group: 'primary',\n order: 25,\n developerOnly: false,\n visible: true,\n enabled: true,\n tooltip: \"See what you've shared and what's been shared with you\"\n },\n {\n id: 'submit-feedback',\n label: 'Submit Feedback',\n icon: 'fa-solid fa-comment-dots',\n group: 'primary',\n order: 30,\n developerOnly: false,\n visible: this._context?.feedbackEnabled !== false,\n enabled: true,\n tooltip: 'Report a bug or request a feature'\n },\n\n // Developer tools live in the Admin app's \"Developer Tools\" section,\n // not in this menu. The DeveloperModeService still exists for\n // per-record dev affordances (e.g. \"open in CodeGen\" links).\n\n // === SYSTEM GROUP (Theme selection) ===\n ...this.BuildThemeMenuItems(),\n {\n id: 'reset-layout',\n label: 'Reset Layout',\n icon: 'fa-solid fa-rotate-left',\n group: 'system',\n order: 10,\n developerOnly: false,\n visible: true,\n enabled: true,\n tooltip: 'Reset workspace to default layout'\n },\n {\n id: 'about',\n label: 'About MemberJunction',\n icon: 'fa-solid fa-circle-info',\n group: 'system',\n order: 20,\n developerOnly: false,\n visible: true,\n enabled: true,\n tooltip: 'Version, diagnostics, and links'\n },\n\n // === DANGER GROUP ===\n {\n id: 'logout',\n label: 'Sign Out',\n icon: 'fa-solid fa-sign-out-alt',\n color: '#c62828',\n cssClass: 'danger',\n group: 'danger',\n order: 100,\n developerOnly: false,\n visible: true,\n enabled: true\n }\n ];\n }\n\n /**\n * Get the complete menu element list including dividers between groups.\n * This is called by the template to render the menu.\n */\n public GetMenuElements(): UserMenuElement[] {\n const items = this.GetMenuItems();\n const visibleItems = items.filter(item => this.IsItemVisible(item));\n\n // Group items\n const groups = this.GroupItems(visibleItems);\n const elements: UserMenuElement[] = [];\n\n // Define group order\n const groupOrder = this.GetGroupOrder();\n const sortedGroupKeys = Object.keys(groups).sort((a, b) => {\n const aIndex = groupOrder.indexOf(a);\n const bIndex = groupOrder.indexOf(b);\n return (aIndex === -1 ? 999 : aIndex) - (bIndex === -1 ? 999 : bIndex);\n });\n\n // Build element list with dividers\n sortedGroupKeys.forEach((group, index) => {\n if (index > 0) {\n elements.push({ type: 'divider', group } as UserMenuDivider);\n }\n\n // Sort items within group by order\n const groupItems = groups[group].sort((a, b) => a.order - b.order);\n elements.push(...groupItems);\n });\n\n return elements;\n }\n\n /**\n * Check if a menu item should be visible based on current context\n */\n protected IsItemVisible(item: UserMenuItem): boolean {\n // Check developer-only visibility\n if (item.developerOnly && !this._context?.isDeveloper) {\n return false;\n }\n\n // Check item's own visible flag\n return item.visible;\n }\n\n /**\n * Get the ordered list of group names for menu rendering.\n * Override to insert custom groups (e.g., 'organization' before 'primary').\n */\n protected GetGroupOrder(): string[] {\n return ['primary', 'developer', 'system', 'danger'];\n }\n\n /**\n * Group items by their group property\n */\n protected GroupItems(items: UserMenuItem[]): Record<string, UserMenuItem[]> {\n return items.reduce((groups, item) => {\n const group = item.group || 'primary';\n if (!groups[group]) {\n groups[group] = [];\n }\n groups[group].push(item);\n return groups;\n }, {} as Record<string, UserMenuItem[]>);\n }\n\n // ========================================\n // CLICK HANDLING\n // ========================================\n\n /**\n * Handle menu item click. Dispatches to specific Handle_<id> methods.\n * Theme selection items (select-theme-*) are routed to HandleThemeSelection.\n */\n public async HandleItemClick(itemId: string): Promise<UserMenuActionResult> {\n const items = this.GetMenuItems();\n const item = items.find(i => i.id === itemId);\n\n if (!item || !item.enabled) {\n return { success: false, closeMenu: false, message: 'Item not found or disabled' };\n }\n\n // Route theme selection items to the theme handler\n if (itemId.startsWith('select-theme-')) {\n const themeId = itemId.substring('select-theme-'.length);\n return await this.HandleThemeSelection(themeId);\n }\n\n // Convert item id to handler method name (e.g., 'toggle-dev-mode' -> 'Handle_toggle_dev_mode')\n const handlerName = `Handle_${itemId.replace(/-/g, '_')}` as keyof this;\n\n if (typeof this[handlerName] === 'function') {\n return await (this[handlerName] as () => Promise<UserMenuActionResult>).call(this);\n }\n\n // Fall back to generic handler\n return await this.OnItemClick(item);\n }\n\n /**\n * Generic click handler for items without specific handlers.\n * Override for custom default behavior.\n */\n protected async OnItemClick(item: UserMenuItem): Promise<UserMenuActionResult> {\n console.warn(`No handler defined for menu item: ${item.id}`);\n return { success: false, closeMenu: true };\n }\n\n // ========================================\n // DEFAULT HANDLERS - Override to customize\n // ========================================\n\n /**\n * Handle \"My Profile\" click — signals the shell to open the new\n * Identity Card profile dialog. The shell wires this to ProfileDialogService.\n */\n protected async Handle_profile(): Promise<UserMenuActionResult> {\n return {\n success: true,\n closeMenu: true,\n message: 'profile'\n };\n }\n\n /**\n * Handle theme selection clicks.\n * Item IDs follow the pattern 'select-theme-<themeId>'.\n */\n protected async HandleThemeSelection(themeId: string): Promise<UserMenuActionResult> {\n return {\n success: true,\n closeMenu: false, // Keep menu open to see updated state\n message: `select-theme-${themeId}` // Signal for shell to handle\n };\n }\n\n /**\n * Handle \"Reset Layout\" click\n */\n protected async Handle_reset_layout(): Promise<UserMenuActionResult> {\n // Signal to shell to handle reset layout\n return {\n success: true,\n closeMenu: true,\n message: 'reset-layout' // Special signal for shell to handle\n };\n }\n\n /**\n * Handle \"Sign Out\" click\n */\n protected async Handle_logout(): Promise<UserMenuActionResult> {\n if (!this._context?.authService) {\n return { success: false, closeMenu: true, message: 'Auth service not available' };\n }\n\n // Clear auth data\n localStorage.removeItem('auth');\n localStorage.removeItem('claims');\n\n // Call logout\n await this._context.authService.logout();\n\n return { success: true, closeMenu: true };\n }\n\n // ========================================\n // PIN TO HOME HELPERS\n // ========================================\n\n /**\n * Handle \"Pin to Home\" click - signals the shell to pin the active resource\n */\n protected async Handle_pin_to_home(): Promise<UserMenuActionResult> {\n // Signal the shell to handle the actual pinning (it has access to DI and the active tab)\n // The shell's handler checks for Home app and duplicate pin conditions\n return {\n success: true,\n closeMenu: true,\n message: 'pin-to-home'\n };\n }\n\n /**\n * Handle \"Sharing Center\" click — signals the shell to open the dialog.\n * The shell has access to `ViewContainerRef` and the dialog service; the\n * menu only needs to report the intent.\n */\n protected async Handle_sharing_center(): Promise<UserMenuActionResult> {\n return {\n success: true,\n closeMenu: true,\n message: 'sharing-center'\n };\n }\n\n /** Signal the shell to open the feedback dialog */\n protected async Handle_submit_feedback(): Promise<UserMenuActionResult> {\n return {\n success: true,\n closeMenu: true,\n message: 'submit-feedback'\n };\n }\n\n /** Signal the shell to open the About dialog */\n protected async Handle_about(): Promise<UserMenuActionResult> {\n return {\n success: true,\n closeMenu: true,\n message: 'about'\n };\n }\n\n // ========================================\n // THEME HELPERS\n // ========================================\n\n /**\n * Build menu items for each registered theme plus a 'System' option.\n * Each theme gets a `select-theme-<id>` item ID. The currently active\n * theme (or 'system' preference) shows a checkmark icon.\n */\n protected BuildThemeMenuItems(): UserMenuItem[] {\n const themes = this._context?.availableThemes ?? [];\n const currentPreference = this._context?.themePreference ?? 'system';\n const items: UserMenuItem[] = [];\n let order = 1;\n\n for (const theme of themes) {\n const isActive = currentPreference === theme.Id;\n items.push({\n id: `select-theme-${theme.Id}`,\n label: theme.Name,\n icon: isActive ? 'fa-solid fa-check' : this.GetThemeIconForBaseTheme(theme.BaseTheme),\n color: isActive ? '#4CAF50' : undefined,\n group: 'system',\n order: order++,\n developerOnly: false,\n visible: true,\n enabled: true,\n tooltip: theme.Description ?? `Switch to ${theme.Name} theme`\n });\n }\n\n // Always add a 'System' option (auto-detect OS preference)\n const isSystemActive = currentPreference === 'system';\n items.push({\n id: 'select-theme-system',\n label: 'System',\n icon: isSystemActive ? 'fa-solid fa-check' : 'fa-solid fa-desktop',\n color: isSystemActive ? '#4CAF50' : undefined,\n group: 'system',\n order: order++,\n developerOnly: false,\n visible: true,\n enabled: true,\n tooltip: 'Auto-detect theme from OS preference'\n });\n\n return items;\n }\n\n /**\n * Get an appropriate icon for a base theme type.\n * Used for non-active theme items to hint at light vs dark.\n */\n protected GetThemeIconForBaseTheme(baseTheme: 'light' | 'dark'): string {\n return baseTheme === 'dark' ? 'fa-solid fa-moon' : 'fa-solid fa-sun';\n }\n\n // ========================================\n // UTILITY METHODS\n // ========================================\n\n /**\n * Get user display information for menu header\n */\n public GetUserDisplayInfo(): UserDisplayInfo {\n const user = this._context?.userEntity;\n const name = user?.Name || this._context?.user?.Name || 'User';\n const email = user?.Email || '';\n const avatarUrl = user?.UserImageURL || null;\n\n // Generate initials from name\n const nameParts = name.split(' ').filter(Boolean);\n const initials = nameParts.length >= 2\n ? `${nameParts[0][0]}${nameParts[nameParts.length - 1][0]}`.toUpperCase()\n : name.substring(0, 2).toUpperCase();\n\n return { name, email, avatarUrl, initials };\n }\n\n /**\n * Generate a unique tab ID\n */\n protected GenerateTabId(): string {\n return `tab-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`;\n }\n\n /**\n * Get the current context (for subclasses)\n */\n protected get Context(): UserMenuContext | null {\n return this._context;\n }\n\n /**\n * Update context (called by shell when developer mode changes)\n */\n public UpdateContext(updates: Partial<UserMenuContext>): void {\n if (this._context) {\n this._context = { ...this._context, ...updates };\n }\n }\n}\n"]}
1
+ {"version":3,"file":"base-user-menu.js","sourceRoot":"","sources":["../../../src/lib/user-menu/base-user-menu.ts"],"names":[],"mappings":"AAWA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,MAAM,OAAO,YAAY;IACX,QAAQ,GAA2B,IAAI,CAAC;IACxC,QAAQ,CAAkB;IAEpC;QACI,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,iBAAiB,EAAE,CAAC;IAC7C,CAAC;IAED,2CAA2C;IAC3C,iBAAiB;IACjB,2CAA2C;IAE3C;;OAEG;IACI,KAAK,CAAC,UAAU,CAAC,OAAwB;QAC5C,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QACxB,MAAM,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;IACrC,CAAC;IAED;;OAEG;IACO,KAAK,CAAC,YAAY,CAAC,OAAwB;QACjD,iDAAiD;IACrD,CAAC;IAED;;OAEG;IACI,OAAO;QACV,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;IACzB,CAAC;IAED,2CAA2C;IAC3C,UAAU;IACV,2CAA2C;IAE3C;;OAEG;IACO,iBAAiB;QACvB,OAAO;YACH,YAAY,EAAE,IAAI;YAClB,aAAa,EAAE,IAAI;YACnB,YAAY,EAAE,YAAY;YAC1B,cAAc,EAAE,MAAM;SACzB,CAAC;IACN,CAAC;IAED;;OAEG;IACI,UAAU;QACb,OAAO,EAAE,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;IAChC,CAAC;IAED;;OAEG;IACI,UAAU,CAAC,OAAiC;QAC/C,IAAI,CAAC,QAAQ,GAAG,EAAE,GAAG,IAAI,CAAC,QAAQ,EAAE,GAAG,OAAO,EAAE,CAAC;IACrD,CAAC;IAED,2CAA2C;IAC3C,qCAAqC;IACrC,2CAA2C;IAE3C;;;;;;;;OAQG;IACI,YAAY;QACf,OAAO;YAC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AO,IAAI,CAAC,GAAG,EAAE,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC;IAC1E,CAAC;IAED;;OAEG;IACH,IAAc,OAAO;QACjB,OAAO,IAAI,CAAC,QAAQ,CAAC;IACzB,CAAC;IAED;;OAEG;IACI,aAAa,CAAC,OAAiC;QAClD,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;YAChB,IAAI,CAAC,QAAQ,GAAG,EAAE,GAAG,IAAI,CAAC,QAAQ,EAAE,GAAG,OAAO,EAAE,CAAC;QACrD,CAAC;IACL,CAAC;CACJ","sourcesContent":["import { RegisterClass } from '@memberjunction/global';\nimport {\n UserMenuItem,\n UserMenuElement,\n UserMenuContext,\n UserMenuActionResult,\n UserMenuOptions,\n UserMenuDivider,\n UserDisplayInfo\n} from './user-menu.types';\n\n/**\n * Base class for user menu implementations with built-in default behavior.\n *\n * This class provides the standard MemberJunction user menu. To customize:\n * 1. Create a subclass\n * 2. Register with @RegisterClass(BaseUserMenu)\n * 3. Override methods as needed\n *\n * Subclasses automatically get higher priority via compiler order since they\n * import this class, causing their @RegisterClass to execute after this one.\n *\n * @example\n * ```typescript\n * // In your custom app\n * import { BaseUserMenu } from '@memberjunction/ng-explorer-core';\n *\n * @RegisterClass(BaseUserMenu)\n * export class MyAppUserMenu extends BaseUserMenu {\n * public override GetMenuItems(): UserMenuItem[] {\n * const items = super.GetMenuItems();\n * // Add, remove, or modify items\n * items.push({ id: 'custom', label: 'My Custom Action', ... });\n * return items;\n * }\n *\n * protected override async Handle_custom(): Promise<UserMenuActionResult> {\n * // Handle the custom action\n * return { success: true, closeMenu: true };\n * }\n * }\n * ```\n */\nexport class BaseUserMenu {\n protected _context: UserMenuContext | null = null;\n protected _options: UserMenuOptions;\n\n constructor() {\n this._options = this.GetDefaultOptions();\n }\n\n // ========================================\n // INITIALIZATION\n // ========================================\n\n /**\n * Initialize the menu with context. Called by shell component.\n */\n public async Initialize(context: UserMenuContext): Promise<void> {\n this._context = context;\n await this.OnInitialize(context);\n }\n\n /**\n * Override to perform custom initialization\n */\n protected async OnInitialize(context: UserMenuContext): Promise<void> {\n // Override in subclass for custom initialization\n }\n\n /**\n * Cleanup when menu is destroyed\n */\n public Destroy(): void {\n this._context = null;\n }\n\n // ========================================\n // OPTIONS\n // ========================================\n\n /**\n * Get default menu configuration options\n */\n protected GetDefaultOptions(): UserMenuOptions {\n return {\n showUserName: true,\n showUserEmail: true,\n menuPosition: 'below-left',\n animationStyle: 'fade'\n };\n }\n\n /**\n * Get current menu options\n */\n public GetOptions(): UserMenuOptions {\n return { ...this._options };\n }\n\n /**\n * Update menu options\n */\n public SetOptions(options: Partial<UserMenuOptions>): void {\n this._options = { ...this._options, ...options };\n }\n\n // ========================================\n // MENU ITEMS - Override to customize\n // ========================================\n\n /**\n * Get all menu items. Override to customize the menu structure.\n *\n * Items are grouped by the `group` property with dividers between groups.\n * Groups are rendered in this order: primary, developer, system, danger.\n *\n * Developer-only items are automatically hidden unless the user has\n * Developer role AND developer mode is enabled.\n */\n public GetMenuItems(): UserMenuItem[] {\n return [\n // === PRIMARY GROUP ===\n {\n id: 'profile',\n label: 'My Profile',\n icon: 'fa-solid fa-user-circle',\n group: 'primary',\n order: 10,\n developerOnly: false,\n visible: true,\n enabled: true,\n tooltip: 'View and edit your profile'\n },\n {\n id: 'pin-to-home',\n label: 'Pin to Home',\n icon: 'fa-solid fa-house-chimney',\n group: 'primary',\n order: 20,\n developerOnly: false,\n visible: true,\n enabled: true,\n tooltip: 'Pin the current resource to your Home dashboard'\n },\n {\n id: 'sharing-center',\n label: 'Sharing Center',\n icon: 'fa-solid fa-share-nodes',\n group: 'primary',\n order: 25,\n developerOnly: false,\n visible: true,\n enabled: true,\n tooltip: \"See what you've shared and what's been shared with you\"\n },\n {\n id: 'submit-feedback',\n label: 'Submit Feedback',\n icon: 'fa-solid fa-comment-dots',\n group: 'primary',\n order: 30,\n developerOnly: false,\n visible: this._context?.feedbackEnabled !== false,\n enabled: true,\n tooltip: 'Report a bug or request a feature'\n },\n\n // Developer tools live in the Admin app's \"Developer Tools\" section,\n // not in this menu. The DeveloperModeService still exists for\n // per-record dev affordances (e.g. \"open in CodeGen\" links).\n\n // === SYSTEM GROUP (Theme selection) ===\n ...this.BuildThemeMenuItems(),\n {\n id: 'reset-layout',\n label: 'Reset Layout',\n icon: 'fa-solid fa-rotate-left',\n group: 'system',\n order: 10,\n developerOnly: false,\n visible: true,\n enabled: true,\n tooltip: 'Reset workspace to default layout'\n },\n {\n id: 'diagnostic-bundle',\n label: 'Diagnostic Bundle',\n icon: 'fa-solid fa-stethoscope',\n group: 'system',\n order: 15,\n developerOnly: false,\n visible: true,\n enabled: true,\n tooltip: 'Capture, download, or submit a diagnostic bundle (.mjdiag)'\n },\n {\n id: 'about',\n label: 'About MemberJunction',\n icon: 'fa-solid fa-circle-info',\n group: 'system',\n order: 20,\n developerOnly: false,\n visible: true,\n enabled: true,\n tooltip: 'Version, diagnostics, and links'\n },\n\n // === DANGER GROUP ===\n {\n id: 'logout',\n label: 'Sign Out',\n icon: 'fa-solid fa-sign-out-alt',\n color: '#c62828',\n cssClass: 'danger',\n group: 'danger',\n order: 100,\n developerOnly: false,\n visible: true,\n enabled: true\n }\n ];\n }\n\n /**\n * Get the complete menu element list including dividers between groups.\n * This is called by the template to render the menu.\n */\n public GetMenuElements(): UserMenuElement[] {\n const items = this.GetMenuItems();\n const visibleItems = items.filter(item => this.IsItemVisible(item));\n\n // Group items\n const groups = this.GroupItems(visibleItems);\n const elements: UserMenuElement[] = [];\n\n // Define group order\n const groupOrder = this.GetGroupOrder();\n const sortedGroupKeys = Object.keys(groups).sort((a, b) => {\n const aIndex = groupOrder.indexOf(a);\n const bIndex = groupOrder.indexOf(b);\n return (aIndex === -1 ? 999 : aIndex) - (bIndex === -1 ? 999 : bIndex);\n });\n\n // Build element list with dividers\n sortedGroupKeys.forEach((group, index) => {\n if (index > 0) {\n elements.push({ type: 'divider', group } as UserMenuDivider);\n }\n\n // Sort items within group by order\n const groupItems = groups[group].sort((a, b) => a.order - b.order);\n elements.push(...groupItems);\n });\n\n return elements;\n }\n\n /**\n * Check if a menu item should be visible based on current context\n */\n protected IsItemVisible(item: UserMenuItem): boolean {\n // Check developer-only visibility\n if (item.developerOnly && !this._context?.isDeveloper) {\n return false;\n }\n\n // Check item's own visible flag\n return item.visible;\n }\n\n /**\n * Get the ordered list of group names for menu rendering.\n * Override to insert custom groups (e.g., 'organization' before 'primary').\n */\n protected GetGroupOrder(): string[] {\n return ['primary', 'developer', 'system', 'danger'];\n }\n\n /**\n * Group items by their group property\n */\n protected GroupItems(items: UserMenuItem[]): Record<string, UserMenuItem[]> {\n return items.reduce((groups, item) => {\n const group = item.group || 'primary';\n if (!groups[group]) {\n groups[group] = [];\n }\n groups[group].push(item);\n return groups;\n }, {} as Record<string, UserMenuItem[]>);\n }\n\n // ========================================\n // CLICK HANDLING\n // ========================================\n\n /**\n * Handle menu item click. Dispatches to specific Handle_<id> methods.\n * Theme selection items (select-theme-*) are routed to HandleThemeSelection.\n */\n public async HandleItemClick(itemId: string): Promise<UserMenuActionResult> {\n const items = this.GetMenuItems();\n const item = items.find(i => i.id === itemId);\n\n if (!item || !item.enabled) {\n return { success: false, closeMenu: false, message: 'Item not found or disabled' };\n }\n\n // Route theme selection items to the theme handler\n if (itemId.startsWith('select-theme-')) {\n const themeId = itemId.substring('select-theme-'.length);\n return await this.HandleThemeSelection(themeId);\n }\n\n // Convert item id to handler method name (e.g., 'toggle-dev-mode' -> 'Handle_toggle_dev_mode')\n const handlerName = `Handle_${itemId.replace(/-/g, '_')}` as keyof this;\n\n if (typeof this[handlerName] === 'function') {\n return await (this[handlerName] as () => Promise<UserMenuActionResult>).call(this);\n }\n\n // Fall back to generic handler\n return await this.OnItemClick(item);\n }\n\n /**\n * Generic click handler for items without specific handlers.\n * Override for custom default behavior.\n */\n protected async OnItemClick(item: UserMenuItem): Promise<UserMenuActionResult> {\n console.warn(`No handler defined for menu item: ${item.id}`);\n return { success: false, closeMenu: true };\n }\n\n // ========================================\n // DEFAULT HANDLERS - Override to customize\n // ========================================\n\n /**\n * Handle \"My Profile\" click — signals the shell to open the new\n * Identity Card profile dialog. The shell wires this to ProfileDialogService.\n */\n protected async Handle_profile(): Promise<UserMenuActionResult> {\n return {\n success: true,\n closeMenu: true,\n message: 'profile'\n };\n }\n\n /**\n * Handle theme selection clicks.\n * Item IDs follow the pattern 'select-theme-<themeId>'.\n */\n protected async HandleThemeSelection(themeId: string): Promise<UserMenuActionResult> {\n return {\n success: true,\n closeMenu: false, // Keep menu open to see updated state\n message: `select-theme-${themeId}` // Signal for shell to handle\n };\n }\n\n /**\n * Handle \"Reset Layout\" click\n */\n protected async Handle_reset_layout(): Promise<UserMenuActionResult> {\n // Signal to shell to handle reset layout\n return {\n success: true,\n closeMenu: true,\n message: 'reset-layout' // Special signal for shell to handle\n };\n }\n\n /**\n * Handle \"Sign Out\" click\n */\n protected async Handle_logout(): Promise<UserMenuActionResult> {\n if (!this._context?.authService) {\n return { success: false, closeMenu: true, message: 'Auth service not available' };\n }\n\n // Clear auth data\n localStorage.removeItem('auth');\n localStorage.removeItem('claims');\n\n // Call logout\n await this._context.authService.logout();\n\n return { success: true, closeMenu: true };\n }\n\n // ========================================\n // PIN TO HOME HELPERS\n // ========================================\n\n /**\n * Handle \"Pin to Home\" click - signals the shell to pin the active resource\n */\n protected async Handle_pin_to_home(): Promise<UserMenuActionResult> {\n // Signal the shell to handle the actual pinning (it has access to DI and the active tab)\n // The shell's handler checks for Home app and duplicate pin conditions\n return {\n success: true,\n closeMenu: true,\n message: 'pin-to-home'\n };\n }\n\n /**\n * Handle \"Sharing Center\" click — signals the shell to open the dialog.\n * The shell has access to `ViewContainerRef` and the dialog service; the\n * menu only needs to report the intent.\n */\n protected async Handle_sharing_center(): Promise<UserMenuActionResult> {\n return {\n success: true,\n closeMenu: true,\n message: 'sharing-center'\n };\n }\n\n /** Signal the shell to open the feedback dialog */\n protected async Handle_submit_feedback(): Promise<UserMenuActionResult> {\n return {\n success: true,\n closeMenu: true,\n message: 'submit-feedback'\n };\n }\n\n /** Signal the shell to open the About dialog */\n protected async Handle_about(): Promise<UserMenuActionResult> {\n return {\n success: true,\n closeMenu: true,\n message: 'about'\n };\n }\n\n /** Signal the shell to open the Diagnostic Bundle dialog */\n protected async Handle_diagnostic_bundle(): Promise<UserMenuActionResult> {\n return {\n success: true,\n closeMenu: true,\n message: 'diagnostic-bundle'\n };\n }\n\n // ========================================\n // THEME HELPERS\n // ========================================\n\n /**\n * Build menu items for each registered theme plus a 'System' option.\n * Each theme gets a `select-theme-<id>` item ID. The currently active\n * theme (or 'system' preference) shows a checkmark icon.\n */\n protected BuildThemeMenuItems(): UserMenuItem[] {\n const themes = this._context?.availableThemes ?? [];\n const currentPreference = this._context?.themePreference ?? 'system';\n const items: UserMenuItem[] = [];\n let order = 1;\n\n for (const theme of themes) {\n const isActive = currentPreference === theme.Id;\n items.push({\n id: `select-theme-${theme.Id}`,\n label: theme.Name,\n icon: isActive ? 'fa-solid fa-check' : this.GetThemeIconForBaseTheme(theme.BaseTheme),\n color: isActive ? '#4CAF50' : undefined,\n group: 'system',\n order: order++,\n developerOnly: false,\n visible: true,\n enabled: true,\n tooltip: theme.Description ?? `Switch to ${theme.Name} theme`\n });\n }\n\n // Always add a 'System' option (auto-detect OS preference)\n const isSystemActive = currentPreference === 'system';\n items.push({\n id: 'select-theme-system',\n label: 'System',\n icon: isSystemActive ? 'fa-solid fa-check' : 'fa-solid fa-desktop',\n color: isSystemActive ? '#4CAF50' : undefined,\n group: 'system',\n order: order++,\n developerOnly: false,\n visible: true,\n enabled: true,\n tooltip: 'Auto-detect theme from OS preference'\n });\n\n return items;\n }\n\n /**\n * Get an appropriate icon for a base theme type.\n * Used for non-active theme items to hint at light vs dark.\n */\n protected GetThemeIconForBaseTheme(baseTheme: 'light' | 'dark'): string {\n return baseTheme === 'dark' ? 'fa-solid fa-moon' : 'fa-solid fa-sun';\n }\n\n // ========================================\n // UTILITY METHODS\n // ========================================\n\n /**\n * Get user display information for menu header\n */\n public GetUserDisplayInfo(): UserDisplayInfo {\n const user = this._context?.userEntity;\n const name = user?.Name || this._context?.user?.Name || 'User';\n const email = user?.Email || '';\n const avatarUrl = user?.UserImageURL || null;\n\n // Generate initials from name\n const nameParts = name.split(' ').filter(Boolean);\n const initials = nameParts.length >= 2\n ? `${nameParts[0][0]}${nameParts[nameParts.length - 1][0]}`.toUpperCase()\n : name.substring(0, 2).toUpperCase();\n\n return { name, email, avatarUrl, initials };\n }\n\n /**\n * Generate a unique tab ID\n */\n protected GenerateTabId(): string {\n return `tab-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`;\n }\n\n /**\n * Get the current context (for subclasses)\n */\n protected get Context(): UserMenuContext | null {\n return this._context;\n }\n\n /**\n * Update context (called by shell when developer mode changes)\n */\n public UpdateContext(updates: Partial<UserMenuContext>): void {\n if (this._context) {\n this._context = { ...this._context, ...updates };\n }\n }\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@memberjunction/ng-explorer-core",
3
- "version": "6.2.0-edge.7",
3
+ "version": "6.2.0-edge.8",
4
4
  "description": "MemberJunction Explorer: Core Angular Components",
5
5
  "main": "./dist/public-api.js",
6
6
  "typings": "./dist/public-api.d.ts",
@@ -14,9 +14,9 @@
14
14
  "@angular/compiler": "21.2.22",
15
15
  "@angular/compiler-cli": "21.2.22",
16
16
  "sass": "^1.97.3",
17
- "@memberjunction/ng-test-utils": "6.2.0-edge.7",
18
- "@memberjunction/sql-dialect": "6.2.0-edge.7",
19
- "@memberjunction/sql-parser": "6.2.0-edge.7"
17
+ "@memberjunction/ng-test-utils": "6.2.0-edge.8",
18
+ "@memberjunction/sql-dialect": "6.2.0-edge.8",
19
+ "@memberjunction/sql-parser": "6.2.0-edge.8"
20
20
  },
21
21
  "peerDependencies": {
22
22
  "@angular/animations": "^21.2.22",
@@ -29,64 +29,65 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@auth0/auth0-angular": "^2.6.0",
32
- "@memberjunction/ai-core-plus": "6.2.0-edge.7",
33
- "@memberjunction/ai-engine-base": "6.2.0-edge.7",
34
- "@memberjunction/communication-types": "6.2.0-edge.7",
35
- "@memberjunction/conversations-runtime": "6.2.0-edge.7",
36
- "@memberjunction/core": "6.2.0-edge.7",
37
- "@memberjunction/core-entities": "6.2.0-edge.7",
38
- "@memberjunction/entity-communications-client": "6.2.0-edge.7",
39
- "@memberjunction/export-engine": "6.2.0-edge.7",
40
- "@memberjunction/global": "6.2.0-edge.7",
41
- "@memberjunction/graphql-dataprovider": "6.2.0-edge.7",
42
- "@memberjunction/interactive-component-types": "6.2.0-edge.7",
43
- "@memberjunction/lists-base": "6.2.0-edge.7",
44
- "@memberjunction/theme-engine": "6.2.0-edge.7",
45
- "@memberjunction/ng-ai-test-harness": "6.2.0-edge.7",
46
- "@memberjunction/ng-artifacts": "6.2.0-edge.7",
47
- "@memberjunction/ng-auth-services": "6.2.0-edge.7",
48
- "@memberjunction/ng-base-application": "6.2.0-edge.7",
49
- "@memberjunction/ng-base-forms": "6.2.0-edge.7",
50
- "@memberjunction/ng-base-types": "6.2.0-edge.7",
51
- "@memberjunction/ng-composer": "6.2.0-edge.7",
52
- "@memberjunction/ng-container-directives": "6.2.0-edge.7",
53
- "@memberjunction/ng-conversation-offers": "6.2.0-edge.7",
54
- "@memberjunction/ng-conversations": "6.2.0-edge.7",
55
- "@memberjunction/ng-dashboard-viewer": "6.2.0-edge.7",
56
- "@memberjunction/ng-dashboards": "6.2.0-edge.7",
57
- "@memberjunction/ng-entity-form-dialog": "6.2.0-edge.7",
58
- "@memberjunction/ng-entity-permissions": "6.2.0-edge.7",
59
- "@memberjunction/ng-entity-viewer": "6.2.0-edge.7",
60
- "@memberjunction/ng-explorer-settings": "6.2.0-edge.7",
61
- "@memberjunction/ng-export-service": "6.2.0-edge.7",
62
- "@memberjunction/ng-feedback": "6.2.0-edge.7",
63
- "@memberjunction/ng-file-storage": "6.2.0-edge.7",
64
- "@memberjunction/ng-generic-dialog": "6.2.0-edge.7",
65
- "@memberjunction/ng-list-detail-grid": "6.2.0-edge.7",
66
- "@memberjunction/ng-list-management": "6.2.0-edge.7",
67
- "@memberjunction/ng-markdown": "6.2.0-edge.7",
68
- "@memberjunction/ng-mj-livekit-room": "6.2.0-edge.7",
69
- "@memberjunction/ng-notifications": "6.2.0-edge.7",
70
- "@memberjunction/ng-pagination": "6.2.0-edge.7",
71
- "@memberjunction/ng-query-viewer": "6.2.0-edge.7",
72
- "@memberjunction/ng-realtime-media": "6.2.0-edge.7",
73
- "@memberjunction/ng-record-changes": "6.2.0-edge.7",
74
- "@memberjunction/ng-record-selector": "6.2.0-edge.7",
75
- "@memberjunction/ng-record-tags": "6.2.0-edge.7",
76
- "@memberjunction/ng-resource-permissions": "6.2.0-edge.7",
77
- "@memberjunction/ng-search": "6.2.0-edge.7",
78
- "@memberjunction/ng-shared": "6.2.0-edge.7",
79
- "@memberjunction/ng-shared-generic": "6.2.0-edge.7",
80
- "@memberjunction/ng-ui-components": "6.2.0-edge.7",
81
- "@memberjunction/ng-user-avatar": "6.2.0-edge.7",
82
- "@memberjunction/ng-word-cloud": "6.2.0-edge.7",
83
- "@memberjunction/templates-base-types": "6.2.0-edge.7",
32
+ "@memberjunction/ai-core-plus": "6.2.0-edge.8",
33
+ "@memberjunction/ai-engine-base": "6.2.0-edge.8",
34
+ "@memberjunction/communication-types": "6.2.0-edge.8",
35
+ "@memberjunction/conversations-runtime": "6.2.0-edge.8",
36
+ "@memberjunction/core": "6.2.0-edge.8",
37
+ "@memberjunction/core-entities": "6.2.0-edge.8",
38
+ "@memberjunction/entity-communications-client": "6.2.0-edge.8",
39
+ "@memberjunction/export-engine": "6.2.0-edge.8",
40
+ "@memberjunction/global": "6.2.0-edge.8",
41
+ "@memberjunction/graphql-dataprovider": "6.2.0-edge.8",
42
+ "@memberjunction/interactive-component-types": "6.2.0-edge.8",
43
+ "@memberjunction/lists-base": "6.2.0-edge.8",
44
+ "@memberjunction/theme-engine": "6.2.0-edge.8",
45
+ "@memberjunction/ng-ai-test-harness": "6.2.0-edge.8",
46
+ "@memberjunction/ng-artifacts": "6.2.0-edge.8",
47
+ "@memberjunction/ng-auth-services": "6.2.0-edge.8",
48
+ "@memberjunction/ng-base-application": "6.2.0-edge.8",
49
+ "@memberjunction/ng-base-forms": "6.2.0-edge.8",
50
+ "@memberjunction/ng-base-types": "6.2.0-edge.8",
51
+ "@memberjunction/ng-composer": "6.2.0-edge.8",
52
+ "@memberjunction/ng-container-directives": "6.2.0-edge.8",
53
+ "@memberjunction/ng-conversation-offers": "6.2.0-edge.8",
54
+ "@memberjunction/ng-conversations": "6.2.0-edge.8",
55
+ "@memberjunction/ng-dashboard-viewer": "6.2.0-edge.8",
56
+ "@memberjunction/ng-dashboards": "6.2.0-edge.8",
57
+ "@memberjunction/ng-diagnostics": "6.2.0-edge.8",
58
+ "@memberjunction/ng-entity-form-dialog": "6.2.0-edge.8",
59
+ "@memberjunction/ng-entity-permissions": "6.2.0-edge.8",
60
+ "@memberjunction/ng-entity-viewer": "6.2.0-edge.8",
61
+ "@memberjunction/ng-explorer-settings": "6.2.0-edge.8",
62
+ "@memberjunction/ng-export-service": "6.2.0-edge.8",
63
+ "@memberjunction/ng-feedback": "6.2.0-edge.8",
64
+ "@memberjunction/ng-file-storage": "6.2.0-edge.8",
65
+ "@memberjunction/ng-generic-dialog": "6.2.0-edge.8",
66
+ "@memberjunction/ng-list-detail-grid": "6.2.0-edge.8",
67
+ "@memberjunction/ng-list-management": "6.2.0-edge.8",
68
+ "@memberjunction/ng-markdown": "6.2.0-edge.8",
69
+ "@memberjunction/ng-mj-livekit-room": "6.2.0-edge.8",
70
+ "@memberjunction/ng-notifications": "6.2.0-edge.8",
71
+ "@memberjunction/ng-pagination": "6.2.0-edge.8",
72
+ "@memberjunction/ng-query-viewer": "6.2.0-edge.8",
73
+ "@memberjunction/ng-realtime-media": "6.2.0-edge.8",
74
+ "@memberjunction/ng-record-changes": "6.2.0-edge.8",
75
+ "@memberjunction/ng-record-selector": "6.2.0-edge.8",
76
+ "@memberjunction/ng-record-tags": "6.2.0-edge.8",
77
+ "@memberjunction/ng-resource-permissions": "6.2.0-edge.8",
78
+ "@memberjunction/ng-search": "6.2.0-edge.8",
79
+ "@memberjunction/ng-shared": "6.2.0-edge.8",
80
+ "@memberjunction/ng-shared-generic": "6.2.0-edge.8",
81
+ "@memberjunction/ng-ui-components": "6.2.0-edge.8",
82
+ "@memberjunction/ng-user-avatar": "6.2.0-edge.8",
83
+ "@memberjunction/ng-word-cloud": "6.2.0-edge.8",
84
+ "@memberjunction/templates-base-types": "6.2.0-edge.8",
84
85
  "angular-split": "^20.0.0",
85
86
  "golden-layout": "^2.6.0",
86
87
  "rxjs": "^7.8.2",
87
88
  "tslib": "^2.8.1",
88
- "@memberjunction/ng-react": "6.2.0-edge.7",
89
- "@memberjunction/excel-addin": "6.2.0-edge.7"
89
+ "@memberjunction/ng-react": "6.2.0-edge.8",
90
+ "@memberjunction/excel-addin": "6.2.0-edge.8"
90
91
  },
91
92
  "sideEffects": false,
92
93
  "repository": {