diff --git a/api-goldens/element-ng/split/index.api.md b/api-goldens/element-ng/split/index.api.md index 5388d35fdd..1f0bdd4770 100644 --- a/api-goldens/element-ng/split/index.api.md +++ b/api-goldens/element-ng/split/index.api.md @@ -6,7 +6,6 @@ import { AfterContentInit } from '@angular/core'; import * as _angular_core from '@angular/core'; -import { EventEmitter } from '@angular/core'; import { OnChanges } from '@angular/core'; import { QueryList } from '@angular/core'; import { Signal } from '@angular/core'; @@ -48,7 +47,7 @@ export class SiSplitComponent implements AfterContentInit, OnChanges { // (undocumented) sizes: number[]; // (undocumented) - readonly sizesChange: EventEmitter; + readonly sizesChange: _angular_core.OutputEmitterRef; stateId?: string; } @@ -61,7 +60,7 @@ export class SiSplitPartComponent implements OnChanges { // (undocumented) actions: Action[]; // (undocumented) - readonly collapseChanged: EventEmitter; + readonly collapseChanged: _angular_core.OutputEmitterRef; get collapsed(): boolean; // (undocumented) collapseDirection: CollapseTo; @@ -98,7 +97,7 @@ export class SiSplitPartComponent implements OnChanges { showHeader: boolean; size?: number; // (undocumented) - readonly stateChange: EventEmitter; + readonly stateChange: _angular_core.OutputEmitterRef; stateId?: string; toggleCollapse(): void; } diff --git a/projects/element-ng/split/si-split-part.component.ts b/projects/element-ng/split/si-split-part.component.ts index 77442ccdf4..9a532f2b32 100644 --- a/projects/element-ng/split/si-split-part.component.ts +++ b/projects/element-ng/split/si-split-part.component.ts @@ -2,7 +2,6 @@ * Copyright (c) Siemens 2016 - 2026 * SPDX-License-Identifier: MIT */ -/* eslint-disable @angular-eslint/prefer-output-emitter-ref */ import { NgTemplateOutlet } from '@angular/common'; import { booleanAttribute, @@ -10,12 +9,11 @@ import { Component, computed, ElementRef, - EventEmitter, inject, Input, numberAttribute, OnChanges, - Output, + output, signal, SimpleChanges, TemplateRef @@ -133,8 +131,8 @@ export class SiSplitPartComponent implements OnChanges { */ @Input({ transform: booleanAttribute }) collapseOthers = false; - @Output() readonly collapseChanged = new EventEmitter(); - @Output() readonly stateChange = new EventEmitter(); + readonly collapseChanged = output(); + readonly stateChange = output(); /** @internal */ index = 0; diff --git a/projects/element-ng/split/si-split.component.ts b/projects/element-ng/split/si-split.component.ts index a3ae2249ea..055626d2bb 100644 --- a/projects/element-ng/split/si-split.component.ts +++ b/projects/element-ng/split/si-split.component.ts @@ -2,7 +2,6 @@ * Copyright (c) Siemens 2016 - 2026 * SPDX-License-Identifier: MIT */ -/* eslint-disable @angular-eslint/prefer-output-emitter-ref */ import { AfterContentInit, ChangeDetectionStrategy, @@ -11,17 +10,16 @@ import { computed, ContentChildren, ElementRef, - EventEmitter, inject, Input, NgZone, OnChanges, - Output, QueryList, signal, Signal, SimpleChanges, - DOCUMENT + DOCUMENT, + output } from '@angular/core'; import { isRTL, @@ -83,7 +81,7 @@ export class SiSplitComponent implements AfterContentInit, OnChanges { */ @Input() stateId?: string; - @Output() readonly sizesChange = new EventEmitter(); + readonly sizesChange = output(); @WebComponentContentChildren(SiSplitPartComponent) @ContentChildren(SiSplitPartComponent)