File tree Expand file tree Collapse file tree 8 files changed +15
-15
lines changed Expand file tree Collapse file tree 8 files changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -69,9 +69,9 @@ export class NgtTweakBinding<TValue> {
69
69
} ) ;
70
70
71
71
constructor ( ) {
72
- this . blade . startChangeEffect ( this . bindingApi ) ;
73
- this . label . startChangeEffect ( this . bindingApi ) ;
74
- this . debounce . startDebounceEffect ( this . bindingApi , ( ev ) => {
72
+ this . blade . sync ( this . bindingApi ) ;
73
+ this . label . sync ( this . bindingApi ) ;
74
+ this . debounce . sync ( this . bindingApi , ( ev ) => {
75
75
if ( this . asHostDirective && typeof this . asHostDirective === 'object' ) {
76
76
this . value . set ( this . asHostDirective . out ( ev . value ) as TValue ) ;
77
77
} else {
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ export class NgtTweakBlade {
15
15
} ;
16
16
}
17
17
18
- startChangeEffect ( api : ( ) => BladeApi | null ) {
18
+ sync ( api : ( ) => BladeApi | null ) {
19
19
return effect (
20
20
( ) => {
21
21
const _api = api ( ) ;
Original file line number Diff line number Diff line change @@ -47,9 +47,9 @@ export class NgtTweakButton {
47
47
} ) ;
48
48
} ) ;
49
49
50
- this . label . startChangeEffect ( this . buttonApi ) ;
51
- this . title . startChangeEffect ( this . buttonApi ) ;
52
- this . blade . startChangeEffect ( this . buttonApi ) ;
50
+ this . label . sync ( this . buttonApi ) ;
51
+ this . title . sync ( this . buttonApi ) ;
52
+ this . blade . sync ( this . buttonApi ) ;
53
53
54
54
inject ( DestroyRef ) . onDestroy ( ( ) => {
55
55
this . buttonApi ( ) ?. dispose ( ) ;
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ export class NgtTweakDebounce {
8
8
9
9
private injector = inject ( Injector ) ;
10
10
11
- startDebounceEffect < T > (
11
+ sync < T > (
12
12
api : ( ) => {
13
13
on : ( evName : 'change' , cb : ( ev : TpChangeEvent < T > ) => void ) => void ;
14
14
off : ( evName : 'change' , cb : ( ev : TpChangeEvent < T > ) => void ) => void ;
Original file line number Diff line number Diff line change @@ -35,8 +35,8 @@ export class NgtTweakFolder {
35
35
isSelf = true ;
36
36
37
37
constructor ( ) {
38
- this . title . startChangeEffect ( this . folder ) ;
39
- this . blade . startChangeEffect ( this . folder ) ;
38
+ this . title . sync ( this . folder ) ;
39
+ this . blade . sync ( this . folder ) ;
40
40
41
41
effect ( ( onCleanup ) => {
42
42
const folder = this . folder ( ) ;
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ export class NgtTweakLabel {
11
11
return { label : untracked ( this . label ) , tag : untracked ( this . tag ) } ;
12
12
}
13
13
14
- startChangeEffect ( api : ( ) => { label ?: string | null ; tag ?: string | null } | null ) {
14
+ sync ( api : ( ) => { label ?: string | null ; tag ?: string | null } | null ) {
15
15
return effect (
16
16
( ) => {
17
17
const _api = api ( ) ;
Original file line number Diff line number Diff line change @@ -47,9 +47,9 @@ export class NgtTweakList<TOptionValue> {
47
47
} ) ;
48
48
49
49
constructor ( ) {
50
- this . label . startChangeEffect ( this . listApi ) ;
51
- this . blade . startChangeEffect ( this . listApi ) ;
52
- this . debounce . startDebounceEffect ( this . listApi , ( ev ) => {
50
+ this . label . sync ( this . listApi ) ;
51
+ this . blade . sync ( this . listApi ) ;
52
+ this . debounce . sync ( this . listApi , ( ev ) => {
53
53
this . value . set ( ev . value ) ;
54
54
} ) ;
55
55
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ export class NgtTweakTitle {
10
10
return untracked ( this . title ) ;
11
11
}
12
12
13
- startChangeEffect ( api : ( ) => { title : string | undefined } | null ) {
13
+ sync ( api : ( ) => { title : string | undefined } | null ) {
14
14
return effect (
15
15
( ) => {
16
16
const _api = api ( ) ;
You can’t perform that action at this time.
0 commit comments