Update Angular dependencies to latest versions (#1366)

This commit is contained in:
Aditya Chandel
2025-10-16 14:13:45 -06:00
committed by GitHub
parent c635b16870
commit 3149b07901
14 changed files with 1778 additions and 1591 deletions
@@ -13,7 +13,7 @@ export class BookDialogHelperService {
private dialogService = inject(DialogService);
openShelfAssigner(bookIds: Set<number>): DynamicDialogRef {
openShelfAssigner(bookIds: Set<number>): DynamicDialogRef | null {
return this.dialogService.open(ShelfAssignerComponent, {
header: `Update Books' Shelves`,
modal: true,
@@ -31,7 +31,7 @@ export class BookDialogHelperService {
});
}
openLockUnlockMetadataDialog(bookIds: Set<number>): DynamicDialogRef {
openLockUnlockMetadataDialog(bookIds: Set<number>): DynamicDialogRef | null {
const count = bookIds.size;
return this.dialogService.open(LockUnlockMetadataDialogComponent, {
header: `Lock or Unlock Metadata for ${count} Selected Book${count > 1 ? 's' : ''}`,
@@ -43,7 +43,7 @@ export class BookDialogHelperService {
});
}
openMetadataRefreshDialog(bookIds: Set<number>): DynamicDialogRef {
openMetadataRefreshDialog(bookIds: Set<number>): DynamicDialogRef | null {
return this.dialogService.open(MultiBookMetadataFetchComponent, {
header: 'Metadata Refresh Options',
modal: true,
@@ -55,7 +55,7 @@ export class BookDialogHelperService {
});
}
openBulkMetadataEditDialog(bookIds: Set<number>): DynamicDialogRef {
openBulkMetadataEditDialog(bookIds: Set<number>): DynamicDialogRef | null {
return this.dialogService.open(BulkMetadataUpdateComponent, {
header: 'Bulk Edit Metadata',
modal: true,
@@ -71,7 +71,7 @@ export class BookDialogHelperService {
});
}
openMultibookMetadataEditorDialog(bookIds: Set<number>): DynamicDialogRef {
openMultibookMetadataEditorDialog(bookIds: Set<number>): DynamicDialogRef | null {
return this.dialogService.open(MultiBookMetadataEditorComponent, {
header: 'Bulk Edit Metadata',
showHeader: false,
@@ -131,7 +131,7 @@ export class BookBrowserComponent implements OnInit {
entityOptions: MenuItem[] | undefined;
selectedBooks = new Set<number>();
isDrawerVisible = false;
dynamicDialogRef: DynamicDialogRef | undefined;
dynamicDialogRef: DynamicDialogRef | undefined | null;
EntityType = EntityType;
currentFilterLabel: string | null = null;
rawFilterParamFromUrl: string | null = null;
@@ -542,7 +542,7 @@ export class BookBrowserComponent implements OnInit {
openShelfAssigner(): void {
this.dynamicDialogRef = this.dialogHelperService.openShelfAssigner(this.selectedBooks);
this.dynamicDialogRef.onClose.subscribe(() => {
this.dynamicDialogRef?.onClose.subscribe(() => {
this.selectedBooks = new Set<number>();
});
}
@@ -27,7 +27,7 @@ import {ProgressSpinner} from 'primeng/progressspinner';
standalone: true
})
export class MainDashboardComponent implements OnInit {
ref: DynamicDialogRef | undefined;
ref: DynamicDialogRef | undefined | null;
private bookService = inject(BookService);
private dialogService = inject(DialogService);
@@ -30,7 +30,7 @@ export class LibraryCreatorComponent implements OnInit {
mode!: string;
library!: Library | undefined;
editModeLibraryName: string = '';
directoryPickerDialogRef!: DynamicDialogRef<DirectoryPickerComponent>;
directoryPickerDialogRef!: DynamicDialogRef<DirectoryPickerComponent> | null;
watch: boolean = false;
scanMode: LibraryScanMode = 'FILE_AS_BOOK';
defaultBookFormat: BookFileType | undefined = undefined;
@@ -81,7 +81,7 @@ export class LibraryCreatorComponent implements OnInit {
contentStyle: {overflow: 'hidden'},
baseZIndex: 10
});
this.directoryPickerDialogRef.onClose.subscribe((selectedFolders: string[] | null) => {
this.directoryPickerDialogRef?.onClose.subscribe((selectedFolders: string[] | null) => {
if (selectedFolders && selectedFolders.length > 0) {
selectedFolders.forEach(folder => {
if (!this.folders.includes(folder)) {
@@ -676,7 +676,7 @@ export class MetadataEditorComponent implements OnInit {
},
});
ref.onClose.subscribe((result) => {
ref?.onClose.subscribe((result) => {
if (result) {
this.metadataForm.get("thumbnailUrl")?.setValue(result);
this.onSave();
@@ -31,7 +31,7 @@ import {UserService} from '../../user-management/user.service';
export class EmailV2ProviderComponent implements OnInit {
emailProviders: EmailProvider[] = [];
editingProviderIds: number[] = [];
ref: DynamicDialogRef | undefined;
ref: DynamicDialogRef | undefined | null;
private dialogService = inject(DialogService);
private emailProvidersService = inject(EmailV2ProviderService);
private messageService = inject(MessageService);
@@ -130,7 +130,7 @@ export class EmailV2ProviderComponent implements OnInit {
closable: true,
style: {position: 'absolute', top: '15%'},
});
this.ref.onClose.subscribe((result) => {
this.ref?.onClose.subscribe((result) => {
if (result) {
this.loadEmailProviders();
}
@@ -28,7 +28,7 @@ import {CreateEmailRecipientDialogComponent} from '../create-email-recipient-dia
export class EmailV2RecipientComponent implements OnInit {
recipientEmails: EmailRecipient[] = [];
editingRecipientIds: number[] = [];
ref: DynamicDialogRef | undefined;
ref: DynamicDialogRef | undefined | null;
private dialogService = inject(DialogService);
private emailRecipientService = inject(EmailV2RecipientService);
private messageService = inject(MessageService);
@@ -117,7 +117,7 @@ export class EmailV2RecipientComponent implements OnInit {
closable: true,
style: {position: 'absolute', top: '15%'},
});
this.ref.onClose.subscribe((result) => {
this.ref?.onClose.subscribe((result) => {
if (result) {
this.loadRecipientEmails();
}
@@ -35,7 +35,7 @@ import {Tooltip} from 'primeng/tooltip';
styleUrls: ['./user-management.component.scss'],
})
export class UserManagementComponent implements OnInit, OnDestroy {
ref: DynamicDialogRef | undefined;
ref: DynamicDialogRef | undefined | null;
private dialogService = inject(DialogService);
private userService = inject(UserService);
private libraryService = inject(LibraryService);
@@ -111,7 +111,7 @@ export class UserManagementComponent implements OnInit, OnDestroy {
closable: true,
style: {position: 'absolute', top: '15%'},
});
this.ref.onClose.subscribe((result) => {
this.ref?.onClose.subscribe((result) => {
if (result) {
this.loadUsers();
}