()
| 148 | readonly activeDescendant = computed(() => this._pattern.activeDescendant()); |
| 149 | |
| 150 | constructor() { |
| 151 | // Use Write mode for all direct DOM focus management actions. |
| 152 | afterRenderEffect({write: () => this._pattern.setDefaultStateEffect()}); |
| 153 | afterRenderEffect({write: () => this._pattern.resetStateEffect()}); |
| 154 | afterRenderEffect({write: () => this._pattern.resetFocusEffect()}); |
| 155 | afterRenderEffect({write: () => this._pattern.restoreFocusEffect()}); |
| 156 | afterRenderEffect({write: () => this._pattern.focusEffect()}); |
| 157 | |
| 158 | // Check for any violations after the DOM has been updated. |
| 159 | if (typeof ngDevMode === 'undefined' || ngDevMode) { |
| 160 | afterRenderEffect({ |
| 161 | read: () => { |
| 162 | reportViolations(this._pattern.validate(), this.element); |
| 163 | }, |
| 164 | }); |
| 165 | } |
| 166 | |
| 167 | afterNextRender(() => { |
| 168 | this._collection.startObserving(this.element); |
| 169 | }); |
| 170 | } |
| 171 | |
| 172 | ngOnDestroy() { |
| 173 | this._collection.stopObserving(); |
nothing calls this directly
no test coverage detected