@memberjunction/ng-explorer-settings 5.48.0 → 5.50.0
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/lib/module.d.ts +27 -26
- package/dist/lib/module.d.ts.map +1 -1
- package/dist/lib/module.js +5 -0
- package/dist/lib/module.js.map +1 -1
- package/dist/lib/user-app-config/user-app-config-content.component.d.ts +138 -0
- package/dist/lib/user-app-config/user-app-config-content.component.d.ts.map +1 -0
- package/dist/lib/user-app-config/user-app-config-content.component.js +753 -0
- package/dist/lib/user-app-config/user-app-config-content.component.js.map +1 -0
- package/dist/lib/user-app-config/user-app-config.component.d.ts +18 -97
- package/dist/lib/user-app-config/user-app-config.component.d.ts.map +1 -1
- package/dist/lib/user-app-config/user-app-config.component.js +39 -697
- package/dist/lib/user-app-config/user-app-config.component.js.map +1 -1
- package/dist/public-api.d.ts +1 -0
- package/dist/public-api.d.ts.map +1 -1
- package/dist/public-api.js +1 -0
- package/dist/public-api.js.map +1 -1
- package/package.json +21 -20
- package/dist/__tests__/explorer-settings.test.d.ts +0 -2
- package/dist/__tests__/explorer-settings.test.d.ts.map +0 -1
- package/dist/__tests__/explorer-settings.test.js +0 -23
- package/dist/__tests__/explorer-settings.test.js.map +0 -1
- package/dist/__tests__/role-management-agent-context.test.d.ts +0 -2
- package/dist/__tests__/role-management-agent-context.test.d.ts.map +0 -1
- package/dist/__tests__/role-management-agent-context.test.js +0 -107
- package/dist/__tests__/role-management-agent-context.test.js.map +0 -1
- package/dist/__tests__/user-app-config-reorder.test.d.ts +0 -2
- package/dist/__tests__/user-app-config-reorder.test.d.ts.map +0 -1
- package/dist/__tests__/user-app-config-reorder.test.js +0 -66
- package/dist/__tests__/user-app-config-reorder.test.js.map +0 -1
- package/dist/__tests__/user-management-agent-context.test.d.ts +0 -2
- package/dist/__tests__/user-management-agent-context.test.d.ts.map +0 -1
- package/dist/__tests__/user-management-agent-context.test.js +0 -134
- package/dist/__tests__/user-management-agent-context.test.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-app-config-content.component.js","sourceRoot":"","sources":["../../../src/lib/user-app-config/user-app-config-content.component.ts","../../../src/lib/user-app-config/user-app-config-content.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,YAAY,EAAU,iBAAiB,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvH,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAqB,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC3F,OAAO,EAA2B,cAAc,EAAE,MAAM,+BAA+B,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAmB,MAAM,qCAAqC,CAAC;AAC1F,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;;;;;;ICL3E,8BAAgE;IAC9D,iCAAgF;IAClF,iBAAM;;;IAKN,mCAA0B;IAAA,YAAkB;IAAA,iBAAW;;;IAA7B,cAAkB;IAAlB,yCAAkB;;;IA6BlC,qCAGoC;;;IAY9B,gCAA8B;IAAA,YAA0B;IAAA,iBAAO;;;IAAjC,cAA0B;IAA1B,6CAA0B;;;;IAR9D,+BAA0D;IAA1B,sOAAY,sBAAY,KAAC;IACvD,+BAAgE;IAC9D,wBAAwE;IAC1E,iBAAM;IAGJ,AADF,+BAAsB,eACG;IAAA,YAAmB;IAAA,iBAAO;IACjD,sHAA4B;IAG9B,iBAAM;IAEN,kCAKC;IAHC,mOAAS,sBAAY,KAAC;IAItB,wBAAmD;IACnD,qBACF;IACF,AADE,iBAAS,EACL;;;IApBkB,cAAyC;IAAzC,qDAAyC;IAC1D,cAA6C;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AAC,+BAA+B,IAAI,CAAC,GAAG,CAAC,IAAI,cAAc,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;IACvF,CAAC;iSA9aU,6BAA6B,yBAA7B,6BAA6B;6DAA7B,6BAA6B;YCvC1C,8BAAkC;YAEhC,+FAAiB;YAOjB,oGAAoB;YAKpB,iGAAkB;YA8NhB,AADF,8BAA2B,aACA;YACvB,kGAAoB;YAUtB,iBAAM;YAEJ,AADF,8BAA0B,gBAKvB;YAFC,0GAAS,UAAM,IAAC;YAMd,AAHF,qFAAgB,iEAGP;YAIX,iBAAS;YACT,kCAIC;YAFC,2GAAS,YAAQ,IAAC;YAGlB,yBACF;YAGN,AADE,AADE,AADE,iBAAS,EACL,EACF,EACF;;YA7QJ,cAIC;YAJD,wCAIC;YAGD,cAEC;YAFD,2CAEC;YAGD,cA0NC;YA1ND,yCA0NC;YAKG,eASC;YATD,2CASC;YAMC,eAAmD;YAAnD,6EAAmD;YAEnD,cAMC;YAND,uCAMC;YAKD,eAAqB;YAArB,uCAAqB;;;iFDlOhB,6BAA6B;cANzC,SAAS;6BACI,KAAK,YACP,4BAA4B;;kBAYrC,MAAM;;kBAEN,MAAM;;kFAVI,6BAA6B","sourcesContent":["import { Component, Output, EventEmitter, OnInit, ChangeDetectorRef, NgZone, ElementRef, inject } from '@angular/core';\nimport { LogError, LogStatus, IMetadataProvider, LogStatusEx } from '@memberjunction/core';\nimport { MJUserApplicationEntity, UserInfoEngine } from '@memberjunction/core-entities';\nimport { ApplicationManager, BaseApplication } from '@memberjunction/ng-base-application';\nimport { SharedService } from '@memberjunction/ng-shared';\nimport { UUIDsEqual } from '@memberjunction/global';\n\nimport { BaseAngularComponent } from '@memberjunction/ng-base-types';\nimport { moveAndResequence, resequenceItems } from './user-app-config-reorder';\n\n/**\n * Represents an app item in the configuration UI\n */\ninterface AppConfigItem {\n app: BaseApplication;\n userAppId: string | null;\n sequence: number;\n isActive: boolean;\n isDirty: boolean;\n}\n\n/**\n * Chrome-free app-configuration content: select which applications appear in\n * the app switcher and arrange their order. Owns all list/reorder/persistence\n * logic (including its own Reset / Save / Cancel footer) but NO overlay —\n * hosts embed it wherever it should live:\n * - `UserAppConfigComponent` wraps it in the full-screen modal (Home dashboard)\n * - the shell's app launcher embeds it as an in-panel view swap\n *\n * Loads on init (hosts create it fresh under an `@if`), saves in a batch on\n * the Save button, and signals the host via `Saved` / `Cancelled` — the host\n * decides what \"done\" means (close the dialog, swap the view back, etc.).\n */\n@Component({\n standalone: false,\n selector: 'mj-user-app-config-content',\n templateUrl: './user-app-config-content.component.html',\n styleUrls: ['./user-app-config-content.component.css']\n})\nexport class UserAppConfigContentComponent extends BaseAngularComponent implements OnInit {\n private appManager = inject(ApplicationManager);\n private sharedService = inject(SharedService);\n private cdr = inject(ChangeDetectorRef);\n private ngZone = inject(NgZone);\n private el = inject(ElementRef);\n\n /** Emitted once after a successful batch save */\n @Output() Saved = new EventEmitter<void>();\n /** Emitted when the user cancels (or saves with nothing to save) */\n @Output() Cancelled = new EventEmitter<void>();\n\n /** Every system app the user is authorized for, joined with their per-user config */\n AllApps: AppConfigItem[] = [];\n /** Apps the user has enabled, in their configured Sequence order */\n ActiveApps: AppConfigItem[] = [];\n /** Apps not yet enabled, alphabetical */\n AvailableApps: AppConfigItem[] = [];\n\n /** True while the initial configuration load is in flight */\n IsLoading = false;\n /** True while the batch save is in flight (disables the footer buttons) */\n IsSaving = false;\n /** User-facing load/save failure message; empty when healthy */\n ErrorMessage = '';\n\n /** Collapse state for the Available-apps panel (mobile accordion) */\n AvailablePanelCollapsed = false;\n /** Collapse state for the Selected-apps panel (mobile accordion) */\n SelectedPanelCollapsed = false;\n\n /** Item currently being dragged for reorder, null when idle */\n DraggedItem: AppConfigItem | null = null;\n /** Source index of the in-flight drag within ActiveApps */\n DraggedIndex = -1;\n /** Index the drag is currently hovering (drop indicator position) */\n DropTargetIndex = -1;\n\n async ngOnInit(): Promise<void> {\n await this.loadConfiguration();\n }\n\n /**\n * Adds an app to the user's active list\n */\n AddApp(item: AppConfigItem): void {\n item.isActive = true;\n item.sequence = this.ActiveApps.length;\n item.isDirty = true;\n this.refreshAppLists();\n }\n\n /**\n * Removes an app from the user's active list\n */\n RemoveApp(item: AppConfigItem): void {\n item.isActive = false;\n item.sequence = 999;\n item.isDirty = true;\n this.refreshAppLists();\n\n this.resequenceActiveApps();\n }\n\n /**\n * Toggles an app between active and inactive\n */\n ToggleApp(item: AppConfigItem): void {\n if (item.isActive) {\n this.RemoveApp(item);\n } else {\n this.AddApp(item);\n }\n }\n\n /**\n * Moves an app up in the order. Positional (splice + renumber), NOT a sequence-value\n * swap: rows can carry duplicate Sequence values (issue #3027 — e.g. a re-enabled app\n * kept a stale value), and swapping two equal values is a silent no-op. Reordering by\n * position then renumbering 0..n-1 always works and heals duplicates as a side effect.\n */\n MoveUp(item: AppConfigItem): void {\n const index = this.ActiveApps.indexOf(item);\n if (index > 0) {\n this.moveActiveApp(index, index - 1);\n }\n }\n\n /**\n * Moves an app down in the order. Positional — see {@link MoveUp} for why.\n */\n MoveDown(item: AppConfigItem): void {\n const index = this.ActiveApps.indexOf(item);\n if (index >= 0 && index < this.ActiveApps.length - 1) {\n this.moveActiveApp(index, index + 1);\n }\n }\n\n private moveActiveApp(fromIndex: number, toIndex: number): void {\n this.ActiveApps = moveAndResequence(this.ActiveApps, fromIndex, toIndex);\n }\n\n /**\n * Checks if there are any unsaved changes\n */\n HasChanges(): boolean {\n return this.AllApps.some(item => item.isDirty);\n }\n\n /** Cancel button — host decides what dismissal means */\n Cancel(): void {\n this.Cancelled.emit();\n }\n\n /**\n * Saves the user's app configuration\n */\n async Save(): Promise<void> {\n if (!this.HasChanges()) {\n this.Cancelled.emit();\n return;\n }\n\n this.IsSaving = true;\n this.ErrorMessage = '';\n\n try {\n // Self-heal: renumber active apps 0..n-1 before persisting. Existing rows can\n // carry duplicate Sequence values from older data (issue #3027); renumbering in\n // display order marks any corrected rows dirty so this save fixes them for good.\n this.resequenceActiveApps();\n\n const md = this.ProviderToUse;\n\n for (const item of this.AllApps) {\n if (!item.isDirty) continue;\n\n if (item.userAppId) {\n await this.updateUserApplication(md, item);\n } else if (item.isActive) {\n await this.createUserApplication(md, item);\n }\n }\n\n // Each userApp.Save() above fires a BaseEntity 'save' event, which UserInfoEngine\n // catches via HandleIndividualBaseEntityEvent → debounced refresh → NotifyDataChange.\n // ApplicationManager.subscribeToEngineChanges then propagates to the shell app\n // switcher. No explicit reload needed here — and avoiding it sidesteps NG0100\n // from observable emissions interleaving with this method's save loop.\n LogStatusEx({\n message: 'User app configuration saved',\n verboseOnly: true\n });\n\n this.sharedService.CreateSimpleNotification('App configuration saved successfully!', 'success', 3000);\n this.Saved.emit();\n // Backstop for a dropped/coalesced debounced engine event: force a reconcile from the source\n // of truth so the app switcher can't be left \"one save behind\". DEFERRED past the current CD\n // cycle — a synchronous reload here previously triggered NG0100 (commits e2059e6114 /\n // 7bf8be7dc6). No-op cost when the event chain already delivered. (Ported from bug F1's fix\n // to the pre-split monolith, PR #3289.)\n Promise.resolve().then(() => this.appManager.ReloadUserApplications());\n\n } catch (error) {\n this.ErrorMessage = 'Failed to save configuration. Please try again.';\n LogError('Error saving app configuration:', undefined, error instanceof Error ? error.message : String(error));\n // A partial-save failure can leave in-memory state half-committed (some items saved+clean,\n // others still dirty) and divergent from the DB. Reconcile from the source of truth so\n // recovery doesn't require a browser refresh — deferred, for the same NG0100 reason.\n Promise.resolve().then(() => this.appManager.ReloadUserApplications());\n } finally {\n this.ngZone.run(() => {\n this.IsSaving = false;\n this.cdr.detectChanges();\n });\n }\n }\n\n /**\n * Resets all changes and reloads the configuration\n */\n async Reset(): Promise<void> {\n await this.loadConfiguration();\n }\n\n // ---------------------------------------------------------------------------\n // Drag-and-drop handlers (desktop only)\n // ---------------------------------------------------------------------------\n\n /** Begin an HTML5 drag of an active-app row */\n OnDragStart(event: DragEvent, item: AppConfigItem, index: number): void {\n this.DraggedItem = item;\n this.DraggedIndex = index;\n\n if (event.dataTransfer) {\n event.dataTransfer.effectAllowed = 'move';\n event.dataTransfer.setData('text/plain', index.toString());\n }\n }\n\n /** Allow dropping while a row drag passes over the list */\n OnDragOver(event: DragEvent): void {\n event.preventDefault();\n if (event.dataTransfer) {\n event.dataTransfer.dropEffect = 'move';\n }\n }\n\n /** Track the row index the drag is hovering (drop indicator) */\n OnDragEnter(event: DragEvent, index: number): void {\n event.preventDefault();\n this.DropTargetIndex = index;\n }\n\n /** Clear all drag state (fires on drop or drag cancel) */\n OnDragEnd(): void {\n this.DraggedItem = null;\n this.DraggedIndex = -1;\n this.DropTargetIndex = -1;\n }\n\n /** Reorder ActiveApps to the hovered position and renumber sequences */\n OnDrop(event: DragEvent): void {\n event.preventDefault();\n\n if (this.DraggedIndex >= 0 && this.DropTargetIndex >= 0 && this.DraggedIndex !== this.DropTargetIndex) {\n const [movedItem] = this.ActiveApps.splice(this.DraggedIndex, 1);\n this.ActiveApps.splice(this.DropTargetIndex, 0, movedItem);\n this.resequenceActiveApps();\n this.cdr.detectChanges();\n }\n\n this.OnDragEnd();\n }\n\n // ---------------------------------------------------------------------------\n // Touch drag-and-drop handlers (mobile)\n // ---------------------------------------------------------------------------\n\n /** Source index of the in-flight touch drag (-1 when idle) */\n TouchDragIndex = -1;\n /** Row index the touch drag would drop at */\n TouchDropIndex = -1;\n /** True while a touch drag is in progress */\n TouchDragActive = false;\n\n private touchStartY = 0;\n private touchCurrentY = 0;\n private touchRowHeight = 0;\n private touchDragElement: HTMLElement | null = null;\n private touchScrollContainer: HTMLElement | null = null;\n\n /** Begin a touch drag of a mobile app row (long-press handle) */\n OnTouchDragStart(event: TouchEvent, index: number): void {\n const touch = event.touches[0];\n const row = (event.target as HTMLElement).closest('.mobile-app-row') as HTMLElement | null;\n if (!row) return;\n\n event.preventDefault();\n this.TouchDragIndex = index;\n this.TouchDropIndex = index;\n this.TouchDragActive = true;\n this.touchStartY = touch.clientY;\n this.touchCurrentY = touch.clientY;\n this.touchDragElement = row;\n this.touchRowHeight = row.offsetHeight;\n this.touchScrollContainer = this.el.nativeElement.querySelector('.mobile-list');\n\n row.classList.add('touch-dragging');\n }\n\n /** Follow the finger: translate the row, track drop target, auto-scroll near edges */\n OnTouchDragMove(event: TouchEvent): void {\n if (!this.TouchDragActive || !this.touchDragElement) return;\n\n event.preventDefault();\n const touch = event.touches[0];\n this.touchCurrentY = touch.clientY;\n const deltaY = this.touchCurrentY - this.touchStartY;\n\n this.touchDragElement.style.transform = `translateY(${deltaY}px)`;\n this.touchDragElement.style.zIndex = '100';\n\n this.updateTouchDropTarget(deltaY);\n this.autoScrollIfNeeded();\n }\n\n /** Commit the touch reorder (if moved) and reset touch-drag state */\n OnTouchDragEnd(): void {\n if (!this.TouchDragActive) return;\n\n if (this.touchDragElement) {\n this.touchDragElement.style.transform = '';\n this.touchDragElement.style.zIndex = '';\n this.touchDragElement.classList.remove('touch-dragging');\n }\n\n if (this.TouchDragIndex >= 0 && this.TouchDropIndex >= 0 && this.TouchDragIndex !== this.TouchDropIndex) {\n const [movedItem] = this.ActiveApps.splice(this.TouchDragIndex, 1);\n this.ActiveApps.splice(this.TouchDropIndex, 0, movedItem);\n this.resequenceActiveApps();\n }\n\n this.resetTouchDragState();\n this.cdr.detectChanges();\n }\n\n private updateTouchDropTarget(deltaY: number): void {\n const rowsToMove = Math.round(deltaY / this.touchRowHeight);\n const newIndex = Math.max(0, Math.min(this.ActiveApps.length - 1, this.TouchDragIndex + rowsToMove));\n this.TouchDropIndex = newIndex;\n }\n\n private autoScrollIfNeeded(): void {\n if (!this.touchScrollContainer) return;\n\n const rect = this.touchScrollContainer.getBoundingClientRect();\n const edgeZone = 40;\n\n if (this.touchCurrentY < rect.top + edgeZone) {\n this.touchScrollContainer.scrollTop -= 8;\n } else if (this.touchCurrentY > rect.bottom - edgeZone) {\n this.touchScrollContainer.scrollTop += 8;\n }\n }\n\n private resetTouchDragState(): void {\n this.TouchDragIndex = -1;\n this.TouchDropIndex = -1;\n this.TouchDragActive = false;\n this.touchDragElement = null;\n this.touchScrollContainer = null;\n }\n\n // ---------------------------------------------------------------------------\n // Private helpers\n // ---------------------------------------------------------------------------\n\n private async loadConfiguration(): Promise<void> {\n this.IsLoading = true;\n this.ErrorMessage = '';\n\n try {\n // Read directly from UserInfoEngine's cache. The engine already loaded\n // and maintains MJ: User Applications via its event-driven refresh — no\n // need to re-query the DB on every open. EnsureLoaded is idempotent\n // and instant when the engine is already loaded (the typical case here,\n // since UserInfoEngine fires at startup).\n const provider = this.ProviderToUse;\n const engine = provider\n ? UserInfoEngine.GetProviderInstance<UserInfoEngine>(provider, UserInfoEngine) as UserInfoEngine\n : UserInfoEngine.Instance;\n await engine.EnsureLoaded();\n const systemApps = this.appManager.GetAuthorizedSystemApps();\n const userApps = engine.UserApplications;\n this.AllApps = this.buildAppConfigItems(systemApps, userApps);\n this.refreshAppLists();\n\n } catch (error) {\n this.ErrorMessage = 'Failed to load app configuration. Please try again.';\n LogError('Error loading app configuration:', undefined, error instanceof Error ? error.message : String(error));\n } finally {\n this.ngZone.run(() => {\n this.IsLoading = false;\n this.cdr.detectChanges();\n });\n }\n }\n\n private buildAppConfigItems(systemApps: BaseApplication[], userApps: MJUserApplicationEntity[]): AppConfigItem[] {\n return systemApps.map(app => {\n const userApp = userApps.find(ua => UUIDsEqual(ua.ApplicationID, app.ID));\n return {\n app,\n userAppId: userApp?.ID ?? null,\n sequence: userApp?.Sequence ?? 999,\n isActive: userApp?.IsActive ?? false,\n isDirty: false\n };\n });\n }\n\n private refreshAppLists(): void {\n this.ActiveApps = this.AllApps\n .filter(item => item.isActive)\n .sort((a, b) => a.sequence - b.sequence);\n\n this.AvailableApps = this.AllApps\n .filter(item => !item.isActive)\n .sort((a, b) => a.app.Name.localeCompare(b.app.Name));\n }\n\n private resequenceActiveApps(): void {\n resequenceItems(this.ActiveApps);\n }\n\n\n private async updateUserApplication(md: IMetadataProvider, item: AppConfigItem): Promise<void> {\n const userApp = await md.GetEntityObject<MJUserApplicationEntity>('MJ: User Applications', md.CurrentUser);\n await userApp.Load(item.userAppId!);\n\n userApp.Sequence = item.sequence;\n userApp.IsActive = item.isActive;\n\n const saved = await userApp.Save();\n if (!saved) {\n throw new Error(`Failed to update UserApplication for ${item.app.Name}: ${userApp.LatestResult?.CompleteMessage ?? 'unknown error'}`);\n }\n\n item.isDirty = false;\n LogStatus(`Updated UserApplication for ${item.app.Name}: sequence=${item.sequence}, isActive=${item.isActive}`);\n }\n\n private async createUserApplication(md: IMetadataProvider, item: AppConfigItem): Promise<void> {\n const userApp = await md.GetEntityObject<MJUserApplicationEntity>('MJ: User Applications', md.CurrentUser);\n userApp.NewRecord();\n\n userApp.UserID = md.CurrentUser.ID;\n userApp.ApplicationID = item.app.ID;\n userApp.Sequence = item.sequence;\n userApp.IsActive = item.isActive;\n\n const saved = await userApp.Save();\n if (!saved) {\n throw new Error(`Failed to create UserApplication for ${item.app.Name}: ${userApp.LatestResult?.CompleteMessage ?? 'unknown error'}`);\n }\n\n item.userAppId = userApp.ID;\n item.isDirty = false;\n LogStatus(`Created UserApplication for ${item.app.Name}: sequence=${item.sequence}`);\n }\n}\n","<div class=\"app-config-container\">\n <!-- Loading State -->\n @if (IsLoading) {\n <div class=\"loading-container\" role=\"status\" aria-live=\"polite\">\n <mj-loading text=\"Loading your app configuration...\" size=\"medium\"></mj-loading>\n </div>\n }\n\n <!-- Error Message -->\n @if (ErrorMessage) {\n <mj-alert Variant=\"error\">{{ ErrorMessage }}</mj-alert>\n }\n\n <!-- Main Content -->\n @if (!IsLoading) {\n <div class=\"config-content\">\n <p class=\"config-description\">\n Select which applications appear in your app switcher and arrange them in your preferred order.\n Double-click to quickly add or remove. Drag and drop to reorder, or use the arrow buttons.\n </p>\n\n <!-- Desktop: two-panel layout with drag-and-drop -->\n <div class=\"panels-container desktop-only\">\n <!-- Available Apps Panel -->\n <div class=\"panel available-apps-panel\" [class.collapsed]=\"AvailablePanelCollapsed\">\n <div class=\"panel-header\" (click)=\"AvailablePanelCollapsed = !AvailablePanelCollapsed\">\n <i class=\"fa-solid fa-layer-group\" aria-hidden=\"true\"></i>\n <h3>Available Applications</h3>\n <span class=\"badge\">{{ AvailableApps.length }}</span>\n <i\n class=\"collapse-toggle fa-solid\"\n [class.fa-chevron-down]=\"AvailablePanelCollapsed\"\n [class.fa-chevron-up]=\"!AvailablePanelCollapsed\"\n aria-hidden=\"true\"\n ></i>\n </div>\n\n <div class=\"panel-content\">\n @if (AvailableApps.length === 0) {\n <mj-empty-state\n Size=\"compact\"\n Icon=\"fa-solid fa-check-double\"\n Title=\"All applications added!\" />\n }\n\n @for (item of AvailableApps; track item.app.ID) {\n <div class=\"available-app-item\" (dblclick)=\"AddApp(item)\">\n <div class=\"app-icon\" [style.--app-color]=\"item.app.GetColor()\">\n <i [class]=\"item.app.Icon || 'fa-solid fa-cube'\" aria-hidden=\"true\"></i>\n </div>\n\n <div class=\"app-info\">\n <span class=\"app-name\">{{ item.app.Name }}</span>\n @if (item.app.Description) {\n <span class=\"app-description\">{{ item.app.Description }}</span>\n }\n </div>\n\n <button\n mjButton variant=\"outline\" size=\"sm\"\n (click)=\"AddApp(item)\"\n title=\"Add to your apps\"\n [attr.aria-label]=\"'Add ' + item.app.Name\"\n >\n <i class=\"fa-solid fa-plus\" aria-hidden=\"true\"></i>\n Add\n </button>\n </div>\n }\n </div>\n </div>\n\n <!-- Selected Apps Panel -->\n <div class=\"panel selected-apps-panel\" [class.collapsed]=\"SelectedPanelCollapsed\">\n <div class=\"panel-header\" (click)=\"SelectedPanelCollapsed = !SelectedPanelCollapsed\">\n <i class=\"fa-solid fa-check-circle\" aria-hidden=\"true\"></i>\n <h3>Your Applications</h3>\n <span class=\"badge\">{{ ActiveApps.length }}</span>\n <i\n class=\"collapse-toggle fa-solid\"\n [class.fa-chevron-down]=\"SelectedPanelCollapsed\"\n [class.fa-chevron-up]=\"!SelectedPanelCollapsed\"\n aria-hidden=\"true\"\n ></i>\n </div>\n\n <div class=\"panel-content\">\n @if (ActiveApps.length === 0) {\n <mj-empty-state\n Size=\"compact\"\n Icon=\"fa-solid fa-inbox\"\n Title=\"No applications selected\"\n Message=\"Add apps from the available list\" />\n }\n\n @if (ActiveApps.length > 0) {\n <div\n class=\"sortable-list\"\n (dragover)=\"OnDragOver($event)\"\n (drop)=\"OnDrop($event)\"\n >\n @for (item of ActiveApps; track item.app.ID; let i = $index) {\n <div\n class=\"app-item\"\n [class.dragging]=\"DraggedItem === item\"\n draggable=\"true\"\n (dragstart)=\"OnDragStart($event, item, i)\"\n (dragend)=\"OnDragEnd()\"\n (dragenter)=\"OnDragEnter($event, i)\"\n (dblclick)=\"RemoveApp(item); $event.stopPropagation()\"\n >\n <div class=\"app-item-content\">\n <div class=\"drag-handle\">\n <i class=\"fa-solid fa-grip-vertical\" aria-hidden=\"true\"></i>\n </div>\n\n <div class=\"app-icon\" [style.--app-color]=\"item.app.GetColor()\">\n <i [class]=\"item.app.Icon || 'fa-solid fa-cube'\" aria-hidden=\"true\"></i>\n </div>\n\n <div class=\"app-info\">\n <span class=\"app-name\">{{ item.app.Name }}</span>\n @if (item.app.Description) {\n <span class=\"app-description\">{{ item.app.Description }}</span>\n }\n </div>\n\n <div class=\"app-actions\">\n <button\n mjButton variant=\"flat\" size=\"sm\"\n [disabled]=\"i === 0\"\n (click)=\"MoveUp(item); $event.stopPropagation()\"\n title=\"Move up\"\n [attr.aria-label]=\"'Move ' + item.app.Name + ' up'\"\n >\n <i class=\"fa-solid fa-chevron-up\" aria-hidden=\"true\"></i>\n </button>\n <button\n mjButton variant=\"flat\" size=\"sm\"\n [disabled]=\"i === ActiveApps.length - 1\"\n (click)=\"MoveDown(item); $event.stopPropagation()\"\n title=\"Move down\"\n [attr.aria-label]=\"'Move ' + item.app.Name + ' down'\"\n >\n <i class=\"fa-solid fa-chevron-down\" aria-hidden=\"true\"></i>\n </button>\n <button\n mjButton variant=\"flat\" size=\"sm\"\n class=\"remove-btn\"\n (click)=\"RemoveApp(item); $event.stopPropagation()\"\n title=\"Remove from your apps\"\n [attr.aria-label]=\"'Remove ' + item.app.Name\"\n >\n <i class=\"fa-solid fa-xmark\" aria-hidden=\"true\"></i>\n </button>\n </div>\n </div>\n </div>\n }\n </div>\n }\n </div>\n </div>\n </div>\n\n <!-- Mobile: single list with toggles + touch drag reorder -->\n <div\n class=\"mobile-view\"\n (touchmove)=\"OnTouchDragMove($event)\"\n (touchend)=\"OnTouchDragEnd()\"\n (touchcancel)=\"OnTouchDragEnd()\"\n >\n <div class=\"mobile-list\">\n @if (ActiveApps.length > 0) {\n <div class=\"mobile-section-label\">Your Apps</div>\n @for (item of ActiveApps; track item.app.ID; let i = $index) {\n @if (TouchDragActive && TouchDropIndex === i && TouchDragIndex > i) {\n <div class=\"mobile-drop-indicator\"></div>\n }\n <div\n class=\"mobile-app-row\"\n [class.touch-ghost]=\"TouchDragActive && TouchDragIndex === i\"\n >\n <div\n class=\"mobile-drag-handle\"\n (touchstart)=\"OnTouchDragStart($event, i)\"\n aria-label=\"Drag to reorder\"\n >\n <i class=\"fa-solid fa-grip-vertical\" aria-hidden=\"true\"></i>\n </div>\n <div class=\"app-icon\" [style.--app-color]=\"item.app.GetColor()\">\n <i [class]=\"item.app.Icon || 'fa-solid fa-cube'\" aria-hidden=\"true\"></i>\n </div>\n <span class=\"mobile-app-name\">{{ item.app.Name }}</span>\n <button\n class=\"mobile-toggle on\"\n (click)=\"ToggleApp(item)\"\n aria-label=\"Remove {{ item.app.Name }}\"\n >\n <i class=\"fa-solid fa-toggle-on\" aria-hidden=\"true\"></i>\n </button>\n </div>\n @if (TouchDragActive && TouchDropIndex === i && TouchDragIndex < i) {\n <div class=\"mobile-drop-indicator\"></div>\n }\n }\n @if (TouchDragActive && TouchDropIndex === ActiveApps.length - 1 && TouchDragIndex < TouchDropIndex) {\n <div class=\"mobile-drop-indicator\"></div>\n }\n }\n\n @if (AvailableApps.length > 0) {\n <div class=\"mobile-section-label\">Available</div>\n @for (item of AvailableApps; track item.app.ID) {\n <div class=\"mobile-app-row inactive\">\n <div class=\"app-icon\" [style.--app-color]=\"item.app.GetColor()\">\n <i [class]=\"item.app.Icon || 'fa-solid fa-cube'\" aria-hidden=\"true\"></i>\n </div>\n <span class=\"mobile-app-name\">{{ item.app.Name }}</span>\n <button\n class=\"mobile-toggle off\"\n (click)=\"ToggleApp(item)\"\n aria-label=\"Add {{ item.app.Name }}\"\n >\n <i class=\"fa-solid fa-toggle-off\" aria-hidden=\"true\"></i>\n </button>\n </div>\n }\n }\n </div>\n </div>\n </div>\n }\n\n <!-- Footer Actions -->\n <div class=\"dialog-footer\">\n <div class=\"footer-left\">\n @if (HasChanges()) {\n <button\n mjButton\n (click)=\"Reset()\"\n [disabled]=\"IsLoading || IsSaving\"\n >\n <i class=\"fa-solid fa-rotate-left\" aria-hidden=\"true\"></i>\n Reset Changes\n </button>\n }\n </div>\n <div class=\"footer-right\">\n <button\n mjButton variant=\"primary\"\n (click)=\"Save()\"\n [disabled]=\"IsLoading || IsSaving || !HasChanges()\"\n >\n @if (IsSaving) {\n <mj-loading [showText]=\"false\" size=\"small\"></mj-loading>\n <span>Saving...</span>\n } @else {\n <i class=\"fa-solid fa-check\" aria-hidden=\"true\"></i>\n <span>Save Changes</span>\n }\n </button>\n <button\n mjButton\n (click)=\"Cancel()\"\n [disabled]=\"IsSaving\"\n >\n Cancel\n </button>\n </div>\n </div>\n</div>\n"]}
|
|
@@ -1,117 +1,38 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { BaseApplication } from '@memberjunction/ng-base-application';
|
|
3
2
|
import { BaseAngularComponent } from '@memberjunction/ng-base-types';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
/**
|
|
6
|
-
*
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
*
|
|
17
|
-
* Allows users to:
|
|
18
|
-
* - Select which applications to show in the app switcher
|
|
19
|
-
* - Reorder applications via drag-and-drop (desktop)
|
|
20
|
-
* - Toggle apps on/off in a single list (mobile)
|
|
5
|
+
* Full-screen modal dialog for configuring user's application visibility and
|
|
6
|
+
* order. Thin wrapper: the actual configuration UI (list/reorder/persistence)
|
|
7
|
+
* lives in `mj-user-app-config-content`, which the shell's app launcher also
|
|
8
|
+
* embeds directly as an in-panel view. This wrapper only provides the modal
|
|
9
|
+
* chrome + the `ShowDialog`/`Open()`/`Close()` API its dialog consumers use
|
|
10
|
+
* (e.g. the Home dashboard).
|
|
11
|
+
*
|
|
12
|
+
* The content component loads its data in ngOnInit — because it is created
|
|
13
|
+
* fresh under this template's `@if (ShowDialog)`, every `Open()` gets a fresh
|
|
14
|
+
* load with no stale-list flash (the concern bug F1's resetLists() addressed
|
|
15
|
+
* in the pre-split monolith is solved structurally here).
|
|
21
16
|
*/
|
|
22
17
|
export declare class UserAppConfigComponent extends BaseAngularComponent {
|
|
23
|
-
private appManager;
|
|
24
|
-
private sharedService;
|
|
25
|
-
private cdr;
|
|
26
|
-
private ngZone;
|
|
27
|
-
private el;
|
|
28
18
|
private _showDialog;
|
|
29
19
|
set ShowDialog(value: boolean);
|
|
30
20
|
get ShowDialog(): boolean;
|
|
31
21
|
ShowDialogChange: EventEmitter<boolean>;
|
|
32
22
|
ConfigSaved: EventEmitter<void>;
|
|
33
|
-
AllApps: AppConfigItem[];
|
|
34
|
-
ActiveApps: AppConfigItem[];
|
|
35
|
-
AvailableApps: AppConfigItem[];
|
|
36
|
-
IsLoading: boolean;
|
|
37
|
-
IsSaving: boolean;
|
|
38
|
-
ErrorMessage: string;
|
|
39
|
-
AvailablePanelCollapsed: boolean;
|
|
40
|
-
SelectedPanelCollapsed: boolean;
|
|
41
|
-
DraggedItem: AppConfigItem | null;
|
|
42
|
-
DraggedIndex: number;
|
|
43
|
-
DropTargetIndex: number;
|
|
44
23
|
/**
|
|
45
|
-
* Opens the dialog
|
|
24
|
+
* Opens the dialog (the embedded content component loads on creation).
|
|
25
|
+
* Routes through the setter — the single ShowDialogChange emit path.
|
|
46
26
|
*/
|
|
47
|
-
Open():
|
|
27
|
+
Open(): void;
|
|
48
28
|
/**
|
|
49
|
-
* Closes the dialog without saving
|
|
29
|
+
* Closes the dialog without saving. Routes through the setter — the single
|
|
30
|
+
* ShowDialogChange emit path.
|
|
50
31
|
*/
|
|
51
32
|
Close(): void;
|
|
52
|
-
/**
|
|
53
|
-
|
|
54
|
-
*/
|
|
55
|
-
AddApp(item: AppConfigItem): void;
|
|
56
|
-
/**
|
|
57
|
-
* Removes an app from the user's active list
|
|
58
|
-
*/
|
|
59
|
-
RemoveApp(item: AppConfigItem): void;
|
|
60
|
-
/**
|
|
61
|
-
* Toggles an app between active and inactive
|
|
62
|
-
*/
|
|
63
|
-
ToggleApp(item: AppConfigItem): void;
|
|
64
|
-
/**
|
|
65
|
-
* Moves an app up in the order. Positional (splice + renumber), NOT a sequence-value
|
|
66
|
-
* swap: rows can carry duplicate Sequence values (issue #3027 — e.g. a re-enabled app
|
|
67
|
-
* kept a stale value), and swapping two equal values is a silent no-op. Reordering by
|
|
68
|
-
* position then renumbering 0..n-1 always works and heals duplicates as a side effect.
|
|
69
|
-
*/
|
|
70
|
-
MoveUp(item: AppConfigItem): void;
|
|
71
|
-
/**
|
|
72
|
-
* Moves an app down in the order. Positional — see {@link MoveUp} for why.
|
|
73
|
-
*/
|
|
74
|
-
MoveDown(item: AppConfigItem): void;
|
|
75
|
-
private moveActiveApp;
|
|
76
|
-
/**
|
|
77
|
-
* Checks if there are any unsaved changes
|
|
78
|
-
*/
|
|
79
|
-
HasChanges(): boolean;
|
|
80
|
-
/**
|
|
81
|
-
* Saves the user's app configuration
|
|
82
|
-
*/
|
|
83
|
-
Save(): Promise<void>;
|
|
84
|
-
/**
|
|
85
|
-
* Resets all changes and reloads the configuration
|
|
86
|
-
*/
|
|
87
|
-
Reset(): Promise<void>;
|
|
88
|
-
OnDragStart(event: DragEvent, item: AppConfigItem, index: number): void;
|
|
89
|
-
OnDragOver(event: DragEvent): void;
|
|
90
|
-
OnDragEnter(event: DragEvent, index: number): void;
|
|
91
|
-
OnDragEnd(): void;
|
|
92
|
-
OnDrop(event: DragEvent): void;
|
|
93
|
-
TouchDragIndex: number;
|
|
94
|
-
TouchDropIndex: number;
|
|
95
|
-
TouchDragActive: boolean;
|
|
96
|
-
private touchStartY;
|
|
97
|
-
private touchCurrentY;
|
|
98
|
-
private touchRowHeight;
|
|
99
|
-
private touchDragElement;
|
|
100
|
-
private touchScrollContainer;
|
|
101
|
-
OnTouchDragStart(event: TouchEvent, index: number): void;
|
|
102
|
-
OnTouchDragMove(event: TouchEvent): void;
|
|
103
|
-
OnTouchDragEnd(): void;
|
|
104
|
-
private updateTouchDropTarget;
|
|
105
|
-
private autoScrollIfNeeded;
|
|
106
|
-
private resetTouchDragState;
|
|
107
|
-
private loadConfiguration;
|
|
108
|
-
private buildAppConfigItems;
|
|
109
|
-
private refreshAppLists;
|
|
110
|
-
private resequenceActiveApps;
|
|
111
|
-
private updateUserApplication;
|
|
112
|
-
private createUserApplication;
|
|
33
|
+
/** Content saved successfully — surface it and close */
|
|
34
|
+
OnContentSaved(): void;
|
|
113
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<UserAppConfigComponent, never>;
|
|
114
36
|
static ɵcmp: i0.ɵɵComponentDeclaration<UserAppConfigComponent, "mj-user-app-config", never, { "ShowDialog": { "alias": "ShowDialog"; "required": false; }; }, { "ShowDialogChange": "ShowDialogChange"; "ConfigSaved": "ConfigSaved"; }, never, never, false, never>;
|
|
115
37
|
}
|
|
116
|
-
export {};
|
|
117
38
|
//# sourceMappingURL=user-app-config.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-app-config.component.d.ts","sourceRoot":"","sources":["../../../src/lib/user-app-config/user-app-config.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,YAAY,
|
|
1
|
+
{"version":3,"file":"user-app-config.component.d.ts","sourceRoot":"","sources":["../../../src/lib/user-app-config/user-app-config.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,YAAY,EAAE,MAAM,eAAe,CAAC;AACvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;;AAErE;;;;;;;;;;;;GAYG;AACH,qBAMa,sBAAuB,SAAQ,oBAAoB;IAC9D,OAAO,CAAC,WAAW,CAAS;IAE5B,IACI,UAAU,CAAC,KAAK,EAAE,OAAO,EAS5B;IACD,IAAI,UAAU,IAAI,OAAO,CAExB;IAES,gBAAgB,wBAA+B;IAC/C,WAAW,qBAA4B;IAEjD;;;OAGG;IACH,IAAI,IAAI,IAAI;IAIZ;;;OAGG;IACH,KAAK,IAAI,IAAI;IAIb,wDAAwD;IACxD,cAAc,IAAI,IAAI;yCAtCX,sBAAsB;2CAAtB,sBAAsB;CA0ClC"}
|