-
Notifications
You must be signed in to change notification settings - Fork 478
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: remove deprecated re-exports (#2199)
* refactor: remove deprecated re-exports * chore: fix comments * chore: rename function
- Loading branch information
1 parent
128b31b
commit 309cb84
Showing
36 changed files
with
142 additions
and
284 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 7 additions & 13 deletions
20
projects/addon-preview/components/preview/preview-action/preview-action.directive.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,14 @@ | ||
import {Directive} from '@angular/core'; | ||
import {TUI_BUTTON_OPTIONS, TuiButtonOptions} from '@taiga-ui/core'; | ||
|
||
// TODO: 3.0 remove in ivy compilation | ||
export const PREVIEW_ACTION_OPTIONS: TuiButtonOptions = { | ||
appearance: `preview-action`, | ||
shape: `rounded`, | ||
size: `s`, | ||
}; | ||
import {tuiButtonOptionsProvider} from '@taiga-ui/core'; | ||
|
||
@Directive({ | ||
selector: `[tuiPreviewAction]`, | ||
selector: '[tuiPreviewAction]', | ||
providers: [ | ||
{ | ||
provide: TUI_BUTTON_OPTIONS, | ||
useValue: PREVIEW_ACTION_OPTIONS, | ||
}, | ||
tuiButtonOptionsProvider({ | ||
appearance: 'preview-action', | ||
shape: 'rounded', | ||
size: 's', | ||
}), | ||
], | ||
}) | ||
export class TuiPreviewActionDirective {} |
7 changes: 2 additions & 5 deletions
7
projects/addon-table/components/table/providers/table.provider.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,16 @@ | ||
import {ChangeDetectorRef, Provider, SkipSelf} from '@angular/core'; | ||
import {TuiDestroyService} from '@taiga-ui/cdk'; | ||
import {watchedControllerFactory} from '@taiga-ui/core'; | ||
import {tuiWatchedControllerFactory} from '@taiga-ui/core'; | ||
|
||
import {TuiTableDirective} from '../directives/table.directive'; | ||
import {TuiTableSortPipe} from '../pipes/table-sort.pipe'; | ||
|
||
// TODO: 3.0 remove in ivy compilation | ||
export const TABLE_FACTORY = watchedControllerFactory; | ||
|
||
export const TUI_TABLE_PROVIDER: Provider[] = [ | ||
TuiDestroyService, | ||
TuiTableSortPipe, | ||
{ | ||
provide: TuiTableDirective, | ||
deps: [[new SkipSelf(), TuiTableDirective], ChangeDetectorRef, TuiDestroyService], | ||
useFactory: TABLE_FACTORY, | ||
useFactory: tuiWatchedControllerFactory, | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 3 additions & 4 deletions
7
projects/core/directives/dropdown-controller/dropdown-controller.provider.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,18 @@ | ||
import {ChangeDetectorRef, InjectionToken, Provider} from '@angular/core'; | ||
import {TuiDestroyService} from '@taiga-ui/cdk'; | ||
import {watchedControllerFactory} from '@taiga-ui/core/providers'; | ||
import {tuiWatchedControllerFactory} from '@taiga-ui/core/providers'; | ||
|
||
import {TUI_DROPDOWN_CONTROLLER} from './dropdown-controller.token'; | ||
|
||
export const TUI_DROPDOWN_WATCHED_CONTROLLER = new InjectionToken( | ||
`watched dropdown controller`, | ||
); | ||
// TODO: 3.0 remove in ivy compilation | ||
export const DROPDOWN_CONTROLLER_FACTORY = watchedControllerFactory; | ||
|
||
export const DROPDOWN_CONTROLLER_PROVIDER: Provider = [ | ||
TuiDestroyService, | ||
{ | ||
provide: TUI_DROPDOWN_WATCHED_CONTROLLER, | ||
deps: [TUI_DROPDOWN_CONTROLLER, ChangeDetectorRef, TuiDestroyService], | ||
useFactory: DROPDOWN_CONTROLLER_FACTORY, | ||
useFactory: tuiWatchedControllerFactory, | ||
}, | ||
]; |
9 changes: 4 additions & 5 deletions
9
projects/core/directives/hint-controller/hint-controller.provider.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
import {ChangeDetectorRef, InjectionToken, Provider} from '@angular/core'; | ||
import {TuiDestroyService} from '@taiga-ui/cdk'; | ||
import {watchedControllerFactory} from '@taiga-ui/core/providers'; | ||
import {tuiWatchedControllerFactory} from '@taiga-ui/core/providers'; | ||
|
||
import {TUI_HINT_CONTROLLER} from './hint-controller.token'; | ||
|
||
export const TUI_HINT_WATCHED_CONTROLLER = new InjectionToken(`watched hint controller`); | ||
// TODO: 3.0 remove in ivy compilation | ||
export const HINT_CONTROLLER_FACTORY = watchedControllerFactory; | ||
export const TUI_HINT_WATCHED_CONTROLLER = new InjectionToken('watched hint controller'); | ||
|
||
export const HINT_CONTROLLER_PROVIDER: Provider = [ | ||
TuiDestroyService, | ||
{ | ||
provide: TUI_HINT_WATCHED_CONTROLLER, | ||
deps: [TUI_HINT_CONTROLLER, ChangeDetectorRef, TuiDestroyService], | ||
useFactory: HINT_CONTROLLER_FACTORY, | ||
useFactory: tuiWatchedControllerFactory, | ||
}, | ||
]; |
Oops, something went wrong.