@memberjunction/ng-dashboard-viewer 5.4.1 → 5.6.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/breadcrumb/dashboard-breadcrumb.component.d.ts.map +1 -1
- package/dist/lib/breadcrumb/dashboard-breadcrumb.component.js +5 -4
- package/dist/lib/breadcrumb/dashboard-breadcrumb.component.js.map +1 -1
- package/dist/lib/dashboard-browser/dashboard-browser.component.d.ts.map +1 -1
- package/dist/lib/dashboard-browser/dashboard-browser.component.js +16 -15
- package/dist/lib/dashboard-browser/dashboard-browser.component.js.map +1 -1
- package/dist/lib/dashboard-viewer/dashboard-viewer.component.js +4 -4
- package/dist/lib/dashboard-viewer/dashboard-viewer.component.js.map +1 -1
- package/dist/lib/parts/view-part.component.js +2 -2
- package/dist/lib/parts/view-part.component.js.map +1 -1
- package/package.json +9 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard-browser.component.js","sourceRoot":"","sources":["../../../src/lib/dashboard-browser/dashboard-browser.component.ts","../../../src/lib/dashboard-browser/dashboard-browser.component.html"],"names":[],"mappings":"AAAA,OAAO,EACH,SAAS,EACT,KAAK,EACL,MAAM,EACN,YAAY,EAIZ,uBAAuB,EAC1B,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;;;;;;;;ICiCrB,kCAGqC;IADnC,6MAAS,2BAAoB,KAAC;IAE9B,wBAAwC;IACxC,wBACF;IAAA,iBAAS;;;;IAKP,AADF,+BAA+B,eACA;IAAA,YAA4B;IAAA,iBAAO;IAChE,kCAAoE;IAAzC,6MAAS,kBAAW,KAAC;IAC9C,wBAAwC;IAC1C,iBAAS;IACT,kCAA8G;IAAnF,6MAAS,uBAAgB,KAAC;IACnD,wBAAuC;IACzC,iBAAS;IACT,kCAA0H;IAAxF,6MAAS,yBAAkB,KAAC;IAC5D,wBAAiC;IACnC,iBAAS;IACT,kCA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nimport { Subject } from 'rxjs';\nimport { MJDashboardEntity, MJDashboardCategoryEntity, DashboardUserPermissions } from '@memberjunction/core-entities';\n\n// ========================================\n// Event Types\n// ========================================\n\n/**\n * View mode for the dashboard browser\n */\nexport type DashboardBrowserViewMode = 'cards' | 'list';\n\n/**\n * Event emitted when a dashboard is selected for viewing\n */\nexport interface DashboardOpenEvent {\n Dashboard: MJDashboardEntity;\n OpenInNewTab: boolean;\n}\n\n/**\n * Event emitted when a dashboard is selected for editing\n */\nexport interface DashboardEditEvent {\n Dashboard: MJDashboardEntity;\n}\n\n/**\n * Event emitted when dashboards are requested for deletion\n */\nexport interface DashboardDeleteEvent {\n Dashboards: MJDashboardEntity[];\n}\n\n/**\n * Event emitted when dashboards are requested to be moved to a folder\n */\nexport interface DashboardMoveEvent {\n Dashboards: MJDashboardEntity[];\n TargetCategoryId: string | null;\n}\n\n/**\n * Event emitted when the category filter changes\n */\nexport interface CategoryChangeEvent {\n CategoryId: string | null;\n Category: MJDashboardCategoryEntity | null;\n}\n\n/**\n * Event emitted when view mode changes\n */\nexport interface ViewModeChangeEvent {\n Mode: DashboardBrowserViewMode;\n}\n\n/**\n * Event emitted when a new dashboard should be created\n */\nexport interface DashboardCreateEvent {\n CategoryId: string | null;\n}\n\n/**\n * Event emitted when a new category should be created\n */\nexport interface CategoryCreateEvent {\n ParentCategoryId: string | null;\n Name: string;\n Description: string | null;\n}\n\n/**\n * Event emitted when a category should be deleted\n */\nexport interface CategoryDeleteEvent {\n Category: MJDashboardCategoryEntity;\n IncludeContents: boolean;\n}\n\n/**\n * Event emitted when view preference should be persisted\n */\nexport interface ViewPreferenceChangeEvent {\n ViewMode: DashboardBrowserViewMode;\n}\n\n/**\n * Generic dashboard browser component.\n * Displays dashboards in card or list view with multi-select, filtering, and bulk actions.\n *\n * This component is GENERIC and has no routing dependencies.\n * All navigation and persistence events are bubbled up for the parent to handle.\n */\n@Component({\n standalone: false,\n selector: 'mj-dashboard-browser',\n templateUrl: './dashboard-browser.component.html',\n styleUrls: ['./dashboard-browser.component.css'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class DashboardBrowserComponent implements OnInit, OnDestroy {\n // ========================================\n // Inputs\n // ========================================\n\n /** All dashboards to display */\n private _dashboards: MJDashboardEntity[] = [];\n\n @Input()\n set Dashboards(value: MJDashboardEntity[]) {\n this._dashboards = value || [];\n this.applyFilters();\n }\n get Dashboards(): MJDashboardEntity[] {\n return this._dashboards;\n }\n\n /** All categories for filtering */\n private _categories: MJDashboardCategoryEntity[] = [];\n\n @Input()\n set Categories(value: MJDashboardCategoryEntity[]) {\n this._categories = value || [];\n // Update child categories when categories change (async loading)\n this.updateChildCategories();\n this.cdr.markForCheck();\n }\n get Categories(): MJDashboardCategoryEntity[] {\n return this._categories;\n }\n\n /** Currently selected category ID (for deep linking) */\n private _selectedCategoryId: string | null = null;\n\n @Input()\n set SelectedCategoryId(value: string | null) {\n if (value !== this._selectedCategoryId) {\n this._selectedCategoryId = value;\n this.applyFilters();\n }\n }\n get SelectedCategoryId(): string | null {\n return this._selectedCategoryId;\n }\n\n /** Initial view mode */\n private _viewMode: DashboardBrowserViewMode = 'cards';\n\n @Input()\n set ViewMode(value: DashboardBrowserViewMode) {\n if (value !== this._viewMode) {\n this._viewMode = value;\n this.cdr.markForCheck();\n }\n }\n get ViewMode(): DashboardBrowserViewMode {\n return this._viewMode;\n }\n\n /** Whether the browser is in loading state */\n @Input() IsLoading = false;\n\n /** Whether to show the create button */\n @Input() ShowCreateButton = true;\n\n /** Whether to allow multi-select (enables selection mode toggle) */\n @Input() AllowMultiSelect = true;\n\n /** Whether to allow drag and drop */\n @Input() AllowDragDrop = true;\n\n /** Whether currently in selection mode (checkboxes visible) */\n public IsSelectionMode = false;\n\n /** Title to display in the header */\n @Input() Title = 'Dashboards';\n\n /** Icon class for the header */\n @Input() IconClass = 'fa-solid fa-gauge-high';\n\n /**\n * Map of dashboard ID to user permissions.\n * Used to show shared indicators and control edit/delete button visibility.\n */\n private _dashboardPermissions: Map<string, DashboardUserPermissions> = new Map();\n\n @Input()\n set DashboardPermissions(value: Map<string, DashboardUserPermissions> | null) {\n this._dashboardPermissions = value || new Map();\n this.cdr.markForCheck();\n }\n get DashboardPermissions(): Map<string, DashboardUserPermissions> {\n return this._dashboardPermissions;\n }\n\n /**\n * Map of dashboard ID to effective category ID for display.\n * Used to show shared dashboards in the user's chosen category instead of owner's category.\n * If a dashboard ID is not in this map, its actual CategoryID is used.\n * Use empty string '' to indicate root/uncategorized.\n */\n private _effectiveCategoryMap: Map<string, string | null> = new Map();\n\n @Input()\n set EffectiveCategoryMap(value: Map<string, string | null> | null) {\n this._effectiveCategoryMap = value || new Map();\n this.applyFilters();\n }\n get EffectiveCategoryMap(): Map<string, string | null> {\n return this._effectiveCategoryMap;\n }\n\n // ========================================\n // Outputs\n // ========================================\n\n /** Emitted when a dashboard is opened for viewing */\n @Output() DashboardOpen = new EventEmitter<DashboardOpenEvent>();\n\n /** Emitted when a dashboard is opened for editing */\n @Output() DashboardEdit = new EventEmitter<DashboardEditEvent>();\n\n /** Emitted when dashboards are requested for deletion */\n @Output() DashboardDelete = new EventEmitter<DashboardDeleteEvent>();\n\n /** Emitted when dashboards are requested to move to a folder */\n @Output() DashboardMove = new EventEmitter<DashboardMoveEvent>();\n\n /** Emitted when a new dashboard should be created */\n @Output() DashboardCreate = new EventEmitter<DashboardCreateEvent>();\n\n /** Emitted when a new category should be created */\n @Output() CategoryCreate = new EventEmitter<CategoryCreateEvent>();\n\n /** Emitted when a category should be deleted */\n @Output() CategoryDelete = new EventEmitter<CategoryDeleteEvent>();\n\n /** Emitted when the category filter changes */\n @Output() CategoryChange = new EventEmitter<CategoryChangeEvent>();\n\n /** Emitted when view mode changes (for persistence) */\n @Output() ViewModeChange = new EventEmitter<ViewModeChangeEvent>();\n\n /** Emitted when view preference should be persisted */\n @Output() ViewPreferenceChange = new EventEmitter<ViewPreferenceChangeEvent>();\n\n // ========================================\n // State\n // ========================================\n\n /** Filtered dashboards based on search and category */\n public FilteredDashboards: MJDashboardEntity[] = [];\n\n /** Current search text */\n public SearchText = '';\n\n /** Set of selected dashboard IDs */\n public SelectedIds = new Set<string>();\n\n /** Last clicked dashboard ID (for shift-click range selection) */\n private lastClickedId: string | null = null;\n\n /** Whether delete confirmation dialog is visible */\n public ShowDeleteConfirm = false;\n\n /** Whether move-to-folder dialog is visible */\n public ShowMoveDialog = false;\n\n /** Dashboards pending deletion (for confirm dialog) */\n public DashboardsPendingDelete: MJDashboardEntity[] = [];\n\n /** Currently dragging dashboard ID */\n public DraggingId: string | null = null;\n\n /** Drop target category ID */\n public DropTargetCategoryId: string | null = null;\n\n /** Whether the \"New\" dropdown menu is open */\n public ShowNewMenu = false;\n\n /** Whether the create category dialog is visible */\n public ShowCreateCategoryDialog = false;\n\n /** New category form values */\n public NewCategoryName = '';\n public NewCategoryDescription = '';\n\n /** Child categories of the current folder */\n public ChildCategories: MJDashboardCategoryEntity[] = [];\n\n /** Filtered child categories (based on search) */\n public FilteredChildCategories: MJDashboardCategoryEntity[] = [];\n\n /** Breadcrumb trail from root to current category */\n public Breadcrumbs: MJDashboardCategoryEntity[] = [];\n\n /** Whether the delete category dialog is visible */\n public ShowDeleteCategoryConfirm = false;\n\n /** Category pending deletion */\n public CategoryPendingDelete: MJDashboardCategoryEntity | null = null;\n\n /** Whether to include contents when deleting category */\n public DeleteCategoryIncludeContents = false;\n\n /** Drop target category ID for drag-over highlighting on category cards */\n public DragOverChildCategoryId: string | null = null;\n\n private readonly destroy$ = new Subject<void>();\n\n // ========================================\n // Constructor\n // ========================================\n\n constructor(private cdr: ChangeDetectorRef) {}\n\n // ========================================\n // Lifecycle\n // ========================================\n\n ngOnInit(): void {\n this.applyFilters();\n }\n\n ngOnDestroy(): void {\n this.destroy$.next();\n this.destroy$.complete();\n }\n\n // ========================================\n // Public Methods - View Mode\n // ========================================\n\n /**\n * Toggle between card and list view\n */\n public ToggleViewMode(): void {\n this.ViewMode = this.ViewMode === 'cards' ? 'list' : 'cards';\n this.ViewModeChange.emit({ Mode: this.ViewMode });\n this.ViewPreferenceChange.emit({ ViewMode: this.ViewMode });\n }\n\n /**\n * Set view mode explicitly\n */\n public SetViewMode(mode: DashboardBrowserViewMode): void {\n if (mode !== this.ViewMode) {\n this.ViewMode = mode;\n this.ViewModeChange.emit({ Mode: mode });\n this.ViewPreferenceChange.emit({ ViewMode: mode });\n }\n }\n\n // ========================================\n // Public Methods - Filtering\n // ========================================\n\n /**\n * Handle search text change\n */\n public OnSearchChange(): void {\n this.applyFilters();\n }\n\n /**\n * Clear search text\n */\n public ClearSearch(): void {\n this.SearchText = '';\n this.applyFilters();\n }\n\n /**\n * Handle category filter change\n */\n public OnCategoryChange(categoryId: string | null): void {\n this._selectedCategoryId = categoryId;\n const category = categoryId\n ? this.Categories.find(c => c.ID === categoryId) || null\n : null;\n this.CategoryChange.emit({ CategoryId: categoryId, Category: category });\n this.applyFilters();\n }\n\n /**\n * Clear all filters\n */\n public ClearFilters(): void {\n this.SearchText = '';\n this._selectedCategoryId = null;\n this.CategoryChange.emit({ CategoryId: null, Category: null });\n this.applyFilters();\n }\n\n /**\n * Navigate into a category folder\n */\n public NavigateToCategory(categoryId: string | null): void {\n this._selectedCategoryId = categoryId;\n const category = categoryId\n ? this.Categories.find(c => c.ID === categoryId) || null\n : null;\n this.CategoryChange.emit({ CategoryId: categoryId, Category: category });\n this.applyFilters();\n }\n\n /**\n * Navigate up to parent category\n */\n public NavigateUp(): void {\n if (!this._selectedCategoryId) return;\n\n const currentCategory = this.Categories.find(c => c.ID === this._selectedCategoryId);\n const parentId = currentCategory?.ParentID || null;\n this.NavigateToCategory(parentId);\n }\n\n /**\n * Check if we're at the root level\n */\n public get IsAtRoot(): boolean {\n return !this._selectedCategoryId;\n }\n\n /**\n * Get the current category (for display)\n */\n public get CurrentCategory(): MJDashboardCategoryEntity | null {\n if (!this._selectedCategoryId) return null;\n return this.Categories.find(c => c.ID === this._selectedCategoryId) || null;\n }\n\n // ========================================\n // Public Methods - Selection\n // ========================================\n\n /**\n * Handle dashboard click with multi-select support\n */\n public OnDashboardClick(dashboard: MJDashboardEntity, event: MouseEvent): void {\n if (!this.AllowMultiSelect) {\n // Single select mode - just open the dashboard\n this.DashboardOpen.emit({ Dashboard: dashboard, OpenInNewTab: event.ctrlKey || event.metaKey });\n return;\n }\n\n if (event.shiftKey && this.lastClickedId) {\n // Shift-click: range selection\n this.selectRange(this.lastClickedId, dashboard.ID);\n } else if (event.ctrlKey || event.metaKey) {\n // Ctrl/Cmd-click: toggle selection\n this.ToggleSelection(dashboard.ID);\n } else {\n // Normal click: if not selected, open; if selected with others, open\n if (this.SelectedIds.size <= 1) {\n this.SelectedIds.clear();\n this.DashboardOpen.emit({ Dashboard: dashboard, OpenInNewTab: false });\n } else if (this.SelectedIds.has(dashboard.ID)) {\n // Clicking on one of multiple selected items - open just this one\n this.SelectedIds.clear();\n this.DashboardOpen.emit({ Dashboard: dashboard, OpenInNewTab: false });\n } else {\n // Clicking on unselected item - clear selection and open\n this.SelectedIds.clear();\n this.DashboardOpen.emit({ Dashboard: dashboard, OpenInNewTab: false });\n }\n }\n\n this.lastClickedId = dashboard.ID;\n this.cdr.markForCheck();\n }\n\n /**\n * Handle double-click to edit\n */\n public OnDashboardDoubleClick(dashboard: MJDashboardEntity, event: MouseEvent): void {\n event.preventDefault();\n event.stopPropagation();\n this.DashboardEdit.emit({ Dashboard: dashboard });\n }\n\n /**\n * Check if a dashboard is selected\n */\n public IsSelected(dashboardId: string): boolean {\n return this.SelectedIds.has(dashboardId);\n }\n\n /**\n * Select all visible dashboards\n */\n public SelectAll(): void {\n this.SelectedIds.clear();\n for (const dashboard of this.FilteredDashboards) {\n this.SelectedIds.add(dashboard.ID);\n }\n this.cdr.markForCheck();\n }\n\n /**\n * Clear all selections\n */\n public ClearSelection(): void {\n this.SelectedIds.clear();\n this.lastClickedId = null;\n this.cdr.markForCheck();\n }\n\n /**\n * Enter selection mode (show checkboxes)\n */\n public EnterSelectionMode(): void {\n if (!this.AllowMultiSelect) return;\n this.IsSelectionMode = true;\n this.cdr.markForCheck();\n }\n\n /**\n * Exit selection mode (hide checkboxes and clear selections)\n */\n public ExitSelectionMode(): void {\n this.IsSelectionMode = false;\n this.SelectedIds.clear();\n this.lastClickedId = null;\n this.cdr.markForCheck();\n }\n\n /**\n * Toggle selection mode\n */\n public ToggleSelectionMode(): void {\n if (this.IsSelectionMode) {\n this.ExitSelectionMode();\n } else {\n this.EnterSelectionMode();\n }\n }\n\n /**\n * Get count of selected dashboards\n */\n public get SelectedCount(): number {\n return this.SelectedIds.size;\n }\n\n /**\n * Get selected dashboards\n */\n public GetSelectedDashboards(): MJDashboardEntity[] {\n return this.Dashboards.filter(d => this.SelectedIds.has(d.ID));\n }\n\n // ========================================\n // Public Methods - Actions\n // ========================================\n\n /**\n * Toggle the \"New\" dropdown menu\n */\n public ToggleNewMenu(): void {\n this.ShowNewMenu = !this.ShowNewMenu;\n }\n\n /**\n * Close the \"New\" dropdown menu\n */\n public CloseNewMenu(): void {\n this.ShowNewMenu = false;\n }\n\n /**\n * Request to create a new dashboard\n */\n public OnCreateDashboard(): void {\n this.CloseNewMenu();\n this.DashboardCreate.emit({ CategoryId: this.SelectedCategoryId });\n }\n\n /**\n * Open the create category dialog\n */\n public OpenCreateCategoryDialog(): void {\n this.CloseNewMenu();\n this.NewCategoryName = '';\n this.NewCategoryDescription = '';\n this.ShowCreateCategoryDialog = true;\n this.cdr.markForCheck();\n }\n\n /**\n * Close the create category dialog\n */\n public CloseCreateCategoryDialog(): void {\n this.ShowCreateCategoryDialog = false;\n this.NewCategoryName = '';\n this.NewCategoryDescription = '';\n this.cdr.markForCheck();\n }\n\n /**\n * Confirm category creation\n */\n public ConfirmCreateCategory(): void {\n if (!this.NewCategoryName.trim()) return;\n\n this.CategoryCreate.emit({\n ParentCategoryId: this.SelectedCategoryId,\n Name: this.NewCategoryName.trim(),\n Description: this.NewCategoryDescription.trim() || null\n });\n this.CloseCreateCategoryDialog();\n }\n\n /**\n * Open edit dialog for single dashboard via context menu\n */\n public OnEditDashboard(dashboard: MJDashboardEntity, event: Event): void {\n event.stopPropagation();\n this.DashboardEdit.emit({ Dashboard: dashboard });\n }\n\n /**\n * Request to delete a single dashboard\n */\n public OnDeleteDashboard(dashboard: MJDashboardEntity, event: Event): void {\n event.stopPropagation();\n this.DashboardsPendingDelete = [dashboard];\n this.ShowDeleteConfirm = true;\n this.cdr.markForCheck();\n }\n\n /**\n * Request to delete selected dashboards.\n * Only includes dashboards the user has permission to delete.\n */\n public OnDeleteSelected(): void {\n if (this.SelectedIds.size === 0) return;\n\n // Only include dashboards the user can delete\n this.DashboardsPendingDelete = this.GetDeletableSelectedDashboards();\n\n if (this.DashboardsPendingDelete.length === 0) {\n // No deletable dashboards selected\n return;\n }\n\n this.ShowDeleteConfirm = true;\n this.cdr.markForCheck();\n }\n\n /**\n * Confirm deletion\n */\n public ConfirmDelete(): void {\n if (this.DashboardsPendingDelete.length > 0) {\n this.DashboardDelete.emit({ Dashboards: this.DashboardsPendingDelete });\n // Clear selection for deleted items\n for (const d of this.DashboardsPendingDelete) {\n this.SelectedIds.delete(d.ID);\n }\n }\n this.CloseDeleteConfirm();\n // Exit selection mode after bulk operation\n this.ExitSelectionMode();\n }\n\n /**\n * Cancel deletion\n */\n public CloseDeleteConfirm(): void {\n this.ShowDeleteConfirm = false;\n this.DashboardsPendingDelete = [];\n this.cdr.markForCheck();\n }\n\n /**\n * Open move-to-folder dialog for selected dashboards\n */\n public OnMoveSelected(): void {\n if (this.SelectedIds.size === 0) return;\n this.ShowMoveDialog = true;\n this.cdr.markForCheck();\n }\n\n /**\n * Confirm move to folder\n */\n public ConfirmMove(targetCategoryId: string | null): void {\n const dashboards = this.GetSelectedDashboards();\n if (dashboards.length > 0) {\n this.DashboardMove.emit({\n Dashboards: dashboards,\n TargetCategoryId: targetCategoryId\n });\n }\n this.CloseMoveDialog();\n // Exit selection mode after bulk operation\n this.ExitSelectionMode();\n }\n\n /**\n * Cancel move\n */\n public CloseMoveDialog(): void {\n this.ShowMoveDialog = false;\n this.cdr.markForCheck();\n }\n\n // ========================================\n // Public Methods - Category Actions\n // ========================================\n\n /**\n * Request to delete a category\n */\n public OnDeleteCategory(category: MJDashboardCategoryEntity, event: Event): void {\n event.stopPropagation();\n this.CategoryPendingDelete = category;\n this.DeleteCategoryIncludeContents = false;\n this.ShowDeleteCategoryConfirm = true;\n this.cdr.markForCheck();\n }\n\n /**\n * Confirm category deletion\n */\n public ConfirmDeleteCategory(): void {\n if (this.CategoryPendingDelete) {\n this.CategoryDelete.emit({\n Category: this.CategoryPendingDelete,\n IncludeContents: this.DeleteCategoryIncludeContents\n });\n }\n this.CloseDeleteCategoryConfirm();\n }\n\n /**\n * Cancel category deletion\n */\n public CloseDeleteCategoryConfirm(): void {\n this.ShowDeleteCategoryConfirm = false;\n this.CategoryPendingDelete = null;\n this.DeleteCategoryIncludeContents = false;\n this.cdr.markForCheck();\n }\n\n /**\n * Get count of dashboards and sub-categories in a category\n */\n public GetCategoryContentCount(category: MJDashboardCategoryEntity): { dashboards: number; categories: number } {\n const dashboards = this.Dashboards.filter(d => d.CategoryID === category.ID).length;\n const categories = this.Categories.filter(c => c.ParentID === category.ID).length;\n return { dashboards, categories };\n }\n\n // ========================================\n // Public Methods - Drag and Drop\n // ========================================\n\n /**\n * Handle drag start\n */\n public OnDragStart(dashboard: MJDashboardEntity, event: DragEvent): void {\n if (!this.AllowDragDrop) return;\n\n this.DraggingId = dashboard.ID;\n\n // If dragging an unselected item, select only it\n if (!this.SelectedIds.has(dashboard.ID)) {\n this.SelectedIds.clear();\n this.SelectedIds.add(dashboard.ID);\n }\n\n // Set drag data\n const dragData = {\n type: 'dashboards',\n ids: Array.from(this.SelectedIds)\n };\n event.dataTransfer?.setData('application/json', JSON.stringify(dragData));\n event.dataTransfer!.effectAllowed = 'move';\n\n // Create custom drag image for list view (smaller than full row)\n if (this._viewMode === 'list' && event.dataTransfer) {\n const dragPreview = this.createDragPreview(dashboard);\n document.body.appendChild(dragPreview);\n event.dataTransfer.setDragImage(dragPreview, 12, 12);\n // Clean up the preview element after drag starts\n setTimeout(() => dragPreview.remove(), 0);\n }\n\n this.cdr.markForCheck();\n }\n\n /**\n * Create a compact drag preview element\n */\n private createDragPreview(dashboard: MJDashboardEntity): HTMLElement {\n const count = this.SelectedIds.size;\n const preview = document.createElement('div');\n preview.style.cssText = `\n position: absolute;\n left: -9999px;\n top: -9999px;\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 8px 12px;\n background: #5c6bc0;\n color: white;\n border-radius: 6px;\n font-size: 13px;\n font-weight: 500;\n box-shadow: 0 4px 12px rgba(0,0,0,0.3);\n white-space: nowrap;\n `;\n\n const icon = document.createElement('i');\n icon.className = 'fa-solid fa-chart-line';\n preview.appendChild(icon);\n\n const text = document.createElement('span');\n text.textContent = count > 1 ? `${count} dashboards` : dashboard.Name;\n preview.appendChild(text);\n\n return preview;\n }\n\n /**\n * Handle drag end\n */\n public OnDragEnd(): void {\n this.DraggingId = null;\n this.DropTargetCategoryId = null;\n this.cdr.markForCheck();\n }\n\n /**\n * Handle drag over category\n */\n public OnDragOverCategory(categoryId: string | null, event: DragEvent): void {\n if (!this.AllowDragDrop) return;\n event.preventDefault();\n event.dataTransfer!.dropEffect = 'move';\n this.DropTargetCategoryId = categoryId;\n this.cdr.markForCheck();\n }\n\n /**\n * Handle drag leave category\n */\n public OnDragLeaveCategory(): void {\n this.DropTargetCategoryId = null;\n this.cdr.markForCheck();\n }\n\n /**\n * Handle drop on category\n */\n public OnDropOnCategory(categoryId: string | null, event: DragEvent): void {\n if (!this.AllowDragDrop) return;\n event.preventDefault();\n\n const data = event.dataTransfer?.getData('application/json');\n if (data) {\n try {\n const dragData = JSON.parse(data);\n if (dragData.type === 'dashboards' && dragData.ids?.length > 0) {\n const dashboards = this.Dashboards.filter(d => dragData.ids.includes(d.ID));\n if (dashboards.length > 0) {\n this.DashboardMove.emit({\n Dashboards: dashboards,\n TargetCategoryId: categoryId\n });\n }\n }\n } catch {\n // Invalid drag data\n }\n }\n\n this.DraggingId = null;\n this.DropTargetCategoryId = null;\n this.cdr.markForCheck();\n }\n\n // ========================================\n // Public Methods - Helpers\n // ========================================\n\n /**\n * Get category name for a dashboard\n */\n public GetCategoryName(categoryId: string | null): string {\n if (!categoryId) return 'Uncategorized';\n const category = this.Categories.find(c => c.ID === categoryId);\n return category?.Name || 'Unknown';\n }\n\n /**\n * Format date for display\n */\n public FormatDate(date: Date): string {\n if (!date) return '';\n const d = new Date(date);\n const now = new Date();\n const diffMs = now.getTime() - d.getTime();\n const diffDays = Math.floor(diffMs / (1000 * 60 * 60 * 24));\n\n if (diffDays === 0) {\n return 'Today';\n } else if (diffDays === 1) {\n return 'Yesterday';\n } else if (diffDays < 7) {\n return `${diffDays} days ago`;\n } else {\n return d.toLocaleDateString();\n }\n }\n\n /**\n * Track by function for ngFor\n */\n public TrackByDashboard(_index: number, dashboard: MJDashboardEntity): string {\n return dashboard.ID;\n }\n\n /**\n * Track by function for categories\n */\n public TrackByCategory(_index: number, category: MJDashboardCategoryEntity): string {\n return category.ID;\n }\n\n // ========================================\n // Public Methods - Category Helpers\n // ========================================\n\n /**\n * Gets the effective category ID for a dashboard for display purposes.\n * For shared dashboards, this may differ from the actual CategoryID\n * based on the user's DashboardCategoryLink.\n */\n public GetEffectiveCategoryId(dashboard: MJDashboardEntity): string | null {\n // If we have an effective category mapping, use it\n if (this._effectiveCategoryMap.has(dashboard.ID)) {\n return this._effectiveCategoryMap.get(dashboard.ID) ?? null;\n }\n // Otherwise use the dashboard's actual category\n return dashboard.CategoryID || null;\n }\n\n // ========================================\n // Public Methods - Permission Checks\n // ========================================\n\n /**\n * Check if a dashboard is shared with the current user (not owned)\n */\n public IsShared(dashboardId: string): boolean {\n const perms = this._dashboardPermissions.get(dashboardId);\n // If permissions exist and user is not owner but can read, it's shared\n return perms ? !perms.IsOwner && perms.CanRead : false;\n }\n\n /**\n * Check if user can edit a dashboard\n */\n public CanEdit(dashboardId: string): boolean {\n const perms = this._dashboardPermissions.get(dashboardId);\n // Default to true if no permissions provided (backwards compatibility)\n return perms ? perms.CanEdit : true;\n }\n\n /**\n * Check if user can delete a dashboard\n */\n public CanDelete(dashboardId: string): boolean {\n const perms = this._dashboardPermissions.get(dashboardId);\n // Default to true if no permissions provided (backwards compatibility)\n return perms ? perms.CanDelete : true;\n }\n\n /**\n * Check if any of the currently selected dashboards can be deleted.\n * Returns true only if at least one selected dashboard can be deleted.\n * Used to enable/disable the bulk delete button in selection mode.\n */\n public get CanDeleteAnySelected(): boolean {\n if (this.SelectedIds.size === 0) return false;\n\n for (const id of this.SelectedIds) {\n if (this.CanDelete(id)) {\n return true;\n }\n }\n return false;\n }\n\n /**\n * Gets the list of selected dashboards that can be deleted.\n * Filters out dashboards the user doesn't have permission to delete.\n */\n public GetDeletableSelectedDashboards(): MJDashboardEntity[] {\n return this.GetSelectedDashboards().filter(d => this.CanDelete(d.ID));\n }\n\n /**\n * Highlight matching search text in a string\n * Returns HTML with <mark> tags around matches\n */\n public HighlightMatch(text: string): string {\n if (!this.SearchText.trim() || !text) return text;\n\n const search = this.SearchText.trim();\n const regex = new RegExp(`(${this.escapeRegex(search)})`, 'gi');\n return text.replace(regex, '<mark>$1</mark>');\n }\n\n /**\n * Escape special regex characters\n */\n private escapeRegex(str: string): string {\n return str.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&');\n }\n\n // ========================================\n // Drag and Drop on Category Cards\n // ========================================\n\n /**\n * Handle drag over a category card\n */\n public OnDragOverChildCategory(categoryId: string, event: DragEvent): void {\n if (!this.AllowDragDrop || !this.DraggingId) return;\n event.preventDefault();\n event.stopPropagation();\n event.dataTransfer!.dropEffect = 'move';\n this.DragOverChildCategoryId = categoryId;\n this.cdr.markForCheck();\n }\n\n /**\n * Handle drag leave from a category card\n */\n public OnDragLeaveChildCategory(): void {\n this.DragOverChildCategoryId = null;\n this.cdr.markForCheck();\n }\n\n /**\n * Handle drop on a category card\n */\n public OnDropOnChildCategory(categoryId: string, event: DragEvent): void {\n if (!this.AllowDragDrop) return;\n event.preventDefault();\n event.stopPropagation();\n\n const data = event.dataTransfer?.getData('application/json');\n if (data) {\n try {\n const dragData = JSON.parse(data);\n if (dragData.type === 'dashboards' && dragData.ids?.length > 0) {\n const dashboards = this.Dashboards.filter(d => dragData.ids.includes(d.ID));\n if (dashboards.length > 0) {\n this.DashboardMove.emit({\n Dashboards: dashboards,\n TargetCategoryId: categoryId\n });\n // Exit selection mode after move\n this.ExitSelectionMode();\n }\n }\n } catch {\n // Invalid drag data\n }\n }\n\n this.DraggingId = null;\n this.DragOverChildCategoryId = null;\n this.DropTargetCategoryId = null;\n this.cdr.markForCheck();\n }\n\n /**\n * Handle drop from breadcrumb component\n */\n public OnBreadcrumbDrop(event: { TargetCategoryId: string | null; DashboardIds: string[] }): void {\n const dashboards = this.Dashboards.filter(d => event.DashboardIds.includes(d.ID));\n if (dashboards.length > 0) {\n this.DashboardMove.emit({\n Dashboards: dashboards,\n TargetCategoryId: event.TargetCategoryId\n });\n // Exit selection mode after move\n this.ExitSelectionMode();\n }\n }\n\n // ========================================\n // Private Methods\n // ========================================\n\n private applyFilters(): void {\n let filtered = [...this._dashboards];\n\n // Filter out non-Config dashboards (Code and Dynamic Code types are not viewable/editable in browser)\n filtered = filtered.filter(d => d.Type === 'Config');\n\n // Filter by search text\n if (this.SearchText.trim()) {\n const search = this.SearchText.toLowerCase();\n filtered = filtered.filter(d =>\n d.Name.toLowerCase().includes(search) ||\n (d.Description || '').toLowerCase().includes(search)\n );\n }\n\n // Filter by current folder (category)\n // When at root (null), show only uncategorized dashboards\n // When in a category, show only dashboards directly in that category\n // Uses effective category (from EffectiveCategoryMap) for shared dashboards\n if (this._selectedCategoryId) {\n filtered = filtered.filter(d => this.GetEffectiveCategoryId(d) === this._selectedCategoryId);\n } else {\n // At root level, show only uncategorized dashboards (effective CategoryID is null or empty)\n filtered = filtered.filter(d => !this.GetEffectiveCategoryId(d));\n }\n\n this.FilteredDashboards = filtered;\n this.updateChildCategories();\n this.updateBreadcrumbs();\n this.cdr.markForCheck();\n }\n\n /**\n * Update the list of child categories for the current folder\n */\n private updateChildCategories(): void {\n // Find categories that are children of the current category\n // Handle both null and undefined ParentID for root-level categories\n if (this._selectedCategoryId) {\n this.ChildCategories = this.Categories.filter(c => c.ParentID === this._selectedCategoryId);\n } else {\n // At root level - show categories with no parent (null or undefined)\n this.ChildCategories = this.Categories.filter(c => !c.ParentID);\n }\n\n // Apply search filter to categories if search text exists\n if (this.SearchText.trim()) {\n const search = this.SearchText.toLowerCase();\n this.FilteredChildCategories = this.ChildCategories.filter(c =>\n c.Name.toLowerCase().includes(search) ||\n (c.Description || '').toLowerCase().includes(search)\n );\n } else {\n this.FilteredChildCategories = [...this.ChildCategories];\n }\n }\n\n /**\n * Update breadcrumb trail from root to current category\n */\n private updateBreadcrumbs(): void {\n this.Breadcrumbs = [];\n\n if (!this._selectedCategoryId) return;\n\n // Build the path from current category to root\n const path: MJDashboardCategoryEntity[] = [];\n let currentId: string | null = this._selectedCategoryId;\n\n while (currentId) {\n const category = this.Categories.find(c => c.ID === currentId);\n if (category) {\n path.unshift(category);\n currentId = category.ParentID;\n } else {\n break;\n }\n }\n\n this.Breadcrumbs = path;\n }\n\n /**\n * Toggle selection for a single dashboard\n */\n public ToggleSelection(dashboardId: string): void {\n if (this.SelectedIds.has(dashboardId)) {\n this.SelectedIds.delete(dashboardId);\n } else {\n this.SelectedIds.add(dashboardId);\n }\n this.cdr.markForCheck();\n }\n\n private selectRange(fromId: string, toId: string): void {\n const fromIndex = this.FilteredDashboards.findIndex(d => d.ID === fromId);\n const toIndex = this.FilteredDashboards.findIndex(d => d.ID === toId);\n\n if (fromIndex === -1 || toIndex === -1) return;\n\n const start = Math.min(fromIndex, toIndex);\n const end = Math.max(fromIndex, toIndex);\n\n for (let i = start; i <= end; i++) {\n this.SelectedIds.add(this.FilteredDashboards[i].ID);\n }\n }\n}\n","<!-- Dashboard Browser Component -->\n<div class=\"dashboard-browser\" [class.loading]=\"IsLoading\">\n <!-- Toolbar Row: Breadcrumb + Actions -->\n <div class=\"browser-toolbar\">\n <!-- Breadcrumb Navigation -->\n <mj-dashboard-breadcrumb\n [Categories]=\"Categories\"\n [CurrentCategoryId]=\"SelectedCategoryId\"\n [RootIcon]=\"IconClass\"\n [RootLabel]=\"Title\"\n [AllowDragDrop]=\"AllowDragDrop && (DraggingId !== null || IsSelectionMode)\"\n Size=\"large\"\n (Navigate)=\"NavigateToCategory($event.CategoryId)\"\n (DashboardDrop)=\"OnBreadcrumbDrop($event)\">\n </mj-dashboard-breadcrumb>\n\n <!-- Right-side Actions -->\n <div class=\"toolbar-actions\">\n <!-- Dashboard count -->\n <span class=\"dashboard-count\">{{ FilteredDashboards.length }} dashboards</span>\n\n <!-- View Toggle -->\n <div class=\"view-toggle\">\n <button\n class=\"toggle-btn\"\n [class.active]=\"ViewMode === 'cards'\"\n (click)=\"SetViewMode('cards')\"\n title=\"Card View\">\n <i class=\"fa-solid fa-grip\"></i>\n </button>\n <button\n class=\"toggle-btn\"\n [class.active]=\"ViewMode === 'list'\"\n (click)=\"SetViewMode('list')\"\n title=\"List View\">\n <i class=\"fa-solid fa-list\"></i>\n </button>\n </div>\n\n <!-- Selection Mode Toggle & Bulk Actions -->\n @if (AllowMultiSelect) {\n <!-- Enter Selection Mode Button (when not in selection mode) -->\n @if (!IsSelectionMode && FilteredDashboards.length > 0) {\n <button\n class=\"select-mode-btn\"\n (click)=\"EnterSelectionMode()\"\n title=\"Select multiple dashboards\">\n <i class=\"fa-solid fa-check-double\"></i>\n Select\n </button>\n }\n <!-- Selection Mode Toolbar (when in selection mode) -->\n @if (IsSelectionMode) {\n <div class=\"selection-toolbar\">\n <span class=\"selected-count\">{{ SelectedCount }} selected</span>\n <button class=\"action-btn\" (click)=\"SelectAll()\" title=\"Select all\">\n <i class=\"fa-solid fa-check-double\"></i>\n </button>\n <button class=\"action-btn\" (click)=\"OnMoveSelected()\" title=\"Move to folder\" [disabled]=\"SelectedCount === 0\">\n <i class=\"fa-solid fa-folder-open\"></i>\n </button>\n <button class=\"action-btn danger\" (click)=\"OnDeleteSelected()\" title=\"Delete selected\" [disabled]=\"!CanDeleteAnySelected\">\n <i class=\"fa-solid fa-trash\"></i>\n </button>\n <button class=\"action-btn\" (click)=\"ExitSelectionMode()\" title=\"Exit selection mode\">\n <i class=\"fa-solid fa-times\"></i>\n </button>\n </div>\n }\n }\n\n <!-- New Dropdown Button -->\n @if (ShowCreateButton) {\n <div class=\"new-dropdown\">\n <button\n class=\"btn-primary\"\n (click)=\"ToggleNewMenu(); $event.stopPropagation()\">\n <i class=\"fa-solid fa-plus\"></i>\n New\n <i class=\"fa-solid fa-caret-down dropdown-caret\"></i>\n </button>\n @if (ShowNewMenu) {\n <div class=\"dropdown-menu\">\n <button class=\"dropdown-item\" (click)=\"OnCreateDashboard()\">\n <i class=\"fa-solid fa-chart-line\"></i>\n Dashboard\n </button>\n <button class=\"dropdown-item\" (click)=\"OpenCreateCategoryDialog()\">\n <i class=\"fa-solid fa-folder-plus\"></i>\n Category\n </button>\n </div>\n }\n </div>\n }\n </div>\n </div>\n\n <!-- Click-away overlay for dropdown -->\n @if (ShowNewMenu) {\n <div class=\"dropdown-backdrop\" (click)=\"CloseNewMenu()\"></div>\n }\n\n <!-- Filters -->\n <div class=\"browser-filters\">\n <div class=\"search-box\">\n <i class=\"fa-solid fa-search\"></i>\n <input\n type=\"text\"\n [(ngModel)]=\"SearchText\"\n (input)=\"OnSearchChange()\"\n placeholder=\"Search dashboards...\">\n @if (SearchText) {\n <button\n class=\"clear-btn\"\n (click)=\"ClearSearch()\">\n <i class=\"fa-solid fa-times\"></i>\n </button>\n }\n </div>\n\n @if (SearchText) {\n <button\n class=\"clear-filters-btn\"\n (click)=\"ClearSearch()\">\n <i class=\"fa-solid fa-filter-circle-xmark\"></i>\n Clear Search\n </button>\n }\n </div>\n\n <!-- Loading Overlay -->\n @if (IsLoading) {\n <div class=\"loading-overlay\">\n <mj-loading text=\"Loading dashboards...\"></mj-loading>\n </div>\n }\n\n <!-- Card View -->\n @if (ViewMode === 'cards' && (FilteredChildCategories.length > 0 || FilteredDashboards.length > 0)) {\n <div class=\"dashboard-grid\">\n <!-- Category Folders -->\n @for (category of FilteredChildCategories; track TrackByCategory($index, category)) {\n <div\n class=\"dashboard-card category-card\"\n [class.drop-target]=\"DragOverChildCategoryId === category.ID\"\n (click)=\"NavigateToCategory(category.ID)\"\n (dblclick)=\"$event.stopPropagation()\"\n (dragover)=\"OnDragOverChildCategory(category.ID, $event)\"\n (dragleave)=\"OnDragLeaveChildCategory()\"\n (drop)=\"OnDropOnChildCategory(category.ID, $event)\">\n <div class=\"card-header\">\n <div class=\"card-icon folder-icon\">\n <i class=\"fa-solid fa-folder\"></i>\n </div>\n <div class=\"card-actions\">\n <button\n class=\"action-btn danger\"\n title=\"Delete category\"\n (click)=\"OnDeleteCategory(category, $event)\">\n <i class=\"fa-solid fa-trash\"></i>\n </button>\n </div>\n </div>\n <div class=\"card-content\">\n <h3 class=\"card-title\" [innerHTML]=\"HighlightMatch(category.Name)\"></h3>\n @if (category.Description) {\n <p class=\"card-description\" [innerHTML]=\"HighlightMatch(category.Description)\">\n </p>\n }\n <div class=\"card-meta\">\n <span class=\"meta-item\">\n <i class=\"fa-solid fa-folder-tree\"></i>\n Category\n </span>\n </div>\n </div>\n </div>\n }\n <!-- Dashboard Cards -->\n @for (dashboard of FilteredDashboards; track TrackByDashboard($index, dashboard)) {\n <div\n class=\"dashboard-card\"\n [class.selected]=\"IsSelected(dashboard.ID)\"\n [class.dragging]=\"DraggingId === dashboard.ID\"\n [draggable]=\"AllowDragDrop\"\n (click)=\"OnDashboardClick(dashboard, $event)\"\n (dblclick)=\"OnDashboardDoubleClick(dashboard, $event)\"\n (dragstart)=\"OnDragStart(dashboard, $event)\"\n (dragend)=\"OnDragEnd()\">\n <!-- Selection checkbox in top-right corner -->\n @if (IsSelectionMode) {\n <div\n class=\"card-select-area\"\n (click)=\"ToggleSelection(dashboard.ID); $event.stopPropagation()\">\n <input\n type=\"checkbox\"\n [checked]=\"IsSelected(dashboard.ID)\"\n (change)=\"$event.stopPropagation()\">\n </div>\n }\n <div class=\"card-header\">\n <div class=\"card-icon\">\n <i class=\"fa-solid fa-chart-line\"></i>\n </div>\n <div class=\"card-actions\">\n @if (CanEdit(dashboard.ID)) {\n <button\n class=\"action-btn\"\n title=\"Edit\"\n (click)=\"OnEditDashboard(dashboard, $event)\">\n <i class=\"fa-solid fa-edit\"></i>\n </button>\n }\n @if (CanDelete(dashboard.ID)) {\n <button\n class=\"action-btn danger\"\n title=\"Delete\"\n (click)=\"OnDeleteDashboard(dashboard, $event)\">\n <i class=\"fa-solid fa-trash\"></i>\n </button>\n }\n </div>\n </div>\n <div class=\"card-content\">\n <h3 class=\"card-title\">\n <span [innerHTML]=\"HighlightMatch(dashboard.Name)\"></span>\n @if (IsShared(dashboard.ID)) {\n <span class=\"shared-badge\" title=\"Shared with you\">\n <i class=\"fa-solid fa-share-nodes\"></i>\n </span>\n }\n </h3>\n @if (dashboard.Description) {\n <p class=\"card-description\" [innerHTML]=\"HighlightMatch(dashboard.Description)\">\n </p>\n }\n <div class=\"card-meta\">\n <span class=\"meta-item\">\n <i class=\"fa-solid fa-clock\"></i>\n {{ FormatDate(dashboard.__mj_UpdatedAt) }}\n </span>\n </div>\n </div>\n </div>\n }\n </div>\n }\n\n <!-- List View -->\n @if (ViewMode === 'list' && (FilteredChildCategories.length > 0 || FilteredDashboards.length > 0)) {\n <div class=\"dashboard-list\">\n <div class=\"list-header\">\n @if (IsSelectionMode) {\n <div class=\"list-col checkbox-col\">\n <input\n type=\"checkbox\"\n [checked]=\"SelectedCount === FilteredDashboards.length && FilteredDashboards.length > 0\"\n [indeterminate]=\"SelectedCount > 0 && SelectedCount < FilteredDashboards.length\"\n (change)=\"SelectedCount === FilteredDashboards.length ? ClearSelection() : SelectAll()\">\n </div>\n }\n <div class=\"list-col name-col\">Name</div>\n <div class=\"list-col type-col\">Type</div>\n <div class=\"list-col date-col\">Modified</div>\n <div class=\"list-col actions-col\">Actions</div>\n </div>\n <!-- Category Rows -->\n @for (category of FilteredChildCategories; track TrackByCategory($index, category)) {\n <div\n class=\"list-row category-row\"\n [class.drop-target]=\"DragOverChildCategoryId === category.ID\"\n (click)=\"NavigateToCategory(category.ID)\"\n (dragover)=\"OnDragOverChildCategory(category.ID, $event)\"\n (dragleave)=\"OnDragLeaveChildCategory()\"\n (drop)=\"OnDropOnChildCategory(category.ID, $event)\">\n @if (IsSelectionMode) {\n <div class=\"list-col checkbox-col\">\n <!-- Empty placeholder for alignment -->\n </div>\n }\n <div class=\"list-col name-col\">\n <i class=\"fa-solid fa-folder row-icon folder-icon\"></i>\n <span class=\"dashboard-name\" [innerHTML]=\"HighlightMatch(category.Name)\"></span>\n </div>\n <div class=\"list-col type-col\">\n Category\n </div>\n <div class=\"list-col date-col\">\n <!-- No date for categories -->\n </div>\n <div class=\"list-col actions-col\" (click)=\"$event.stopPropagation()\">\n <button\n class=\"action-btn danger\"\n title=\"Delete category\"\n (click)=\"OnDeleteCategory(category, $event)\">\n <i class=\"fa-solid fa-trash\"></i>\n </button>\n </div>\n </div>\n }\n <!-- Dashboard Rows -->\n @for (dashboard of FilteredDashboards; track TrackByDashboard($index, dashboard)) {\n <div\n class=\"list-row\"\n [class.selected]=\"IsSelected(dashboard.ID)\"\n [class.dragging]=\"DraggingId === dashboard.ID\"\n [draggable]=\"AllowDragDrop\"\n (click)=\"OnDashboardClick(dashboard, $event)\"\n (dblclick)=\"OnDashboardDoubleClick(dashboard, $event)\"\n (dragstart)=\"OnDragStart(dashboard, $event)\"\n (dragend)=\"OnDragEnd()\">\n @if (IsSelectionMode) {\n <div class=\"list-col checkbox-col\" (click)=\"$event.stopPropagation()\">\n <input\n type=\"checkbox\"\n [checked]=\"IsSelected(dashboard.ID)\"\n (change)=\"ToggleSelection(dashboard.ID)\">\n </div>\n }\n <div class=\"list-col name-col\">\n <i class=\"fa-solid fa-chart-line row-icon\"></i>\n <span class=\"dashboard-name\" [innerHTML]=\"HighlightMatch(dashboard.Name)\"></span>\n @if (IsShared(dashboard.ID)) {\n <span class=\"shared-badge\" title=\"Shared with you\">\n <i class=\"fa-solid fa-share-nodes\"></i>\n </span>\n }\n </div>\n <div class=\"list-col type-col\">\n Dashboard\n </div>\n <div class=\"list-col date-col\">\n {{ FormatDate(dashboard.__mj_UpdatedAt) }}\n </div>\n <div class=\"list-col actions-col\" (click)=\"$event.stopPropagation()\">\n @if (CanEdit(dashboard.ID)) {\n <button\n class=\"action-btn\"\n title=\"Edit\"\n (click)=\"OnEditDashboard(dashboard, $event)\">\n <i class=\"fa-solid fa-edit\"></i>\n </button>\n }\n @if (CanDelete(dashboard.ID)) {\n <button\n class=\"action-btn danger\"\n title=\"Delete\"\n (click)=\"OnDeleteDashboard(dashboard, $event)\">\n <i class=\"fa-solid fa-trash\"></i>\n </button>\n }\n </div>\n </div>\n }\n </div>\n }\n\n <!-- Empty State -->\n @if (FilteredDashboards.length === 0 && FilteredChildCategories.length === 0 && !IsLoading) {\n <div class=\"empty-state\">\n <div class=\"empty-state-content\">\n <!-- First-time user experience (no dashboards at all) -->\n @if (IsAtRoot && Dashboards.length === 0) {\n <div class=\"empty-illustration\">\n <div class=\"illustration-bg\">\n <i class=\"fa-solid fa-gauge-high main-icon\"></i>\n </div>\n <div class=\"illustration-accent accent-1\"><i class=\"fa-solid fa-chart-line\"></i></div>\n <div class=\"illustration-accent accent-2\"><i class=\"fa-solid fa-chart-bar\"></i></div>\n <div class=\"illustration-accent accent-3\"><i class=\"fa-solid fa-chart-pie\"></i></div>\n </div>\n <h2 class=\"empty-title\">Welcome to Dashboards</h2>\n <p class=\"empty-description\">\n Create custom dashboards to visualize your data, track key metrics, and monitor important information all in one place.\n </p>\n @if (ShowCreateButton) {\n <div class=\"empty-actions\">\n <button class=\"btn-primary large\" (click)=\"OnCreateDashboard()\">\n <i class=\"fa-solid fa-plus\"></i>\n Create Your First Dashboard\n </button>\n </div>\n }\n <div class=\"empty-features\">\n <div class=\"feature-item\">\n <i class=\"fa-solid fa-table-cells\"></i>\n <span>Customizable layouts</span>\n </div>\n <div class=\"feature-item\">\n <i class=\"fa-solid fa-database\"></i>\n <span>Connect to your data</span>\n </div>\n <div class=\"feature-item\">\n <i class=\"fa-solid fa-share-nodes\"></i>\n <span>Share with your team</span>\n </div>\n </div>\n }\n <!-- Folder is empty -->\n @if (!IsAtRoot && !SearchText) {\n <div class=\"empty-icon folder-empty\">\n <i class=\"fa-solid fa-folder-open\"></i>\n </div>\n <h3 class=\"empty-title\">This folder is empty</h3>\n <p class=\"empty-description\">\n Add dashboards or create sub-folders to organize your content.\n </p>\n @if (ShowCreateButton) {\n <div class=\"empty-actions\">\n <button class=\"btn-primary\" (click)=\"OnCreateDashboard()\">\n <i class=\"fa-solid fa-plus\"></i>\n Create Dashboard\n </button>\n </div>\n }\n }\n <!-- Root has dashboards but none uncategorized -->\n @if (IsAtRoot && Dashboards.length > 0 && !SearchText) {\n <div class=\"empty-icon\">\n <i class=\"fa-solid fa-folder-tree\"></i>\n </div>\n <h3 class=\"empty-title\">No uncategorized dashboards</h3>\n <p class=\"empty-description\">\n All your dashboards are organized into folders. Browse the folders above or create a new dashboard here.\n </p>\n @if (ShowCreateButton) {\n <div class=\"empty-actions\">\n <button class=\"btn-primary\" (click)=\"OnCreateDashboard()\">\n <i class=\"fa-solid fa-plus\"></i>\n Create Dashboard\n </button>\n </div>\n }\n }\n <!-- Search returned no results -->\n @if (SearchText) {\n <div class=\"empty-icon search-empty\">\n <i class=\"fa-solid fa-magnifying-glass\"></i>\n </div>\n <h3 class=\"empty-title\">No results found</h3>\n <p class=\"empty-description\">\n No dashboards or folders match \"<strong>{{ SearchText }}</strong>\". Try a different search term.\n </p>\n <div class=\"empty-actions\">\n <button class=\"btn-secondary\" (click)=\"ClearSearch()\">\n <i class=\"fa-solid fa-times\"></i>\n Clear Search\n </button>\n </div>\n }\n </div>\n </div>\n }\n\n <!-- Category Drop Zones (for drag and drop) -->\n @if (DraggingId && Categories.length > 0) {\n <div class=\"category-drop-zones\">\n <div class=\"drop-zone-header\">Drop to move to category:</div>\n <div class=\"drop-zones\">\n <div\n class=\"drop-zone\"\n [class.active]=\"DropTargetCategoryId === null\"\n (dragover)=\"OnDragOverCategory(null, $event)\"\n (dragleave)=\"OnDragLeaveCategory()\"\n (drop)=\"OnDropOnCategory(null, $event)\">\n <i class=\"fa-solid fa-folder-open\"></i>\n Uncategorized\n </div>\n @for (cat of Categories; track TrackByCategory($index, cat)) {\n <div\n class=\"drop-zone\"\n [class.active]=\"DropTargetCategoryId === cat.ID\"\n (dragover)=\"OnDragOverCategory(cat.ID, $event)\"\n (dragleave)=\"OnDragLeaveCategory()\"\n (drop)=\"OnDropOnCategory(cat.ID, $event)\">\n <i class=\"fa-solid fa-folder\"></i>\n {{ cat.Name }}\n </div>\n }\n </div>\n </div>\n }\n\n <!-- Delete Confirmation Dialog -->\n <mj-confirm-dialog\n [visible]=\"ShowDeleteConfirm\"\n type=\"danger\"\n title=\"Delete Dashboard{{ DashboardsPendingDelete.length > 1 ? 's' : '' }}\"\n [message]=\"DashboardsPendingDelete.length === 1\n ? 'Are you sure you want to delete \\'' + DashboardsPendingDelete[0].Name + '\\'? This action cannot be undone.'\n : 'Are you sure you want to delete ' + DashboardsPendingDelete.length + ' dashboards? This action cannot be undone.'\"\n confirmText=\"Delete\"\n cancelText=\"Cancel\"\n (confirmed)=\"ConfirmDelete()\"\n (cancelled)=\"CloseDeleteConfirm()\">\n </mj-confirm-dialog>\n\n <!-- Move to Folder Dialog -->\n @if (ShowMoveDialog) {\n <div class=\"move-dialog-overlay\" (click)=\"CloseMoveDialog()\">\n <div class=\"move-dialog\" (click)=\"$event.stopPropagation()\">\n <div class=\"dialog-header\">\n <h3>Move to Category</h3>\n <button class=\"close-btn\" (click)=\"CloseMoveDialog()\">\n <i class=\"fa-solid fa-times\"></i>\n </button>\n </div>\n <div class=\"dialog-content\">\n <p>Move {{ SelectedCount }} dashboard{{ SelectedCount > 1 ? 's' : '' }} to:</p>\n <div class=\"category-list\">\n <div\n class=\"category-option\"\n (click)=\"ConfirmMove(null)\">\n <i class=\"fa-solid fa-folder-open\"></i>\n Uncategorized\n </div>\n @for (cat of Categories; track TrackByCategory($index, cat)) {\n <div\n class=\"category-option\"\n (click)=\"ConfirmMove(cat.ID)\">\n <i class=\"fa-solid fa-folder\"></i>\n {{ cat.Name }}\n </div>\n }\n </div>\n </div>\n <div class=\"dialog-footer\">\n <button class=\"btn-secondary\" (click)=\"CloseMoveDialog()\">Cancel</button>\n </div>\n </div>\n </div>\n }\n\n <!-- Create Category Dialog -->\n @if (ShowCreateCategoryDialog) {\n <div class=\"create-category-dialog-overlay\" (click)=\"CloseCreateCategoryDialog()\">\n <div class=\"create-category-dialog\" (click)=\"$event.stopPropagation()\">\n <div class=\"dialog-header\">\n <h3>\n <i class=\"fa-solid fa-folder-plus\"></i>\n Create Category\n </h3>\n <button class=\"close-btn\" (click)=\"CloseCreateCategoryDialog()\">\n <i class=\"fa-solid fa-times\"></i>\n </button>\n </div>\n <div class=\"dialog-content\">\n <div class=\"form-field\">\n <label for=\"category-name\">Name *</label>\n <input\n type=\"text\"\n id=\"category-name\"\n [(ngModel)]=\"NewCategoryName\"\n placeholder=\"Enter category name\"\n (keyup.enter)=\"ConfirmCreateCategory()\">\n </div>\n <div class=\"form-field\">\n <label for=\"category-description\">Description</label>\n <textarea\n id=\"category-description\"\n [(ngModel)]=\"NewCategoryDescription\"\n placeholder=\"Optional description\"\n rows=\"3\"></textarea>\n </div>\n </div>\n <div class=\"dialog-footer\">\n <button\n class=\"btn-primary\"\n (click)=\"ConfirmCreateCategory()\"\n [disabled]=\"!NewCategoryName.trim()\">\n <i class=\"fa-solid fa-plus\"></i>\n Create\n </button>\n <button class=\"btn-secondary\" (click)=\"CloseCreateCategoryDialog()\">Cancel</button>\n </div>\n </div>\n </div>\n }\n\n <!-- Delete Category Confirmation Dialog -->\n @if (ShowDeleteCategoryConfirm) {\n <div class=\"delete-category-dialog-overlay\" (click)=\"CloseDeleteCategoryConfirm()\">\n <div class=\"delete-category-dialog\" (click)=\"$event.stopPropagation()\">\n <div class=\"dialog-header danger\">\n <h3>\n <i class=\"fa-solid fa-exclamation-triangle\"></i>\n Delete Category\n </h3>\n <button class=\"close-btn\" (click)=\"CloseDeleteCategoryConfirm()\">\n <i class=\"fa-solid fa-times\"></i>\n </button>\n </div>\n @if (CategoryPendingDelete) {\n <div class=\"dialog-content\">\n <div class=\"warning-message\">\n <p>\n You are about to delete the category <strong>\"{{ CategoryPendingDelete.Name }}\"</strong>.\n </p>\n @if (GetCategoryContentCount(CategoryPendingDelete); as counts) {\n @if (counts.dashboards > 0 || counts.categories > 0) {\n <p class=\"content-warning\">\n <i class=\"fa-solid fa-warning\"></i>\n This category contains:\n </p>\n }\n @if (counts.dashboards > 0 || counts.categories > 0) {\n <ul class=\"content-list\">\n @if (counts.dashboards > 0) {\n <li>\n <i class=\"fa-solid fa-chart-line\"></i>\n {{ counts.dashboards }} dashboard{{ counts.dashboards !== 1 ? 's' : '' }}\n </li>\n }\n @if (counts.categories > 0) {\n <li>\n <i class=\"fa-solid fa-folder\"></i>\n {{ counts.categories }} sub-categor{{ counts.categories !== 1 ? 'ies' : 'y' }}\n </li>\n }\n </ul>\n }\n }\n </div>\n <div class=\"confirmation-checkbox\">\n <label class=\"checkbox-label\">\n <input\n type=\"checkbox\"\n [(ngModel)]=\"DeleteCategoryIncludeContents\">\n <span class=\"checkbox-text\">\n I understand this will permanently delete this category and all its contents. This action cannot be undone.\n </span>\n </label>\n </div>\n </div>\n }\n <div class=\"dialog-footer\">\n <button\n class=\"btn-danger\"\n (click)=\"ConfirmDeleteCategory()\"\n [disabled]=\"!DeleteCategoryIncludeContents\">\n <i class=\"fa-solid fa-trash\"></i>\n Delete Category\n </button>\n <button class=\"btn-secondary\" (click)=\"CloseDeleteCategoryConfirm()\">Cancel</button>\n </div>\n </div>\n </div>\n }\n</div>\n"]}
|
|
1
|
+
{"version":3,"file":"dashboard-browser.component.js","sourceRoot":"","sources":["../../../src/lib/dashboard-browser/dashboard-browser.component.ts","../../../src/lib/dashboard-browser/dashboard-browser.component.html"],"names":[],"mappings":"AAAA,OAAO,EACH,SAAS,EACT,KAAK,EACL,MAAM,EACN,YAAY,EAIZ,uBAAuB,EAC1B,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAE/B,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;;;;;;;;IC+B1C,kCAGqC;IADnC,6MAAS,2BAAoB,KAAC;IAE9B,wBAAwC;IACxC,wBACF;IAAA,iBAAS;;;;IAKP,AADF,+BAA+B,eACA;IAAA,YAA4B;IAAA,iBAAO;IAChE,kCAAoE;IAAzC,6MAAS,kBAAW,KAAC;IAC9C,wBAAwC;IAC1C,iBAAS;IACT,kCAA8G;IAAnF,6MAAS,uBAAgB,KAAC;IACnD,wBAAuC;IACzC,iBAAS;IACT,kCAA0H;IAAxF,6MAAS,yBAAkB,KAAC;IAC5D,wBAAiC;IACnC,iBAAS;IACT,kCAAqF;IAA1D,6MAAS,0BAAmB,KAAC;IACtD,yBAAiC;IAErC,AADE,iBAAS,EACL;;;IAbyB,eAA4B;IAA5B,4DAA4B;IAIoB,eAAgC;IAAhC,qDAAgC;IAGtB,eAAkC;IAAlC,uDAAkC;;;IAnB7H,8GAAyD;IAUzD,4GAAuB;;;IAVvB,0FAQC;IAED,cAgBC;IAhBD,iDAgBC;;;;IAeK,AADF,+BAA2B,iBACmC;IAA9B,6MAAS,0BAAmB,KAAC;IACzD,wBAAsC;IACtC,2BACF;IAAA,iBAAS;IACT,kCAAmE;IAArC,6MAAS,iCAA0B,KAAC;IAChE,wBAAuC;IACvC,0BACF;IACF,AADE,iBAAS,EACL;;;;IAjBR,AADF,+BAA0B,iBAG8B;IAApD,8KAA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A,AADA,AADA,AADA,2CAAyB,6CACe,2BAClB,wBACH,wFACwD;YAS7C,eAA0C;YAA1C,uEAA0C;YAMpE,eAAqC;YAArC,kDAAqC;YAOrC,eAAoC;YAApC,iDAAoC;YAQxC,eA6BC;YA7BD,gDA6BC;YAGD,cAsBC;YAtBD,gDAsBC;YAKL,cAEC;YAFD,2CAEC;YAQK,eAAwB;YAAxB,8CAAwB;YAG1B,cAMC;YAND,0CAMC;YAGH,cAOC;YAPD,0CAOC;YAIH,cAIC;YAJD,yCAIC;YAGD,cA4GC;YA5GD,qIA4GC;YAGD,cA0GC;YA1GD,oIA0GC;YAGD,cA8FC;YA9FD,6HA8FC;YAGD,cA0BC;YA1BD,uEA0BC;YAMC,cAA2E;YACvE,AADJ,uBAAA,wFAA2E,CAAA,kCAF9C,+RAKgG;YAQ/H,cAiCC;YAjCD,8CAiCC;YAGD,cA2CC;YA3CD,wDA2CC;YAGD,cAmEC;YAnED,yDAmEC;;;iFDvhBU,yBAAyB;cAPrC,SAAS;6BACI,KAAK,YACL,sBAAsB,mBAGf,uBAAuB,CAAC,MAAM;;kBAU9C,KAAK;;kBAYL,KAAK;;kBAcL,KAAK;;kBAcL,KAAK;;kBAYL,KAAK;;kBAGL,KAAK;;kBAGL,KAAK;;kBAGL,KAAK;;kBAML,KAAK;;kBAGL,KAAK;;kBAQL,KAAK;;kBAiBL,KAAK;;kBAcL,MAAM;;kBAGN,MAAM;;kBAGN,MAAM;;kBAGN,MAAM;;kBAGN,MAAM;;kBAGN,MAAM;;kBAGN,MAAM;;kBAGN,MAAM;;kBAGN,MAAM;;kBAGN,MAAM;;kFAhJE,yBAAyB","sourcesContent":["import {\n Component,\n Input,\n Output,\n EventEmitter,\n OnInit,\n OnDestroy,\n ChangeDetectorRef,\n ChangeDetectionStrategy\n} from '@angular/core';\nimport { Subject } from 'rxjs';\nimport { MJDashboardEntity, MJDashboardCategoryEntity, DashboardUserPermissions } from '@memberjunction/core-entities';\nimport { UUIDsEqual } from '@memberjunction/global';\n\n// ========================================\n// Event Types\n// ========================================\n\n/**\n * View mode for the dashboard browser\n */\nexport type DashboardBrowserViewMode = 'cards' | 'list';\n\n/**\n * Event emitted when a dashboard is selected for viewing\n */\nexport interface DashboardOpenEvent {\n Dashboard: MJDashboardEntity;\n OpenInNewTab: boolean;\n}\n\n/**\n * Event emitted when a dashboard is selected for editing\n */\nexport interface DashboardEditEvent {\n Dashboard: MJDashboardEntity;\n}\n\n/**\n * Event emitted when dashboards are requested for deletion\n */\nexport interface DashboardDeleteEvent {\n Dashboards: MJDashboardEntity[];\n}\n\n/**\n * Event emitted when dashboards are requested to be moved to a folder\n */\nexport interface DashboardMoveEvent {\n Dashboards: MJDashboardEntity[];\n TargetCategoryId: string | null;\n}\n\n/**\n * Event emitted when the category filter changes\n */\nexport interface CategoryChangeEvent {\n CategoryId: string | null;\n Category: MJDashboardCategoryEntity | null;\n}\n\n/**\n * Event emitted when view mode changes\n */\nexport interface ViewModeChangeEvent {\n Mode: DashboardBrowserViewMode;\n}\n\n/**\n * Event emitted when a new dashboard should be created\n */\nexport interface DashboardCreateEvent {\n CategoryId: string | null;\n}\n\n/**\n * Event emitted when a new category should be created\n */\nexport interface CategoryCreateEvent {\n ParentCategoryId: string | null;\n Name: string;\n Description: string | null;\n}\n\n/**\n * Event emitted when a category should be deleted\n */\nexport interface CategoryDeleteEvent {\n Category: MJDashboardCategoryEntity;\n IncludeContents: boolean;\n}\n\n/**\n * Event emitted when view preference should be persisted\n */\nexport interface ViewPreferenceChangeEvent {\n ViewMode: DashboardBrowserViewMode;\n}\n\n/**\n * Generic dashboard browser component.\n * Displays dashboards in card or list view with multi-select, filtering, and bulk actions.\n *\n * This component is GENERIC and has no routing dependencies.\n * All navigation and persistence events are bubbled up for the parent to handle.\n */\n@Component({\n standalone: false,\n selector: 'mj-dashboard-browser',\n templateUrl: './dashboard-browser.component.html',\n styleUrls: ['./dashboard-browser.component.css'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class DashboardBrowserComponent implements OnInit, OnDestroy {\n // ========================================\n // Inputs\n // ========================================\n\n /** All dashboards to display */\n private _dashboards: MJDashboardEntity[] = [];\n\n @Input()\n set Dashboards(value: MJDashboardEntity[]) {\n this._dashboards = value || [];\n this.applyFilters();\n }\n get Dashboards(): MJDashboardEntity[] {\n return this._dashboards;\n }\n\n /** All categories for filtering */\n private _categories: MJDashboardCategoryEntity[] = [];\n\n @Input()\n set Categories(value: MJDashboardCategoryEntity[]) {\n this._categories = value || [];\n // Update child categories when categories change (async loading)\n this.updateChildCategories();\n this.cdr.markForCheck();\n }\n get Categories(): MJDashboardCategoryEntity[] {\n return this._categories;\n }\n\n /** Currently selected category ID (for deep linking) */\n private _selectedCategoryId: string | null = null;\n\n @Input()\n set SelectedCategoryId(value: string | null) {\n if (value !== this._selectedCategoryId) {\n this._selectedCategoryId = value;\n this.applyFilters();\n }\n }\n get SelectedCategoryId(): string | null {\n return this._selectedCategoryId;\n }\n\n /** Initial view mode */\n private _viewMode: DashboardBrowserViewMode = 'cards';\n\n @Input()\n set ViewMode(value: DashboardBrowserViewMode) {\n if (value !== this._viewMode) {\n this._viewMode = value;\n this.cdr.markForCheck();\n }\n }\n get ViewMode(): DashboardBrowserViewMode {\n return this._viewMode;\n }\n\n /** Whether the browser is in loading state */\n @Input() IsLoading = false;\n\n /** Whether to show the create button */\n @Input() ShowCreateButton = true;\n\n /** Whether to allow multi-select (enables selection mode toggle) */\n @Input() AllowMultiSelect = true;\n\n /** Whether to allow drag and drop */\n @Input() AllowDragDrop = true;\n\n /** Whether currently in selection mode (checkboxes visible) */\n public IsSelectionMode = false;\n\n /** Title to display in the header */\n @Input() Title = 'Dashboards';\n\n /** Icon class for the header */\n @Input() IconClass = 'fa-solid fa-gauge-high';\n\n /**\n * Map of dashboard ID to user permissions.\n * Used to show shared indicators and control edit/delete button visibility.\n */\n private _dashboardPermissions: Map<string, DashboardUserPermissions> = new Map();\n\n @Input()\n set DashboardPermissions(value: Map<string, DashboardUserPermissions> | null) {\n this._dashboardPermissions = value || new Map();\n this.cdr.markForCheck();\n }\n get DashboardPermissions(): Map<string, DashboardUserPermissions> {\n return this._dashboardPermissions;\n }\n\n /**\n * Map of dashboard ID to effective category ID for display.\n * Used to show shared dashboards in the user's chosen category instead of owner's category.\n * If a dashboard ID is not in this map, its actual CategoryID is used.\n * Use empty string '' to indicate root/uncategorized.\n */\n private _effectiveCategoryMap: Map<string, string | null> = new Map();\n\n @Input()\n set EffectiveCategoryMap(value: Map<string, string | null> | null) {\n this._effectiveCategoryMap = value || new Map();\n this.applyFilters();\n }\n get EffectiveCategoryMap(): Map<string, string | null> {\n return this._effectiveCategoryMap;\n }\n\n // ========================================\n // Outputs\n // ========================================\n\n /** Emitted when a dashboard is opened for viewing */\n @Output() DashboardOpen = new EventEmitter<DashboardOpenEvent>();\n\n /** Emitted when a dashboard is opened for editing */\n @Output() DashboardEdit = new EventEmitter<DashboardEditEvent>();\n\n /** Emitted when dashboards are requested for deletion */\n @Output() DashboardDelete = new EventEmitter<DashboardDeleteEvent>();\n\n /** Emitted when dashboards are requested to move to a folder */\n @Output() DashboardMove = new EventEmitter<DashboardMoveEvent>();\n\n /** Emitted when a new dashboard should be created */\n @Output() DashboardCreate = new EventEmitter<DashboardCreateEvent>();\n\n /** Emitted when a new category should be created */\n @Output() CategoryCreate = new EventEmitter<CategoryCreateEvent>();\n\n /** Emitted when a category should be deleted */\n @Output() CategoryDelete = new EventEmitter<CategoryDeleteEvent>();\n\n /** Emitted when the category filter changes */\n @Output() CategoryChange = new EventEmitter<CategoryChangeEvent>();\n\n /** Emitted when view mode changes (for persistence) */\n @Output() ViewModeChange = new EventEmitter<ViewModeChangeEvent>();\n\n /** Emitted when view preference should be persisted */\n @Output() ViewPreferenceChange = new EventEmitter<ViewPreferenceChangeEvent>();\n\n // ========================================\n // State\n // ========================================\n\n /** Filtered dashboards based on search and category */\n public FilteredDashboards: MJDashboardEntity[] = [];\n\n /** Current search text */\n public SearchText = '';\n\n /** Set of selected dashboard IDs */\n public SelectedIds = new Set<string>();\n\n /** Last clicked dashboard ID (for shift-click range selection) */\n private lastClickedId: string | null = null;\n\n /** Whether delete confirmation dialog is visible */\n public ShowDeleteConfirm = false;\n\n /** Whether move-to-folder dialog is visible */\n public ShowMoveDialog = false;\n\n /** Dashboards pending deletion (for confirm dialog) */\n public DashboardsPendingDelete: MJDashboardEntity[] = [];\n\n /** Currently dragging dashboard ID */\n public DraggingId: string | null = null;\n\n /** Drop target category ID */\n public DropTargetCategoryId: string | null = null;\n\n /** Whether the \"New\" dropdown menu is open */\n public ShowNewMenu = false;\n\n /** Whether the create category dialog is visible */\n public ShowCreateCategoryDialog = false;\n\n /** New category form values */\n public NewCategoryName = '';\n public NewCategoryDescription = '';\n\n /** Child categories of the current folder */\n public ChildCategories: MJDashboardCategoryEntity[] = [];\n\n /** Filtered child categories (based on search) */\n public FilteredChildCategories: MJDashboardCategoryEntity[] = [];\n\n /** Breadcrumb trail from root to current category */\n public Breadcrumbs: MJDashboardCategoryEntity[] = [];\n\n /** Whether the delete category dialog is visible */\n public ShowDeleteCategoryConfirm = false;\n\n /** Category pending deletion */\n public CategoryPendingDelete: MJDashboardCategoryEntity | null = null;\n\n /** Whether to include contents when deleting category */\n public DeleteCategoryIncludeContents = false;\n\n /** Drop target category ID for drag-over highlighting on category cards */\n public DragOverChildCategoryId: string | null = null;\n\n private readonly destroy$ = new Subject<void>();\n\n // ========================================\n // Constructor\n // ========================================\n\n constructor(private cdr: ChangeDetectorRef) {}\n\n // ========================================\n // Lifecycle\n // ========================================\n\n ngOnInit(): void {\n this.applyFilters();\n }\n\n ngOnDestroy(): void {\n this.destroy$.next();\n this.destroy$.complete();\n }\n\n // ========================================\n // Public Methods - View Mode\n // ========================================\n\n /**\n * Toggle between card and list view\n */\n public ToggleViewMode(): void {\n this.ViewMode = this.ViewMode === 'cards' ? 'list' : 'cards';\n this.ViewModeChange.emit({ Mode: this.ViewMode });\n this.ViewPreferenceChange.emit({ ViewMode: this.ViewMode });\n }\n\n /**\n * Set view mode explicitly\n */\n public SetViewMode(mode: DashboardBrowserViewMode): void {\n if (mode !== this.ViewMode) {\n this.ViewMode = mode;\n this.ViewModeChange.emit({ Mode: mode });\n this.ViewPreferenceChange.emit({ ViewMode: mode });\n }\n }\n\n // ========================================\n // Public Methods - Filtering\n // ========================================\n\n /**\n * Handle search text change\n */\n public OnSearchChange(): void {\n this.applyFilters();\n }\n\n /**\n * Clear search text\n */\n public ClearSearch(): void {\n this.SearchText = '';\n this.applyFilters();\n }\n\n /**\n * Handle category filter change\n */\n public OnCategoryChange(categoryId: string | null): void {\n this._selectedCategoryId = categoryId;\n const category = categoryId\n ? this.Categories.find(c => UUIDsEqual(c.ID, categoryId)) || null\n : null;\n this.CategoryChange.emit({ CategoryId: categoryId, Category: category });\n this.applyFilters();\n }\n\n /**\n * Clear all filters\n */\n public ClearFilters(): void {\n this.SearchText = '';\n this._selectedCategoryId = null;\n this.CategoryChange.emit({ CategoryId: null, Category: null });\n this.applyFilters();\n }\n\n /**\n * Navigate into a category folder\n */\n public NavigateToCategory(categoryId: string | null): void {\n this._selectedCategoryId = categoryId;\n const category = categoryId\n ? this.Categories.find(c => UUIDsEqual(c.ID, categoryId)) || null\n : null;\n this.CategoryChange.emit({ CategoryId: categoryId, Category: category });\n this.applyFilters();\n }\n\n /**\n * Navigate up to parent category\n */\n public NavigateUp(): void {\n if (!this._selectedCategoryId) return;\n\n const currentCategory = this.Categories.find(c => UUIDsEqual(c.ID, this._selectedCategoryId));\n const parentId = currentCategory?.ParentID || null;\n this.NavigateToCategory(parentId);\n }\n\n /**\n * Check if we're at the root level\n */\n public get IsAtRoot(): boolean {\n return !this._selectedCategoryId;\n }\n\n /**\n * Get the current category (for display)\n */\n public get CurrentCategory(): MJDashboardCategoryEntity | null {\n if (!this._selectedCategoryId) return null;\n return this.Categories.find(c => UUIDsEqual(c.ID, this._selectedCategoryId)) || null;\n }\n\n // ========================================\n // Public Methods - Selection\n // ========================================\n\n /**\n * Handle dashboard click with multi-select support\n */\n public OnDashboardClick(dashboard: MJDashboardEntity, event: MouseEvent): void {\n if (!this.AllowMultiSelect) {\n // Single select mode - just open the dashboard\n this.DashboardOpen.emit({ Dashboard: dashboard, OpenInNewTab: event.ctrlKey || event.metaKey });\n return;\n }\n\n if (event.shiftKey && this.lastClickedId) {\n // Shift-click: range selection\n this.selectRange(this.lastClickedId, dashboard.ID);\n } else if (event.ctrlKey || event.metaKey) {\n // Ctrl/Cmd-click: toggle selection\n this.ToggleSelection(dashboard.ID);\n } else {\n // Normal click: if not selected, open; if selected with others, open\n if (this.SelectedIds.size <= 1) {\n this.SelectedIds.clear();\n this.DashboardOpen.emit({ Dashboard: dashboard, OpenInNewTab: false });\n } else if (this.SelectedIds.has(dashboard.ID)) {\n // Clicking on one of multiple selected items - open just this one\n this.SelectedIds.clear();\n this.DashboardOpen.emit({ Dashboard: dashboard, OpenInNewTab: false });\n } else {\n // Clicking on unselected item - clear selection and open\n this.SelectedIds.clear();\n this.DashboardOpen.emit({ Dashboard: dashboard, OpenInNewTab: false });\n }\n }\n\n this.lastClickedId = dashboard.ID;\n this.cdr.markForCheck();\n }\n\n /**\n * Handle double-click to edit\n */\n public OnDashboardDoubleClick(dashboard: MJDashboardEntity, event: MouseEvent): void {\n event.preventDefault();\n event.stopPropagation();\n this.DashboardEdit.emit({ Dashboard: dashboard });\n }\n\n /**\n * Check if a dashboard is selected\n */\n public IsSelected(dashboardId: string): boolean {\n return this.SelectedIds.has(dashboardId);\n }\n\n /**\n * Select all visible dashboards\n */\n public SelectAll(): void {\n this.SelectedIds.clear();\n for (const dashboard of this.FilteredDashboards) {\n this.SelectedIds.add(dashboard.ID);\n }\n this.cdr.markForCheck();\n }\n\n /**\n * Clear all selections\n */\n public ClearSelection(): void {\n this.SelectedIds.clear();\n this.lastClickedId = null;\n this.cdr.markForCheck();\n }\n\n /**\n * Enter selection mode (show checkboxes)\n */\n public EnterSelectionMode(): void {\n if (!this.AllowMultiSelect) return;\n this.IsSelectionMode = true;\n this.cdr.markForCheck();\n }\n\n /**\n * Exit selection mode (hide checkboxes and clear selections)\n */\n public ExitSelectionMode(): void {\n this.IsSelectionMode = false;\n this.SelectedIds.clear();\n this.lastClickedId = null;\n this.cdr.markForCheck();\n }\n\n /**\n * Toggle selection mode\n */\n public ToggleSelectionMode(): void {\n if (this.IsSelectionMode) {\n this.ExitSelectionMode();\n } else {\n this.EnterSelectionMode();\n }\n }\n\n /**\n * Get count of selected dashboards\n */\n public get SelectedCount(): number {\n return this.SelectedIds.size;\n }\n\n /**\n * Get selected dashboards\n */\n public GetSelectedDashboards(): MJDashboardEntity[] {\n return this.Dashboards.filter(d => this.SelectedIds.has(d.ID));\n }\n\n // ========================================\n // Public Methods - Actions\n // ========================================\n\n /**\n * Toggle the \"New\" dropdown menu\n */\n public ToggleNewMenu(): void {\n this.ShowNewMenu = !this.ShowNewMenu;\n }\n\n /**\n * Close the \"New\" dropdown menu\n */\n public CloseNewMenu(): void {\n this.ShowNewMenu = false;\n }\n\n /**\n * Request to create a new dashboard\n */\n public OnCreateDashboard(): void {\n this.CloseNewMenu();\n this.DashboardCreate.emit({ CategoryId: this.SelectedCategoryId });\n }\n\n /**\n * Open the create category dialog\n */\n public OpenCreateCategoryDialog(): void {\n this.CloseNewMenu();\n this.NewCategoryName = '';\n this.NewCategoryDescription = '';\n this.ShowCreateCategoryDialog = true;\n this.cdr.markForCheck();\n }\n\n /**\n * Close the create category dialog\n */\n public CloseCreateCategoryDialog(): void {\n this.ShowCreateCategoryDialog = false;\n this.NewCategoryName = '';\n this.NewCategoryDescription = '';\n this.cdr.markForCheck();\n }\n\n /**\n * Confirm category creation\n */\n public ConfirmCreateCategory(): void {\n if (!this.NewCategoryName.trim()) return;\n\n this.CategoryCreate.emit({\n ParentCategoryId: this.SelectedCategoryId,\n Name: this.NewCategoryName.trim(),\n Description: this.NewCategoryDescription.trim() || null\n });\n this.CloseCreateCategoryDialog();\n }\n\n /**\n * Open edit dialog for single dashboard via context menu\n */\n public OnEditDashboard(dashboard: MJDashboardEntity, event: Event): void {\n event.stopPropagation();\n this.DashboardEdit.emit({ Dashboard: dashboard });\n }\n\n /**\n * Request to delete a single dashboard\n */\n public OnDeleteDashboard(dashboard: MJDashboardEntity, event: Event): void {\n event.stopPropagation();\n this.DashboardsPendingDelete = [dashboard];\n this.ShowDeleteConfirm = true;\n this.cdr.markForCheck();\n }\n\n /**\n * Request to delete selected dashboards.\n * Only includes dashboards the user has permission to delete.\n */\n public OnDeleteSelected(): void {\n if (this.SelectedIds.size === 0) return;\n\n // Only include dashboards the user can delete\n this.DashboardsPendingDelete = this.GetDeletableSelectedDashboards();\n\n if (this.DashboardsPendingDelete.length === 0) {\n // No deletable dashboards selected\n return;\n }\n\n this.ShowDeleteConfirm = true;\n this.cdr.markForCheck();\n }\n\n /**\n * Confirm deletion\n */\n public ConfirmDelete(): void {\n if (this.DashboardsPendingDelete.length > 0) {\n this.DashboardDelete.emit({ Dashboards: this.DashboardsPendingDelete });\n // Clear selection for deleted items\n for (const d of this.DashboardsPendingDelete) {\n this.SelectedIds.delete(d.ID);\n }\n }\n this.CloseDeleteConfirm();\n // Exit selection mode after bulk operation\n this.ExitSelectionMode();\n }\n\n /**\n * Cancel deletion\n */\n public CloseDeleteConfirm(): void {\n this.ShowDeleteConfirm = false;\n this.DashboardsPendingDelete = [];\n this.cdr.markForCheck();\n }\n\n /**\n * Open move-to-folder dialog for selected dashboards\n */\n public OnMoveSelected(): void {\n if (this.SelectedIds.size === 0) return;\n this.ShowMoveDialog = true;\n this.cdr.markForCheck();\n }\n\n /**\n * Confirm move to folder\n */\n public ConfirmMove(targetCategoryId: string | null): void {\n const dashboards = this.GetSelectedDashboards();\n if (dashboards.length > 0) {\n this.DashboardMove.emit({\n Dashboards: dashboards,\n TargetCategoryId: targetCategoryId\n });\n }\n this.CloseMoveDialog();\n // Exit selection mode after bulk operation\n this.ExitSelectionMode();\n }\n\n /**\n * Cancel move\n */\n public CloseMoveDialog(): void {\n this.ShowMoveDialog = false;\n this.cdr.markForCheck();\n }\n\n // ========================================\n // Public Methods - Category Actions\n // ========================================\n\n /**\n * Request to delete a category\n */\n public OnDeleteCategory(category: MJDashboardCategoryEntity, event: Event): void {\n event.stopPropagation();\n this.CategoryPendingDelete = category;\n this.DeleteCategoryIncludeContents = false;\n this.ShowDeleteCategoryConfirm = true;\n this.cdr.markForCheck();\n }\n\n /**\n * Confirm category deletion\n */\n public ConfirmDeleteCategory(): void {\n if (this.CategoryPendingDelete) {\n this.CategoryDelete.emit({\n Category: this.CategoryPendingDelete,\n IncludeContents: this.DeleteCategoryIncludeContents\n });\n }\n this.CloseDeleteCategoryConfirm();\n }\n\n /**\n * Cancel category deletion\n */\n public CloseDeleteCategoryConfirm(): void {\n this.ShowDeleteCategoryConfirm = false;\n this.CategoryPendingDelete = null;\n this.DeleteCategoryIncludeContents = false;\n this.cdr.markForCheck();\n }\n\n /**\n * Get count of dashboards and sub-categories in a category\n */\n public GetCategoryContentCount(category: MJDashboardCategoryEntity): { dashboards: number; categories: number } {\n const dashboards = this.Dashboards.filter(d => UUIDsEqual(d.CategoryID, category.ID)).length;\n const categories = this.Categories.filter(c => UUIDsEqual(c.ParentID, category.ID)).length;\n return { dashboards, categories };\n }\n\n // ========================================\n // Public Methods - Drag and Drop\n // ========================================\n\n /**\n * Handle drag start\n */\n public OnDragStart(dashboard: MJDashboardEntity, event: DragEvent): void {\n if (!this.AllowDragDrop) return;\n\n this.DraggingId = dashboard.ID;\n\n // If dragging an unselected item, select only it\n if (!this.SelectedIds.has(dashboard.ID)) {\n this.SelectedIds.clear();\n this.SelectedIds.add(dashboard.ID);\n }\n\n // Set drag data\n const dragData = {\n type: 'dashboards',\n ids: Array.from(this.SelectedIds)\n };\n event.dataTransfer?.setData('application/json', JSON.stringify(dragData));\n event.dataTransfer!.effectAllowed = 'move';\n\n // Create custom drag image for list view (smaller than full row)\n if (this._viewMode === 'list' && event.dataTransfer) {\n const dragPreview = this.createDragPreview(dashboard);\n document.body.appendChild(dragPreview);\n event.dataTransfer.setDragImage(dragPreview, 12, 12);\n // Clean up the preview element after drag starts\n setTimeout(() => dragPreview.remove(), 0);\n }\n\n this.cdr.markForCheck();\n }\n\n /**\n * Create a compact drag preview element\n */\n private createDragPreview(dashboard: MJDashboardEntity): HTMLElement {\n const count = this.SelectedIds.size;\n const preview = document.createElement('div');\n preview.style.cssText = `\n position: absolute;\n left: -9999px;\n top: -9999px;\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 8px 12px;\n background: #5c6bc0;\n color: white;\n border-radius: 6px;\n font-size: 13px;\n font-weight: 500;\n box-shadow: 0 4px 12px rgba(0,0,0,0.3);\n white-space: nowrap;\n `;\n\n const icon = document.createElement('i');\n icon.className = 'fa-solid fa-chart-line';\n preview.appendChild(icon);\n\n const text = document.createElement('span');\n text.textContent = count > 1 ? `${count} dashboards` : dashboard.Name;\n preview.appendChild(text);\n\n return preview;\n }\n\n /**\n * Handle drag end\n */\n public OnDragEnd(): void {\n this.DraggingId = null;\n this.DropTargetCategoryId = null;\n this.cdr.markForCheck();\n }\n\n /**\n * Handle drag over category\n */\n public OnDragOverCategory(categoryId: string | null, event: DragEvent): void {\n if (!this.AllowDragDrop) return;\n event.preventDefault();\n event.dataTransfer!.dropEffect = 'move';\n this.DropTargetCategoryId = categoryId;\n this.cdr.markForCheck();\n }\n\n /**\n * Handle drag leave category\n */\n public OnDragLeaveCategory(): void {\n this.DropTargetCategoryId = null;\n this.cdr.markForCheck();\n }\n\n /**\n * Handle drop on category\n */\n public OnDropOnCategory(categoryId: string | null, event: DragEvent): void {\n if (!this.AllowDragDrop) return;\n event.preventDefault();\n\n const data = event.dataTransfer?.getData('application/json');\n if (data) {\n try {\n const dragData = JSON.parse(data);\n if (dragData.type === 'dashboards' && dragData.ids?.length > 0) {\n const dashboards = this.Dashboards.filter(d => dragData.ids.some((id: string) => UUIDsEqual(id, d.ID)));\n if (dashboards.length > 0) {\n this.DashboardMove.emit({\n Dashboards: dashboards,\n TargetCategoryId: categoryId\n });\n }\n }\n } catch {\n // Invalid drag data\n }\n }\n\n this.DraggingId = null;\n this.DropTargetCategoryId = null;\n this.cdr.markForCheck();\n }\n\n // ========================================\n // Public Methods - Helpers\n // ========================================\n\n /**\n * Get category name for a dashboard\n */\n public GetCategoryName(categoryId: string | null): string {\n if (!categoryId) return 'Uncategorized';\n const category = this.Categories.find(c => UUIDsEqual(c.ID, categoryId));\n return category?.Name || 'Unknown';\n }\n\n /**\n * Format date for display\n */\n public FormatDate(date: Date): string {\n if (!date) return '';\n const d = new Date(date);\n const now = new Date();\n const diffMs = now.getTime() - d.getTime();\n const diffDays = Math.floor(diffMs / (1000 * 60 * 60 * 24));\n\n if (diffDays === 0) {\n return 'Today';\n } else if (diffDays === 1) {\n return 'Yesterday';\n } else if (diffDays < 7) {\n return `${diffDays} days ago`;\n } else {\n return d.toLocaleDateString();\n }\n }\n\n /**\n * Track by function for ngFor\n */\n public TrackByDashboard(_index: number, dashboard: MJDashboardEntity): string {\n return dashboard.ID;\n }\n\n /**\n * Track by function for categories\n */\n public TrackByCategory(_index: number, category: MJDashboardCategoryEntity): string {\n return category.ID;\n }\n\n // ========================================\n // Public Methods - Category Helpers\n // ========================================\n\n /**\n * Gets the effective category ID for a dashboard for display purposes.\n * For shared dashboards, this may differ from the actual CategoryID\n * based on the user's DashboardCategoryLink.\n */\n public GetEffectiveCategoryId(dashboard: MJDashboardEntity): string | null {\n // If we have an effective category mapping, use it\n if (this._effectiveCategoryMap.has(dashboard.ID)) {\n return this._effectiveCategoryMap.get(dashboard.ID) ?? null;\n }\n // Otherwise use the dashboard's actual category\n return dashboard.CategoryID || null;\n }\n\n // ========================================\n // Public Methods - Permission Checks\n // ========================================\n\n /**\n * Check if a dashboard is shared with the current user (not owned)\n */\n public IsShared(dashboardId: string): boolean {\n const perms = this._dashboardPermissions.get(dashboardId);\n // If permissions exist and user is not owner but can read, it's shared\n return perms ? !perms.IsOwner && perms.CanRead : false;\n }\n\n /**\n * Check if user can edit a dashboard\n */\n public CanEdit(dashboardId: string): boolean {\n const perms = this._dashboardPermissions.get(dashboardId);\n // Default to true if no permissions provided (backwards compatibility)\n return perms ? perms.CanEdit : true;\n }\n\n /**\n * Check if user can delete a dashboard\n */\n public CanDelete(dashboardId: string): boolean {\n const perms = this._dashboardPermissions.get(dashboardId);\n // Default to true if no permissions provided (backwards compatibility)\n return perms ? perms.CanDelete : true;\n }\n\n /**\n * Check if any of the currently selected dashboards can be deleted.\n * Returns true only if at least one selected dashboard can be deleted.\n * Used to enable/disable the bulk delete button in selection mode.\n */\n public get CanDeleteAnySelected(): boolean {\n if (this.SelectedIds.size === 0) return false;\n\n for (const id of this.SelectedIds) {\n if (this.CanDelete(id)) {\n return true;\n }\n }\n return false;\n }\n\n /**\n * Gets the list of selected dashboards that can be deleted.\n * Filters out dashboards the user doesn't have permission to delete.\n */\n public GetDeletableSelectedDashboards(): MJDashboardEntity[] {\n return this.GetSelectedDashboards().filter(d => this.CanDelete(d.ID));\n }\n\n /**\n * Highlight matching search text in a string\n * Returns HTML with <mark> tags around matches\n */\n public HighlightMatch(text: string): string {\n if (!this.SearchText.trim() || !text) return text;\n\n const search = this.SearchText.trim();\n const regex = new RegExp(`(${this.escapeRegex(search)})`, 'gi');\n return text.replace(regex, '<mark>$1</mark>');\n }\n\n /**\n * Escape special regex characters\n */\n private escapeRegex(str: string): string {\n return str.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&');\n }\n\n // ========================================\n // Drag and Drop on Category Cards\n // ========================================\n\n /**\n * Handle drag over a category card\n */\n public OnDragOverChildCategory(categoryId: string, event: DragEvent): void {\n if (!this.AllowDragDrop || !this.DraggingId) return;\n event.preventDefault();\n event.stopPropagation();\n event.dataTransfer!.dropEffect = 'move';\n this.DragOverChildCategoryId = categoryId;\n this.cdr.markForCheck();\n }\n\n /**\n * Handle drag leave from a category card\n */\n public OnDragLeaveChildCategory(): void {\n this.DragOverChildCategoryId = null;\n this.cdr.markForCheck();\n }\n\n /**\n * Handle drop on a category card\n */\n public OnDropOnChildCategory(categoryId: string, event: DragEvent): void {\n if (!this.AllowDragDrop) return;\n event.preventDefault();\n event.stopPropagation();\n\n const data = event.dataTransfer?.getData('application/json');\n if (data) {\n try {\n const dragData = JSON.parse(data);\n if (dragData.type === 'dashboards' && dragData.ids?.length > 0) {\n const dashboards = this.Dashboards.filter(d => dragData.ids.some((id: string) => UUIDsEqual(id, d.ID)));\n if (dashboards.length > 0) {\n this.DashboardMove.emit({\n Dashboards: dashboards,\n TargetCategoryId: categoryId\n });\n // Exit selection mode after move\n this.ExitSelectionMode();\n }\n }\n } catch {\n // Invalid drag data\n }\n }\n\n this.DraggingId = null;\n this.DragOverChildCategoryId = null;\n this.DropTargetCategoryId = null;\n this.cdr.markForCheck();\n }\n\n /**\n * Handle drop from breadcrumb component\n */\n public OnBreadcrumbDrop(event: { TargetCategoryId: string | null; DashboardIds: string[] }): void {\n const dashboards = this.Dashboards.filter(d => event.DashboardIds.some(id => UUIDsEqual(id, d.ID)));\n if (dashboards.length > 0) {\n this.DashboardMove.emit({\n Dashboards: dashboards,\n TargetCategoryId: event.TargetCategoryId\n });\n // Exit selection mode after move\n this.ExitSelectionMode();\n }\n }\n\n // ========================================\n // Private Methods\n // ========================================\n\n private applyFilters(): void {\n let filtered = [...this._dashboards];\n\n // Filter out non-Config dashboards (Code and Dynamic Code types are not viewable/editable in browser)\n filtered = filtered.filter(d => d.Type === 'Config');\n\n // Filter by search text\n if (this.SearchText.trim()) {\n const search = this.SearchText.toLowerCase();\n filtered = filtered.filter(d =>\n d.Name.toLowerCase().includes(search) ||\n (d.Description || '').toLowerCase().includes(search)\n );\n }\n\n // Filter by current folder (category)\n // When at root (null), show only uncategorized dashboards\n // When in a category, show only dashboards directly in that category\n // Uses effective category (from EffectiveCategoryMap) for shared dashboards\n if (this._selectedCategoryId) {\n filtered = filtered.filter(d => this.GetEffectiveCategoryId(d) === this._selectedCategoryId);\n } else {\n // At root level, show only uncategorized dashboards (effective CategoryID is null or empty)\n filtered = filtered.filter(d => !this.GetEffectiveCategoryId(d));\n }\n\n this.FilteredDashboards = filtered;\n this.updateChildCategories();\n this.updateBreadcrumbs();\n this.cdr.markForCheck();\n }\n\n /**\n * Update the list of child categories for the current folder\n */\n private updateChildCategories(): void {\n // Find categories that are children of the current category\n // Handle both null and undefined ParentID for root-level categories\n if (this._selectedCategoryId) {\n this.ChildCategories = this.Categories.filter(c => UUIDsEqual(c.ParentID, this._selectedCategoryId));\n } else {\n // At root level - show categories with no parent (null or undefined)\n this.ChildCategories = this.Categories.filter(c => !c.ParentID);\n }\n\n // Apply search filter to categories if search text exists\n if (this.SearchText.trim()) {\n const search = this.SearchText.toLowerCase();\n this.FilteredChildCategories = this.ChildCategories.filter(c =>\n c.Name.toLowerCase().includes(search) ||\n (c.Description || '').toLowerCase().includes(search)\n );\n } else {\n this.FilteredChildCategories = [...this.ChildCategories];\n }\n }\n\n /**\n * Update breadcrumb trail from root to current category\n */\n private updateBreadcrumbs(): void {\n this.Breadcrumbs = [];\n\n if (!this._selectedCategoryId) return;\n\n // Build the path from current category to root\n const path: MJDashboardCategoryEntity[] = [];\n let currentId: string | null = this._selectedCategoryId;\n\n while (currentId) {\n const category = this.Categories.find(c => UUIDsEqual(c.ID, currentId));\n if (category) {\n path.unshift(category);\n currentId = category.ParentID;\n } else {\n break;\n }\n }\n\n this.Breadcrumbs = path;\n }\n\n /**\n * Toggle selection for a single dashboard\n */\n public ToggleSelection(dashboardId: string): void {\n if (this.SelectedIds.has(dashboardId)) {\n this.SelectedIds.delete(dashboardId);\n } else {\n this.SelectedIds.add(dashboardId);\n }\n this.cdr.markForCheck();\n }\n\n private selectRange(fromId: string, toId: string): void {\n const fromIndex = this.FilteredDashboards.findIndex(d => UUIDsEqual(d.ID, fromId));\n const toIndex = this.FilteredDashboards.findIndex(d => UUIDsEqual(d.ID, toId));\n\n if (fromIndex === -1 || toIndex === -1) return;\n\n const start = Math.min(fromIndex, toIndex);\n const end = Math.max(fromIndex, toIndex);\n\n for (let i = start; i <= end; i++) {\n this.SelectedIds.add(this.FilteredDashboards[i].ID);\n }\n }\n}\n","<!-- Dashboard Browser Component -->\n<div class=\"dashboard-browser\" [class.loading]=\"IsLoading\">\n <!-- Toolbar Row: Breadcrumb + Actions -->\n <div class=\"browser-toolbar\">\n <!-- Breadcrumb Navigation -->\n <mj-dashboard-breadcrumb\n [Categories]=\"Categories\"\n [CurrentCategoryId]=\"SelectedCategoryId\"\n [RootIcon]=\"IconClass\"\n [RootLabel]=\"Title\"\n [AllowDragDrop]=\"AllowDragDrop && (DraggingId !== null || IsSelectionMode)\"\n Size=\"large\"\n (Navigate)=\"NavigateToCategory($event.CategoryId)\"\n (DashboardDrop)=\"OnBreadcrumbDrop($event)\">\n </mj-dashboard-breadcrumb>\n\n <!-- Right-side Actions -->\n <div class=\"toolbar-actions\">\n <!-- Dashboard count -->\n <span class=\"dashboard-count\">{{ FilteredDashboards.length }} dashboards</span>\n\n <!-- View Toggle -->\n <div class=\"view-toggle\">\n <button\n class=\"toggle-btn\"\n [class.active]=\"ViewMode === 'cards'\"\n (click)=\"SetViewMode('cards')\"\n title=\"Card View\">\n <i class=\"fa-solid fa-grip\"></i>\n </button>\n <button\n class=\"toggle-btn\"\n [class.active]=\"ViewMode === 'list'\"\n (click)=\"SetViewMode('list')\"\n title=\"List View\">\n <i class=\"fa-solid fa-list\"></i>\n </button>\n </div>\n\n <!-- Selection Mode Toggle & Bulk Actions -->\n @if (AllowMultiSelect) {\n <!-- Enter Selection Mode Button (when not in selection mode) -->\n @if (!IsSelectionMode && FilteredDashboards.length > 0) {\n <button\n class=\"select-mode-btn\"\n (click)=\"EnterSelectionMode()\"\n title=\"Select multiple dashboards\">\n <i class=\"fa-solid fa-check-double\"></i>\n Select\n </button>\n }\n <!-- Selection Mode Toolbar (when in selection mode) -->\n @if (IsSelectionMode) {\n <div class=\"selection-toolbar\">\n <span class=\"selected-count\">{{ SelectedCount }} selected</span>\n <button class=\"action-btn\" (click)=\"SelectAll()\" title=\"Select all\">\n <i class=\"fa-solid fa-check-double\"></i>\n </button>\n <button class=\"action-btn\" (click)=\"OnMoveSelected()\" title=\"Move to folder\" [disabled]=\"SelectedCount === 0\">\n <i class=\"fa-solid fa-folder-open\"></i>\n </button>\n <button class=\"action-btn danger\" (click)=\"OnDeleteSelected()\" title=\"Delete selected\" [disabled]=\"!CanDeleteAnySelected\">\n <i class=\"fa-solid fa-trash\"></i>\n </button>\n <button class=\"action-btn\" (click)=\"ExitSelectionMode()\" title=\"Exit selection mode\">\n <i class=\"fa-solid fa-times\"></i>\n </button>\n </div>\n }\n }\n\n <!-- New Dropdown Button -->\n @if (ShowCreateButton) {\n <div class=\"new-dropdown\">\n <button\n class=\"btn-primary\"\n (click)=\"ToggleNewMenu(); $event.stopPropagation()\">\n <i class=\"fa-solid fa-plus\"></i>\n New\n <i class=\"fa-solid fa-caret-down dropdown-caret\"></i>\n </button>\n @if (ShowNewMenu) {\n <div class=\"dropdown-menu\">\n <button class=\"dropdown-item\" (click)=\"OnCreateDashboard()\">\n <i class=\"fa-solid fa-chart-line\"></i>\n Dashboard\n </button>\n <button class=\"dropdown-item\" (click)=\"OpenCreateCategoryDialog()\">\n <i class=\"fa-solid fa-folder-plus\"></i>\n Category\n </button>\n </div>\n }\n </div>\n }\n </div>\n </div>\n\n <!-- Click-away overlay for dropdown -->\n @if (ShowNewMenu) {\n <div class=\"dropdown-backdrop\" (click)=\"CloseNewMenu()\"></div>\n }\n\n <!-- Filters -->\n <div class=\"browser-filters\">\n <div class=\"search-box\">\n <i class=\"fa-solid fa-search\"></i>\n <input\n type=\"text\"\n [(ngModel)]=\"SearchText\"\n (input)=\"OnSearchChange()\"\n placeholder=\"Search dashboards...\">\n @if (SearchText) {\n <button\n class=\"clear-btn\"\n (click)=\"ClearSearch()\">\n <i class=\"fa-solid fa-times\"></i>\n </button>\n }\n </div>\n\n @if (SearchText) {\n <button\n class=\"clear-filters-btn\"\n (click)=\"ClearSearch()\">\n <i class=\"fa-solid fa-filter-circle-xmark\"></i>\n Clear Search\n </button>\n }\n </div>\n\n <!-- Loading Overlay -->\n @if (IsLoading) {\n <div class=\"loading-overlay\">\n <mj-loading text=\"Loading dashboards...\"></mj-loading>\n </div>\n }\n\n <!-- Card View -->\n @if (ViewMode === 'cards' && (FilteredChildCategories.length > 0 || FilteredDashboards.length > 0)) {\n <div class=\"dashboard-grid\">\n <!-- Category Folders -->\n @for (category of FilteredChildCategories; track TrackByCategory($index, category)) {\n <div\n class=\"dashboard-card category-card\"\n [class.drop-target]=\"DragOverChildCategoryId === category.ID\"\n (click)=\"NavigateToCategory(category.ID)\"\n (dblclick)=\"$event.stopPropagation()\"\n (dragover)=\"OnDragOverChildCategory(category.ID, $event)\"\n (dragleave)=\"OnDragLeaveChildCategory()\"\n (drop)=\"OnDropOnChildCategory(category.ID, $event)\">\n <div class=\"card-header\">\n <div class=\"card-icon folder-icon\">\n <i class=\"fa-solid fa-folder\"></i>\n </div>\n <div class=\"card-actions\">\n <button\n class=\"action-btn danger\"\n title=\"Delete category\"\n (click)=\"OnDeleteCategory(category, $event)\">\n <i class=\"fa-solid fa-trash\"></i>\n </button>\n </div>\n </div>\n <div class=\"card-content\">\n <h3 class=\"card-title\" [innerHTML]=\"HighlightMatch(category.Name)\"></h3>\n @if (category.Description) {\n <p class=\"card-description\" [innerHTML]=\"HighlightMatch(category.Description)\">\n </p>\n }\n <div class=\"card-meta\">\n <span class=\"meta-item\">\n <i class=\"fa-solid fa-folder-tree\"></i>\n Category\n </span>\n </div>\n </div>\n </div>\n }\n <!-- Dashboard Cards -->\n @for (dashboard of FilteredDashboards; track TrackByDashboard($index, dashboard)) {\n <div\n class=\"dashboard-card\"\n [class.selected]=\"IsSelected(dashboard.ID)\"\n [class.dragging]=\"DraggingId === dashboard.ID\"\n [draggable]=\"AllowDragDrop\"\n (click)=\"OnDashboardClick(dashboard, $event)\"\n (dblclick)=\"OnDashboardDoubleClick(dashboard, $event)\"\n (dragstart)=\"OnDragStart(dashboard, $event)\"\n (dragend)=\"OnDragEnd()\">\n <!-- Selection checkbox in top-right corner -->\n @if (IsSelectionMode) {\n <div\n class=\"card-select-area\"\n (click)=\"ToggleSelection(dashboard.ID); $event.stopPropagation()\">\n <input\n type=\"checkbox\"\n [checked]=\"IsSelected(dashboard.ID)\"\n (change)=\"$event.stopPropagation()\">\n </div>\n }\n <div class=\"card-header\">\n <div class=\"card-icon\">\n <i class=\"fa-solid fa-chart-line\"></i>\n </div>\n <div class=\"card-actions\">\n @if (CanEdit(dashboard.ID)) {\n <button\n class=\"action-btn\"\n title=\"Edit\"\n (click)=\"OnEditDashboard(dashboard, $event)\">\n <i class=\"fa-solid fa-edit\"></i>\n </button>\n }\n @if (CanDelete(dashboard.ID)) {\n <button\n class=\"action-btn danger\"\n title=\"Delete\"\n (click)=\"OnDeleteDashboard(dashboard, $event)\">\n <i class=\"fa-solid fa-trash\"></i>\n </button>\n }\n </div>\n </div>\n <div class=\"card-content\">\n <h3 class=\"card-title\">\n <span [innerHTML]=\"HighlightMatch(dashboard.Name)\"></span>\n @if (IsShared(dashboard.ID)) {\n <span class=\"shared-badge\" title=\"Shared with you\">\n <i class=\"fa-solid fa-share-nodes\"></i>\n </span>\n }\n </h3>\n @if (dashboard.Description) {\n <p class=\"card-description\" [innerHTML]=\"HighlightMatch(dashboard.Description)\">\n </p>\n }\n <div class=\"card-meta\">\n <span class=\"meta-item\">\n <i class=\"fa-solid fa-clock\"></i>\n {{ FormatDate(dashboard.__mj_UpdatedAt) }}\n </span>\n </div>\n </div>\n </div>\n }\n </div>\n }\n\n <!-- List View -->\n @if (ViewMode === 'list' && (FilteredChildCategories.length > 0 || FilteredDashboards.length > 0)) {\n <div class=\"dashboard-list\">\n <div class=\"list-header\">\n @if (IsSelectionMode) {\n <div class=\"list-col checkbox-col\">\n <input\n type=\"checkbox\"\n [checked]=\"SelectedCount === FilteredDashboards.length && FilteredDashboards.length > 0\"\n [indeterminate]=\"SelectedCount > 0 && SelectedCount < FilteredDashboards.length\"\n (change)=\"SelectedCount === FilteredDashboards.length ? ClearSelection() : SelectAll()\">\n </div>\n }\n <div class=\"list-col name-col\">Name</div>\n <div class=\"list-col type-col\">Type</div>\n <div class=\"list-col date-col\">Modified</div>\n <div class=\"list-col actions-col\">Actions</div>\n </div>\n <!-- Category Rows -->\n @for (category of FilteredChildCategories; track TrackByCategory($index, category)) {\n <div\n class=\"list-row category-row\"\n [class.drop-target]=\"DragOverChildCategoryId === category.ID\"\n (click)=\"NavigateToCategory(category.ID)\"\n (dragover)=\"OnDragOverChildCategory(category.ID, $event)\"\n (dragleave)=\"OnDragLeaveChildCategory()\"\n (drop)=\"OnDropOnChildCategory(category.ID, $event)\">\n @if (IsSelectionMode) {\n <div class=\"list-col checkbox-col\">\n <!-- Empty placeholder for alignment -->\n </div>\n }\n <div class=\"list-col name-col\">\n <i class=\"fa-solid fa-folder row-icon folder-icon\"></i>\n <span class=\"dashboard-name\" [innerHTML]=\"HighlightMatch(category.Name)\"></span>\n </div>\n <div class=\"list-col type-col\">\n Category\n </div>\n <div class=\"list-col date-col\">\n <!-- No date for categories -->\n </div>\n <div class=\"list-col actions-col\" (click)=\"$event.stopPropagation()\">\n <button\n class=\"action-btn danger\"\n title=\"Delete category\"\n (click)=\"OnDeleteCategory(category, $event)\">\n <i class=\"fa-solid fa-trash\"></i>\n </button>\n </div>\n </div>\n }\n <!-- Dashboard Rows -->\n @for (dashboard of FilteredDashboards; track TrackByDashboard($index, dashboard)) {\n <div\n class=\"list-row\"\n [class.selected]=\"IsSelected(dashboard.ID)\"\n [class.dragging]=\"DraggingId === dashboard.ID\"\n [draggable]=\"AllowDragDrop\"\n (click)=\"OnDashboardClick(dashboard, $event)\"\n (dblclick)=\"OnDashboardDoubleClick(dashboard, $event)\"\n (dragstart)=\"OnDragStart(dashboard, $event)\"\n (dragend)=\"OnDragEnd()\">\n @if (IsSelectionMode) {\n <div class=\"list-col checkbox-col\" (click)=\"$event.stopPropagation()\">\n <input\n type=\"checkbox\"\n [checked]=\"IsSelected(dashboard.ID)\"\n (change)=\"ToggleSelection(dashboard.ID)\">\n </div>\n }\n <div class=\"list-col name-col\">\n <i class=\"fa-solid fa-chart-line row-icon\"></i>\n <span class=\"dashboard-name\" [innerHTML]=\"HighlightMatch(dashboard.Name)\"></span>\n @if (IsShared(dashboard.ID)) {\n <span class=\"shared-badge\" title=\"Shared with you\">\n <i class=\"fa-solid fa-share-nodes\"></i>\n </span>\n }\n </div>\n <div class=\"list-col type-col\">\n Dashboard\n </div>\n <div class=\"list-col date-col\">\n {{ FormatDate(dashboard.__mj_UpdatedAt) }}\n </div>\n <div class=\"list-col actions-col\" (click)=\"$event.stopPropagation()\">\n @if (CanEdit(dashboard.ID)) {\n <button\n class=\"action-btn\"\n title=\"Edit\"\n (click)=\"OnEditDashboard(dashboard, $event)\">\n <i class=\"fa-solid fa-edit\"></i>\n </button>\n }\n @if (CanDelete(dashboard.ID)) {\n <button\n class=\"action-btn danger\"\n title=\"Delete\"\n (click)=\"OnDeleteDashboard(dashboard, $event)\">\n <i class=\"fa-solid fa-trash\"></i>\n </button>\n }\n </div>\n </div>\n }\n </div>\n }\n\n <!-- Empty State -->\n @if (FilteredDashboards.length === 0 && FilteredChildCategories.length === 0 && !IsLoading) {\n <div class=\"empty-state\">\n <div class=\"empty-state-content\">\n <!-- First-time user experience (no dashboards at all) -->\n @if (IsAtRoot && Dashboards.length === 0) {\n <div class=\"empty-illustration\">\n <div class=\"illustration-bg\">\n <i class=\"fa-solid fa-gauge-high main-icon\"></i>\n </div>\n <div class=\"illustration-accent accent-1\"><i class=\"fa-solid fa-chart-line\"></i></div>\n <div class=\"illustration-accent accent-2\"><i class=\"fa-solid fa-chart-bar\"></i></div>\n <div class=\"illustration-accent accent-3\"><i class=\"fa-solid fa-chart-pie\"></i></div>\n </div>\n <h2 class=\"empty-title\">Welcome to Dashboards</h2>\n <p class=\"empty-description\">\n Create custom dashboards to visualize your data, track key metrics, and monitor important information all in one place.\n </p>\n @if (ShowCreateButton) {\n <div class=\"empty-actions\">\n <button class=\"btn-primary large\" (click)=\"OnCreateDashboard()\">\n <i class=\"fa-solid fa-plus\"></i>\n Create Your First Dashboard\n </button>\n </div>\n }\n <div class=\"empty-features\">\n <div class=\"feature-item\">\n <i class=\"fa-solid fa-table-cells\"></i>\n <span>Customizable layouts</span>\n </div>\n <div class=\"feature-item\">\n <i class=\"fa-solid fa-database\"></i>\n <span>Connect to your data</span>\n </div>\n <div class=\"feature-item\">\n <i class=\"fa-solid fa-share-nodes\"></i>\n <span>Share with your team</span>\n </div>\n </div>\n }\n <!-- Folder is empty -->\n @if (!IsAtRoot && !SearchText) {\n <div class=\"empty-icon folder-empty\">\n <i class=\"fa-solid fa-folder-open\"></i>\n </div>\n <h3 class=\"empty-title\">This folder is empty</h3>\n <p class=\"empty-description\">\n Add dashboards or create sub-folders to organize your content.\n </p>\n @if (ShowCreateButton) {\n <div class=\"empty-actions\">\n <button class=\"btn-primary\" (click)=\"OnCreateDashboard()\">\n <i class=\"fa-solid fa-plus\"></i>\n Create Dashboard\n </button>\n </div>\n }\n }\n <!-- Root has dashboards but none uncategorized -->\n @if (IsAtRoot && Dashboards.length > 0 && !SearchText) {\n <div class=\"empty-icon\">\n <i class=\"fa-solid fa-folder-tree\"></i>\n </div>\n <h3 class=\"empty-title\">No uncategorized dashboards</h3>\n <p class=\"empty-description\">\n All your dashboards are organized into folders. Browse the folders above or create a new dashboard here.\n </p>\n @if (ShowCreateButton) {\n <div class=\"empty-actions\">\n <button class=\"btn-primary\" (click)=\"OnCreateDashboard()\">\n <i class=\"fa-solid fa-plus\"></i>\n Create Dashboard\n </button>\n </div>\n }\n }\n <!-- Search returned no results -->\n @if (SearchText) {\n <div class=\"empty-icon search-empty\">\n <i class=\"fa-solid fa-magnifying-glass\"></i>\n </div>\n <h3 class=\"empty-title\">No results found</h3>\n <p class=\"empty-description\">\n No dashboards or folders match \"<strong>{{ SearchText }}</strong>\". Try a different search term.\n </p>\n <div class=\"empty-actions\">\n <button class=\"btn-secondary\" (click)=\"ClearSearch()\">\n <i class=\"fa-solid fa-times\"></i>\n Clear Search\n </button>\n </div>\n }\n </div>\n </div>\n }\n\n <!-- Category Drop Zones (for drag and drop) -->\n @if (DraggingId && Categories.length > 0) {\n <div class=\"category-drop-zones\">\n <div class=\"drop-zone-header\">Drop to move to category:</div>\n <div class=\"drop-zones\">\n <div\n class=\"drop-zone\"\n [class.active]=\"DropTargetCategoryId === null\"\n (dragover)=\"OnDragOverCategory(null, $event)\"\n (dragleave)=\"OnDragLeaveCategory()\"\n (drop)=\"OnDropOnCategory(null, $event)\">\n <i class=\"fa-solid fa-folder-open\"></i>\n Uncategorized\n </div>\n @for (cat of Categories; track TrackByCategory($index, cat)) {\n <div\n class=\"drop-zone\"\n [class.active]=\"DropTargetCategoryId === cat.ID\"\n (dragover)=\"OnDragOverCategory(cat.ID, $event)\"\n (dragleave)=\"OnDragLeaveCategory()\"\n (drop)=\"OnDropOnCategory(cat.ID, $event)\">\n <i class=\"fa-solid fa-folder\"></i>\n {{ cat.Name }}\n </div>\n }\n </div>\n </div>\n }\n\n <!-- Delete Confirmation Dialog -->\n <mj-confirm-dialog\n [visible]=\"ShowDeleteConfirm\"\n type=\"danger\"\n title=\"Delete Dashboard{{ DashboardsPendingDelete.length > 1 ? 's' : '' }}\"\n [message]=\"DashboardsPendingDelete.length === 1\n ? 'Are you sure you want to delete \\'' + DashboardsPendingDelete[0].Name + '\\'? This action cannot be undone.'\n : 'Are you sure you want to delete ' + DashboardsPendingDelete.length + ' dashboards? This action cannot be undone.'\"\n confirmText=\"Delete\"\n cancelText=\"Cancel\"\n (confirmed)=\"ConfirmDelete()\"\n (cancelled)=\"CloseDeleteConfirm()\">\n </mj-confirm-dialog>\n\n <!-- Move to Folder Dialog -->\n @if (ShowMoveDialog) {\n <div class=\"move-dialog-overlay\" (click)=\"CloseMoveDialog()\">\n <div class=\"move-dialog\" (click)=\"$event.stopPropagation()\">\n <div class=\"dialog-header\">\n <h3>Move to Category</h3>\n <button class=\"close-btn\" (click)=\"CloseMoveDialog()\">\n <i class=\"fa-solid fa-times\"></i>\n </button>\n </div>\n <div class=\"dialog-content\">\n <p>Move {{ SelectedCount }} dashboard{{ SelectedCount > 1 ? 's' : '' }} to:</p>\n <div class=\"category-list\">\n <div\n class=\"category-option\"\n (click)=\"ConfirmMove(null)\">\n <i class=\"fa-solid fa-folder-open\"></i>\n Uncategorized\n </div>\n @for (cat of Categories; track TrackByCategory($index, cat)) {\n <div\n class=\"category-option\"\n (click)=\"ConfirmMove(cat.ID)\">\n <i class=\"fa-solid fa-folder\"></i>\n {{ cat.Name }}\n </div>\n }\n </div>\n </div>\n <div class=\"dialog-footer\">\n <button class=\"btn-secondary\" (click)=\"CloseMoveDialog()\">Cancel</button>\n </div>\n </div>\n </div>\n }\n\n <!-- Create Category Dialog -->\n @if (ShowCreateCategoryDialog) {\n <div class=\"create-category-dialog-overlay\" (click)=\"CloseCreateCategoryDialog()\">\n <div class=\"create-category-dialog\" (click)=\"$event.stopPropagation()\">\n <div class=\"dialog-header\">\n <h3>\n <i class=\"fa-solid fa-folder-plus\"></i>\n Create Category\n </h3>\n <button class=\"close-btn\" (click)=\"CloseCreateCategoryDialog()\">\n <i class=\"fa-solid fa-times\"></i>\n </button>\n </div>\n <div class=\"dialog-content\">\n <div class=\"form-field\">\n <label for=\"category-name\">Name *</label>\n <input\n type=\"text\"\n id=\"category-name\"\n [(ngModel)]=\"NewCategoryName\"\n placeholder=\"Enter category name\"\n (keyup.enter)=\"ConfirmCreateCategory()\">\n </div>\n <div class=\"form-field\">\n <label for=\"category-description\">Description</label>\n <textarea\n id=\"category-description\"\n [(ngModel)]=\"NewCategoryDescription\"\n placeholder=\"Optional description\"\n rows=\"3\"></textarea>\n </div>\n </div>\n <div class=\"dialog-footer\">\n <button\n class=\"btn-primary\"\n (click)=\"ConfirmCreateCategory()\"\n [disabled]=\"!NewCategoryName.trim()\">\n <i class=\"fa-solid fa-plus\"></i>\n Create\n </button>\n <button class=\"btn-secondary\" (click)=\"CloseCreateCategoryDialog()\">Cancel</button>\n </div>\n </div>\n </div>\n }\n\n <!-- Delete Category Confirmation Dialog -->\n @if (ShowDeleteCategoryConfirm) {\n <div class=\"delete-category-dialog-overlay\" (click)=\"CloseDeleteCategoryConfirm()\">\n <div class=\"delete-category-dialog\" (click)=\"$event.stopPropagation()\">\n <div class=\"dialog-header danger\">\n <h3>\n <i class=\"fa-solid fa-exclamation-triangle\"></i>\n Delete Category\n </h3>\n <button class=\"close-btn\" (click)=\"CloseDeleteCategoryConfirm()\">\n <i class=\"fa-solid fa-times\"></i>\n </button>\n </div>\n @if (CategoryPendingDelete) {\n <div class=\"dialog-content\">\n <div class=\"warning-message\">\n <p>\n You are about to delete the category <strong>\"{{ CategoryPendingDelete.Name }}\"</strong>.\n </p>\n @if (GetCategoryContentCount(CategoryPendingDelete); as counts) {\n @if (counts.dashboards > 0 || counts.categories > 0) {\n <p class=\"content-warning\">\n <i class=\"fa-solid fa-warning\"></i>\n This category contains:\n </p>\n }\n @if (counts.dashboards > 0 || counts.categories > 0) {\n <ul class=\"content-list\">\n @if (counts.dashboards > 0) {\n <li>\n <i class=\"fa-solid fa-chart-line\"></i>\n {{ counts.dashboards }} dashboard{{ counts.dashboards !== 1 ? 's' : '' }}\n </li>\n }\n @if (counts.categories > 0) {\n <li>\n <i class=\"fa-solid fa-folder\"></i>\n {{ counts.categories }} sub-categor{{ counts.categories !== 1 ? 'ies' : 'y' }}\n </li>\n }\n </ul>\n }\n }\n </div>\n <div class=\"confirmation-checkbox\">\n <label class=\"checkbox-label\">\n <input\n type=\"checkbox\"\n [(ngModel)]=\"DeleteCategoryIncludeContents\">\n <span class=\"checkbox-text\">\n I understand this will permanently delete this category and all its contents. This action cannot be undone.\n </span>\n </label>\n </div>\n </div>\n }\n <div class=\"dialog-footer\">\n <button\n class=\"btn-danger\"\n (click)=\"ConfirmDeleteCategory()\"\n [disabled]=\"!DeleteCategoryIncludeContents\">\n <i class=\"fa-solid fa-trash\"></i>\n Delete Category\n </button>\n <button class=\"btn-secondary\" (click)=\"CloseDeleteCategoryConfirm()\">Cancel</button>\n </div>\n </div>\n </div>\n }\n</div>\n"]}
|
|
@@ -2,7 +2,7 @@ import { Component, Input, Output, EventEmitter, ViewChild, createComponent, Vie
|
|
|
2
2
|
import { Subject } from 'rxjs';
|
|
3
3
|
import { takeUntil } from 'rxjs/operators';
|
|
4
4
|
import { Metadata } from '@memberjunction/core';
|
|
5
|
-
import { MJGlobal } from '@memberjunction/global';
|
|
5
|
+
import { MJGlobal, UUIDsEqual } from '@memberjunction/global';
|
|
6
6
|
import { DashboardEngine } from '@memberjunction/core-entities';
|
|
7
7
|
import { createDefaultDashboardConfig, generatePanelId, extractPanelsFromLayout, findPanelInLayout } from '../models/dashboard-types';
|
|
8
8
|
import { GoldenLayoutWrapperService } from '../services/golden-layout-wrapper.service';
|
|
@@ -299,7 +299,7 @@ export class DashboardViewerComponent {
|
|
|
299
299
|
if (!this.config || !this._glService) {
|
|
300
300
|
return;
|
|
301
301
|
}
|
|
302
|
-
const partType = this.partTypes.find(pt => pt.ID
|
|
302
|
+
const partType = this.partTypes.find(pt => UUIDsEqual(pt.ID, partTypeId));
|
|
303
303
|
if (!partType) {
|
|
304
304
|
this.error.emit({ message: `Unknown panel type: ${partTypeId}` });
|
|
305
305
|
return;
|
|
@@ -409,7 +409,7 @@ export class DashboardViewerComponent {
|
|
|
409
409
|
const panel = this.getPanel(panelId);
|
|
410
410
|
if (!panel)
|
|
411
411
|
return null;
|
|
412
|
-
return this.partTypes.find(pt => pt.ID
|
|
412
|
+
return this.partTypes.find(pt => UUIDsEqual(pt.ID, panel.partTypeId)) ?? null;
|
|
413
413
|
}
|
|
414
414
|
/**
|
|
415
415
|
* Update a panel's configuration.
|
|
@@ -665,7 +665,7 @@ export class DashboardViewerComponent {
|
|
|
665
665
|
* Panel comes directly from GL's componentState - no lookup needed.
|
|
666
666
|
*/
|
|
667
667
|
createPanelComponent(panel, container) {
|
|
668
|
-
const partType = this.partTypes.find(pt => pt.ID
|
|
668
|
+
const partType = this.partTypes.find(pt => UUIDsEqual(pt.ID, panel.partTypeId));
|
|
669
669
|
// Create the panel wrapper with header and content
|
|
670
670
|
const wrapper = document.createElement('div');
|
|
671
671
|
wrapper.className = 'dashboard-part-wrapper';
|