diff --git a/projects/cdk/schematics/ng-update/steps/show-warnings.ts b/projects/cdk/schematics/ng-update/steps/show-warnings.ts index 1d6030756fc24..b9f5c9637b730 100644 --- a/projects/cdk/schematics/ng-update/steps/show-warnings.ts +++ b/projects/cdk/schematics/ng-update/steps/show-warnings.ts @@ -37,7 +37,7 @@ function showWarning( */ referencesMeta.forEach(({sourceFile, filePath, startLinePos}) => { logger.warn(`[WARNING] in ${filePath}: ${message}`); - sourceFile.insertText(startLinePos, `// TODO: (Taiga UI migration) ${message}\n`); + sourceFile.insertText(startLinePos, `// Note: (Taiga UI migration) ${message}\n`); }); } diff --git a/projects/cdk/schematics/ng-update/v3/steps/migrate-sliders/migrate-input-range.ts b/projects/cdk/schematics/ng-update/v3/steps/migrate-sliders/migrate-input-range.ts index a5dd3281f09b7..3488392757d4b 100644 --- a/projects/cdk/schematics/ng-update/v3/steps/migrate-sliders/migrate-input-range.ts +++ b/projects/cdk/schematics/ng-update/v3/steps/migrate-sliders/migrate-input-range.ts @@ -120,8 +120,8 @@ export function migrateInputRange( !options['skip-logs'] && progressLog(componentPath); addMinMaxLabelMethod(componentPath, MIN_LABELS_MIGRATION_METHOD_NAME, [ 'const currentValue = context.$implicit;', - 'const minValue = 0; // TODO: (Taiga UI migration) replace with the MIN value of the input-range', - 'const minLabelText = "Min"; // TODO: (Taiga UI migration) replace with the required label', + 'const minValue = 0; // Note: (Taiga UI migration) replace with the MIN value of the input-range', + 'const minLabelText = "Min"; // Note: (Taiga UI migration) replace with the required label', 'if (currentValue === minValue) return minLabelText;', 'return String(currentValue);', ]); @@ -136,8 +136,8 @@ export function migrateInputRange( !options['skip-logs'] && progressLog(componentPath); addMinMaxLabelMethod(componentPath, MAX_LABELS_MIGRATION_METHOD_NAME, [ 'const currentValue = context.$implicit;', - 'const maxValue = 100; // TODO: (Taiga UI migration) replace with the MAX value of the input', - 'const maxLabelText = "Max"; // TODO: (Taiga UI migration) replace with the required label', + 'const maxValue = 100; // Note: (Taiga UI migration) replace with the MAX value of the input', + 'const maxLabelText = "Max"; // Note: (Taiga UI migration) replace with the required label', 'if (currentValue === maxValue) return maxLabelText;', 'return String(currentValue);', ]); diff --git a/projects/cdk/schematics/ng-update/v3/steps/migrate-sliders/migrate-input-slider.ts b/projects/cdk/schematics/ng-update/v3/steps/migrate-sliders/migrate-input-slider.ts index 2e61775b7f3c8..70d41dd2cff43 100644 --- a/projects/cdk/schematics/ng-update/v3/steps/migrate-sliders/migrate-input-slider.ts +++ b/projects/cdk/schematics/ng-update/v3/steps/migrate-sliders/migrate-input-slider.ts @@ -69,10 +69,10 @@ function addMinMaxLabelMethod(componentPath: string): void { parameters: [{name: 'context', type: 'TuiContextWithImplicit'}], statements: [ 'const currentValue = context.$implicit;', - 'const maxValue = 100; // TODO: (Taiga UI migration) replace with the MAX value of the input', - 'const maxLabelText = "Max"; // TODO: (Taiga UI migration) replace with the required label', - 'const minValue = 0; // TODO: (Taiga UI migration) replace with the MIN value of the input', - 'const minLabelText = "Min"; // TODO: (Taiga UI migration) replace with the required label', + 'const maxValue = 100; // Note: (Taiga UI migration) replace with the MAX value of the input', + 'const maxLabelText = "Max"; // Note: (Taiga UI migration) replace with the required label', + 'const minValue = 0; // Note: (Taiga UI migration) replace with the MIN value of the input', + 'const minLabelText = "Min"; // Note: (Taiga UI migration) replace with the required label', 'if (currentValue === maxValue) return maxLabelText;', 'if (currentValue === minValue) return minLabelText;', 'return String(currentValue);', diff --git a/projects/cdk/schematics/ng-update/v3/steps/replace-styles.ts b/projects/cdk/schematics/ng-update/v3/steps/replace-styles.ts index 6898802cbbf17..d013c35ccc6f0 100644 --- a/projects/cdk/schematics/ng-update/v3/steps/replace-styles.ts +++ b/projects/cdk/schematics/ng-update/v3/steps/replace-styles.ts @@ -8,7 +8,7 @@ export const TUI_WARNING_NORMALIZE = ` // If you're looking to use reset styles or you can write your own reset.css`; export const TUI_WARNING_WRAPPER_MIXINS = - '// TODO: (Taiga UI migration): use mixins to customize tuiWrapper. See https://taiga-ui.dev/wrapper'; + '// Note: (Taiga UI migration): use mixins to customize tuiWrapper. See https://taiga-ui.dev/wrapper'; export function replaceStyles(): void { getActiveProject() diff --git a/projects/cdk/schematics/ng-update/v3/tests/schematic-date-time.spec.ts b/projects/cdk/schematics/ng-update/v3/tests/schematic-date-time.spec.ts index 72ad87fefb117..1b62e4ded0e30 100644 --- a/projects/cdk/schematics/ng-update/v3/tests/schematic-date-time.spec.ts +++ b/projects/cdk/schematics/ng-update/v3/tests/schematic-date-time.spec.ts @@ -78,10 +78,10 @@ export class AppComponent { this.other.getFormattedDay("DMY", "."); -// TODO: (Taiga UI migration) getDayFromMonthRowCol has been removed in 3.0. If you need this utils check out this pipe https://github.com/taiga-family/taiga-ui/tree/main/projects/core/pipes/calendar-sheet +// Note: (Taiga UI migration) getDayFromMonthRowCol has been removed in 3.0. If you need this utils check out this pipe https://github.com/taiga-family/taiga-ui/tree/main/projects/core/pipes/calendar-sheet this.other.getDayFromMonthRowCol(1, 2, 3); -// TODO: (Taiga UI migration) formattedMonth has been removed in 3.0. Please use TUI_MONTH_FORMATTER from @taiga-ui/kit +// Note: (Taiga UI migration) formattedMonth has been removed in 3.0. Please use TUI_MONTH_FORMATTER from @taiga-ui/kit return this.value.formattedMonth; } diff --git a/projects/cdk/schematics/ng-update/v3/tests/schematic-migrate-sliders.spec.ts b/projects/cdk/schematics/ng-update/v3/tests/schematic-migrate-sliders.spec.ts index f5615dcc71320..2c5e4819e317f 100644 --- a/projects/cdk/schematics/ng-update/v3/tests/schematic-migrate-sliders.spec.ts +++ b/projects/cdk/schematics/ng-update/v3/tests/schematic-migrate-sliders.spec.ts @@ -80,10 +80,10 @@ const FILE_HTML_CHILD_COMPONENT_AFTER = `import { TuiContextWithImplicit } from export class FileHtmlChildComponent { tuiMigrationMinMaxLabel(context: TuiContextWithImplicit): string { const currentValue = context.$implicit; - const maxValue = 100; // TODO: (Taiga UI migration) replace with the MAX value of the input - const maxLabelText = "Max"; // TODO: (Taiga UI migration) replace with the required label - const minValue = 0; // TODO: (Taiga UI migration) replace with the MIN value of the input - const minLabelText = "Min"; // TODO: (Taiga UI migration) replace with the required label + const maxValue = 100; // Note: (Taiga UI migration) replace with the MAX value of the input + const maxLabelText = "Max"; // Note: (Taiga UI migration) replace with the required label + const minValue = 0; // Note: (Taiga UI migration) replace with the MIN value of the input + const minLabelText = "Min"; // Note: (Taiga UI migration) replace with the required label if (currentValue === maxValue) return maxLabelText; if (currentValue === minValue) return minLabelText; return String(currentValue); @@ -91,16 +91,16 @@ export class FileHtmlChildComponent { tuiMigrationInputRangeMinLabel(context: TuiContextWithImplicit): string { const currentValue = context.$implicit; - const minValue = 0; // TODO: (Taiga UI migration) replace with the MIN value of the input-range - const minLabelText = "Min"; // TODO: (Taiga UI migration) replace with the required label + const minValue = 0; // Note: (Taiga UI migration) replace with the MIN value of the input-range + const minLabelText = "Min"; // Note: (Taiga UI migration) replace with the required label if (currentValue === minValue) return minLabelText; return String(currentValue); } tuiMigrationInputRangeMaxLabel(context: TuiContextWithImplicit): string { const currentValue = context.$implicit; - const maxValue = 100; // TODO: (Taiga UI migration) replace with the MAX value of the input - const maxLabelText = "Max"; // TODO: (Taiga UI migration) replace with the required label + const maxValue = 100; // Note: (Taiga UI migration) replace with the MAX value of the input + const maxLabelText = "Max"; // Note: (Taiga UI migration) replace with the required label if (currentValue === maxValue) return maxLabelText; return String(currentValue); } @@ -302,10 +302,10 @@ export class InlineHtmlChildComponent { tuiMigrationMinMaxLabel(context: TuiContextWithImplicit): string { const currentValue = context.$implicit; - const maxValue = 100; // TODO: (Taiga UI migration) replace with the MAX value of the input - const maxLabelText = "Max"; // TODO: (Taiga UI migration) replace with the required label - const minValue = 0; // TODO: (Taiga UI migration) replace with the MIN value of the input - const minLabelText = "Min"; // TODO: (Taiga UI migration) replace with the required label + const maxValue = 100; // Note: (Taiga UI migration) replace with the MAX value of the input + const maxLabelText = "Max"; // Note: (Taiga UI migration) replace with the required label + const minValue = 0; // Note: (Taiga UI migration) replace with the MIN value of the input + const minLabelText = "Min"; // Note: (Taiga UI migration) replace with the required label if (currentValue === maxValue) return maxLabelText; if (currentValue === minValue) return minLabelText; return String(currentValue); diff --git a/projects/cdk/schematics/ng-update/v3/tests/schematic-miscellaneous.spec.ts b/projects/cdk/schematics/ng-update/v3/tests/schematic-miscellaneous.spec.ts index b9bb0d3eaa57c..76bd276e43890 100644 --- a/projects/cdk/schematics/ng-update/v3/tests/schematic-miscellaneous.spec.ts +++ b/projects/cdk/schematics/ng-update/v3/tests/schematic-miscellaneous.spec.ts @@ -56,7 +56,7 @@ export class AppComponent { } method2() { -// TODO: (Taiga UI migration) addStyle method has been removed. Use components approach +// Note: (Taiga UI migration) addStyle method has been removed. Use components approach this.directiveStyles.addStyle(styles, 'style'); } }`; diff --git a/projects/cdk/schematics/ng-update/v3/tests/schematic-warnings.spec.ts b/projects/cdk/schematics/ng-update/v3/tests/schematic-warnings.spec.ts index 66b2b8d90976b..84ef3cc1494d5 100644 --- a/projects/cdk/schematics/ng-update/v3/tests/schematic-warnings.spec.ts +++ b/projects/cdk/schematics/ng-update/v3/tests/schematic-warnings.spec.ts @@ -43,23 +43,23 @@ export class AppComponent { `; const AFTER = ` -// TODO: (Taiga UI migration) TUI_MOBILE_AWARE has been deleted in 3.0, please use TuiMobileTabsDirective from @taiga-ui/addon-mobile -// TODO: (Taiga UI migration) Use DI-token TUI_COUNTRIES_MASKS to get phone mask by country iso code +// Note: (Taiga UI migration) TUI_MOBILE_AWARE has been deleted in 3.0, please use TuiMobileTabsDirective from @taiga-ui/addon-mobile +// Note: (Taiga UI migration) Use DI-token TUI_COUNTRIES_MASKS to get phone mask by country iso code import {TUI_MOBILE_AWARE, COUNTRIES_MASKS} from '@taiga-ui/kit'; import { DumbEntity, DUMB_CONSTANT, awesomeFunction, TUI_LAST_DAY, -// TODO: (Taiga UI migration) TUI_DATE_FILLER has been deleted in 3.0, please use TUI_DATE_FORMAT + TUI_DATE_SEPARATOR from @taiga-ui/cdk. Read more: https://taiga-ui.dev/components/input-date +// Note: (Taiga UI migration) TUI_DATE_FILLER has been deleted in 3.0, please use TUI_DATE_FORMAT + TUI_DATE_SEPARATOR from @taiga-ui/cdk. Read more: https://taiga-ui.dev/components/input-date TUI_DATE_FILLER, MEGA_CONSTANT, anotherAwesomeFunction MagicClass, } from '@taiga-ui/cdk'; -// TODO: (Taiga UI migration) TUI_DATE_RANGE_FILLER has been deleted in 3.0, please use TUI_DATE_FORMAT + TUI_DATE_SEPARATOR from @taiga-ui/cdk. Read more: https://taiga-ui.dev/components/input-date-range +// Note: (Taiga UI migration) TUI_DATE_RANGE_FILLER has been deleted in 3.0, please use TUI_DATE_FORMAT + TUI_DATE_SEPARATOR from @taiga-ui/cdk. Read more: https://taiga-ui.dev/components/input-date-range import {DumbEntity, TUI_DATE_RANGE_FILLER, MEGA_CONSTANT, MagicClass} from '@taiga-ui/cdk'; -// TODO: (Taiga UI migration) Use DI-token TUI_COUNTRIES_MASKS to get phone mask by country iso code. Use DI-token TUI_COUNTRIES to get localized country name by its iso code +// Note: (Taiga UI migration) Use DI-token TUI_COUNTRIES_MASKS to get phone mask by country iso code. Use DI-token TUI_COUNTRIES to get localized country name by its iso code import { COUNTRIES } from '@taiga-ui/kit'; const lol = TUI_DATE_FILLER;