Chore: update to Angular 20 (#10273)

This commit is contained in:
shamoon
2025-06-27 14:06:40 -07:00
committed by GitHub
parent dfad3c4d8e
commit 958f98d7e5
146 changed files with 2662 additions and 2687 deletions

View File

@@ -1,5 +1,4 @@
import { DOCUMENT } from '@angular/common'
import { Inject, Injectable } from '@angular/core'
import { DOCUMENT, Injectable, inject } from '@angular/core'
import { EventManager } from '@angular/platform-browser'
import { NgbModal } from '@ng-bootstrap/ng-bootstrap'
import { Observable } from 'rxjs'
@@ -15,17 +14,17 @@ export interface ShortcutOptions {
providedIn: 'root',
})
export class HotKeyService {
private eventManager = inject(EventManager)
private document = inject<Document>(DOCUMENT)
private modalService = inject(NgbModal)
private defaults: Partial<ShortcutOptions> = {
element: this.document,
}
private hotkeys: Map<string, string> = new Map()
constructor(
private eventManager: EventManager,
@Inject(DOCUMENT) private document: Document,
private modalService: NgbModal
) {
constructor() {
this.addShortcut({ keys: 'shift.?' }).subscribe(() => {
this.openHelpModal()
})