Skip to content

Commit 576eeaa

Browse files
committed
feat(core): deprecate outputs and inputs shortcut for ObjectEvents. Never worked
1 parent 5558ad2 commit 576eeaa

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

Diff for: libs/core/src/lib/utils/object-events.ts

+30
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,27 @@ import { NgtEventHandlers, NgtThreeEvent } from '../types';
55
import { resolveRef } from './resolve-ref';
66

77
@Directive({ standalone: true, selector: '[ngtObjectEvents]' })
8+
/**
9+
* As host directive:
10+
* - outputs: [
11+
* 'click',
12+
* 'dblclick',
13+
* 'contextmenu',
14+
* 'pointerup',
15+
* 'pointerdown',
16+
* 'pointerover',
17+
* 'pointerout',
18+
* 'pointerenter',
19+
* 'pointerleave',
20+
* 'pointermove',
21+
* 'pointermissed',
22+
* 'pointercancel',
23+
* 'wheel',
24+
* ]
25+
* - inputs: [
26+
* 'ngtObjectEvents'
27+
* ]
28+
*/
829
export class NgtObjectEvents {
930
click = output<NgtThreeEvent<MouseEvent>>();
1031
dblclick = output<NgtThreeEvent<MouseEvent>>();
@@ -46,7 +67,16 @@ export class NgtObjectEvents {
4667
}
4768
}
4869

70+
/**
71+
* @deprecated this has never worked. Use `NgtObjectEvents` and explicit value for inputs and outputs instead
72+
* @since 2.12.0 Will be removed in 3.0.0
73+
*/
4974
export const NgtObjectEventsInputs = ['ngtObjectEvents'];
75+
76+
/**
77+
* @deprecated this has never worked. Use `NgtObjectEvents` and explicit value for inputs and outputs instead
78+
* @since 2.12.0 Will be removed in 3.0.0
79+
*/
5080
export const NgtObjectEventsOutputs = [
5181
'click',
5282
'dblclick',

0 commit comments

Comments
 (0)