Chorehancement: update to Angular v22, 'zoneless' / 'reactive' (#13114)

This commit is contained in:
shamoon
2026-07-10 00:42:16 -07:00
committed by GitHub
parent f244442c65
commit 106b41a15c
213 changed files with 5363 additions and 5842 deletions
@@ -1,4 +1,5 @@
import {
ChangeDetectorRef,
Directive,
ElementRef,
EventEmitter,
@@ -6,12 +7,15 @@ import {
OnInit,
Output,
ViewChild,
inject,
} from '@angular/core'
import { ControlValueAccessor } from '@angular/forms'
import { v4 as uuidv4 } from 'uuid'
@Directive()
export class AbstractInputComponent<T> implements OnInit, ControlValueAccessor {
protected readonly changeDetector = inject(ChangeDetectorRef)
@ViewChild('inputField')
inputField: ElementRef
@@ -23,6 +27,7 @@ export class AbstractInputComponent<T> implements OnInit, ControlValueAccessor {
writeValue(newValue: any): void {
this.value = newValue
this.changeDetector.markForCheck()
}
registerOnChange(fn: any): void {
this.onChange = fn
@@ -32,6 +37,7 @@ export class AbstractInputComponent<T> implements OnInit, ControlValueAccessor {
}
setDisabledState?(isDisabled: boolean): void {
this.disabled = isDisabled
this.changeDetector.markForCheck()
}
focus() {