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> {
6969 } ) ;
7070
7171 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 ) => {
7575 if ( this . asHostDirective && typeof this . asHostDirective === 'object' ) {
7676 this . value . set ( this . asHostDirective . out ( ev . value ) as TValue ) ;
7777 } else {
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ export class NgtTweakBlade {
1515 } ;
1616 }
1717
18- startChangeEffect ( api : ( ) => BladeApi | null ) {
18+ sync ( api : ( ) => BladeApi | null ) {
1919 return effect (
2020 ( ) => {
2121 const _api = api ( ) ;
Original file line number Diff line number Diff line change @@ -47,9 +47,9 @@ export class NgtTweakButton {
4747 } ) ;
4848 } ) ;
4949
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 ) ;
5353
5454 inject ( DestroyRef ) . onDestroy ( ( ) => {
5555 this . buttonApi ( ) ?. dispose ( ) ;
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ export class NgtTweakDebounce {
88
99 private injector = inject ( Injector ) ;
1010
11- startDebounceEffect < T > (
11+ sync < T > (
1212 api : ( ) => {
1313 on : ( evName : 'change' , cb : ( ev : TpChangeEvent < T > ) => void ) => void ;
1414 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 {
3535 isSelf = true ;
3636
3737 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 ) ;
4040
4141 effect ( ( onCleanup ) => {
4242 const folder = this . folder ( ) ;
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ export class NgtTweakLabel {
1111 return { label : untracked ( this . label ) , tag : untracked ( this . tag ) } ;
1212 }
1313
14- startChangeEffect ( api : ( ) => { label ?: string | null ; tag ?: string | null } | null ) {
14+ sync ( api : ( ) => { label ?: string | null ; tag ?: string | null } | null ) {
1515 return effect (
1616 ( ) => {
1717 const _api = api ( ) ;
Original file line number Diff line number Diff line change @@ -47,9 +47,9 @@ export class NgtTweakList<TOptionValue> {
4747 } ) ;
4848
4949 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 ) => {
5353 this . value . set ( ev . value ) ;
5454 } ) ;
5555
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ export class NgtTweakTitle {
1010 return untracked ( this . title ) ;
1111 }
1212
13- startChangeEffect ( api : ( ) => { title : string | undefined } | null ) {
13+ sync ( api : ( ) => { title : string | undefined } | null ) {
1414 return effect (
1515 ( ) => {
1616 const _api = api ( ) ;
You can’t perform that action at this time.
0 commit comments