-
Notifications
You must be signed in to change notification settings - Fork 475
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(addon-commerce, addon-chart)!: remove deprecated enums (#2095)
- Loading branch information
1 parent
1ad3b6e
commit ecdcc74
Showing
66 changed files
with
217 additions
and
325 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,5 +1,4 @@ | ||
export * from '@taiga-ui/addon-charts/components'; | ||
export * from '@taiga-ui/addon-charts/constants'; | ||
export * from '@taiga-ui/addon-charts/enums'; | ||
export * from '@taiga-ui/addon-charts/interfaces'; | ||
export * from '@taiga-ui/addon-charts/types'; |
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,3 +1,3 @@ | ||
import {TuiLineTypeT} from './line-type'; | ||
import {TuiLineType} from './line-type'; | ||
|
||
export type TuiLineHandler = (index: number, total: number) => TuiLineTypeT; | ||
export type TuiLineHandler = (index: number, total: number) => TuiLineType; |
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,4 +1,4 @@ | ||
/** | ||
* Native CSS border-style options | ||
*/ | ||
export type TuiLineTypeT = 'solid' | 'dashed' | 'dotted' | 'none' | 'hidden'; | ||
export type TuiLineType = 'solid' | 'dashed' | 'dotted' | 'none' | 'hidden'; |
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
4 changes: 2 additions & 2 deletions
4
projects/addon-commerce/components/money/pipes/sign-symbol.pipe.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,11 +1,11 @@ | ||
import {Pipe, PipeTransform} from '@angular/core'; | ||
import {TuiMoneySignSymbol, TuiMoneySignT} from '@taiga-ui/addon-commerce/types'; | ||
import {TuiMoneySign, TuiMoneySignSymbol} from '@taiga-ui/addon-commerce/types'; | ||
|
||
import {tuiFormatSignSymbol} from '../utils/format-sign-symbol'; | ||
|
||
@Pipe({name: 'tuiSignSymbol'}) | ||
export class TuiSignSymbolPipe implements PipeTransform { | ||
transform(value: number, sign: TuiMoneySignT): TuiMoneySignSymbol { | ||
transform(value: number, sign: TuiMoneySign): TuiMoneySignSymbol { | ||
return tuiFormatSignSymbol(value, sign); | ||
} | ||
} |
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
4 changes: 2 additions & 2 deletions
4
projects/addon-commerce/components/money/utils/format-sign-symbol.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
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,5 +1,5 @@ | ||
import {isCardLengthValid, isCardNumberValid} from '@taiga-ui/addon-commerce/utils'; | ||
import {tuiIsCardLengthValid, tuiIsCardNumberValid} from '@taiga-ui/addon-commerce/utils'; | ||
import {TuiBooleanHandler} from '@taiga-ui/cdk'; | ||
|
||
export const tuiDefaultCardValidator: TuiBooleanHandler<string> = card => | ||
card.length > 11 && isCardLengthValid(card) && isCardNumberValid(card); | ||
card.length > 11 && tuiIsCardLengthValid(card) && tuiIsCardNumberValid(card); |
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,4 +1,2 @@ | ||
export * from './currency'; | ||
export * from './currency-code'; | ||
export * from './money-sign'; | ||
export * from './payment-system'; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,3 +1,4 @@ | ||
export * from './code-length'; | ||
export * from './currency-variants'; | ||
export * from './money-sign'; | ||
export * from './payment-system'; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export type TuiPaymentSystem = 'visa' | 'electron' | 'mastercard' | 'maestro' | 'mir'; |
Oops, something went wrong.