Skip to content

Commit 69904a0

Browse files
committed
fix(material/schematics): add missing legacy TS symbol transforms
1 parent 94c773d commit 69904a0

File tree

2 files changed

+30
-4
lines changed

2 files changed

+30
-4
lines changed

src/material/schematics/ng-update/migrations/legacy-components-v15/constants.ts

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,39 @@ export const MDC_IMPORT_CHANGES = COMPONENTS.map(component => ({
4242
}));
4343

4444
export const CUSTOM_TS_SYMBOL_RENAMINGS = [
45-
{old: 'ProgressAnimationEnd', new: 'LegacyProgressAnimationEnd'},
46-
{old: 'ProgressBarMode', new: 'LegacyProgressBarMode'},
47-
{old: 'ProgressSpinnerMode', new: 'LegacyProgressSpinnerMode'},
45+
{old: 'getMatAutocompleteMissingPanelError', new: 'getMatLegacyAutocompleteMissingPanelError'},
46+
{old: 'TransitionCheckState', new: 'LegacyTransitionCheckState'},
47+
{old: 'MatTestDialogOpener', new: 'MatTestLegacyDialogOpener'},
4848
{old: 'AutoFocusTarget', new: 'LegacyAutoFocusTarget'},
4949
{old: 'DialogRole', new: 'LegacyDialogRole'},
5050
{old: 'DialogPosition', new: 'LegacyDialogPosition'},
5151
{old: '_closeDialogVia', new: '_closeLegacyDialogVia'},
52-
{old: 'MatTestDialogOpener', new: 'MatTestLegacyDialogOpener'},
52+
{old: 'FormFieldControlHarness', new: 'LegacyFormFieldControlHarness'},
53+
{old: 'LegacyFloatLabelType', new: 'LegacyFloatLabelType'},
54+
{old: 'getMatFormFieldDuplicatedHintError', new: 'getMatLegacyFormFieldDuplicatedHintError'},
55+
{old: 'getMatFormFieldMissingControlError', new: 'getMatLegacyFormFieldMissingControlError'},
56+
{
57+
old: 'getMatFormFieldPlaceholderConflictError',
58+
new: 'getMatLegacyFormFieldPlaceholderConflictError',
59+
},
60+
{old: 'getMatInputUnsupportedTypeError', new: 'getMatLegacyInputUnsupportedTypeError'},
61+
{old: 'fadeInItems', new: 'fadeInLegacyItems'},
62+
{old: 'MenuPositionX', new: 'LegacyMenuPositionX'},
63+
{old: 'MenuPositionY', new: 'LegacyMenuPositionY'},
64+
{old: 'transformMenu', new: 'transformLegacyMenu'},
65+
{old: 'PageEvent', new: 'LegacyPageEvent'},
66+
{old: 'ProgressAnimationEnd', new: 'LegacyProgressAnimationEnd'},
67+
{old: 'ProgressBarMode', new: 'LegacyProgressBarMode'},
68+
{old: 'ProgressSpinnerMode', new: 'LegacyProgressSpinnerMode'},
5369
{old: 'SimpleSnackBar', new: 'LegacySimpleSnackBar'},
5470
{old: 'TextOnlySnackBar', new: 'LegacyTextOnlySnackBar'},
71+
{old: 'ScrollDirection', new: 'LegacyScrollDirection'},
72+
{old: 'TooltipComponent', new: 'LegacyTooltipComponent'},
73+
{old: 'getMatTooltipInvalidPositionError', new: 'getMatLegacyTooltipInvalidPositionError'},
74+
{old: 'TooltipPosition', new: 'LegacyTooltipPosition'},
75+
{old: 'TooltipTouchGestures', new: 'LegacyTooltipTouchGestures'},
76+
{old: 'TooltipVisibility', new: 'LegacyTooltipVisibility'},
77+
{old: 'SCROLL_THROTTLE_MS', new: 'LEGACY_SCROLL_THROTTLE_MS'},
5578
];
5679

5780
export const MIXINS = COMPONENTS.concat(['option', 'optgroup']).flatMap(component => [

src/material/schematics/ng-update/migrations/legacy-components-v15/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,9 @@ export class LegacyComponentsMigration extends Migration<null> {
201201
if (symbol.startsWith('_MAT_')) {
202202
return `_MAT_LEGACY_${symbol.slice('_MAT_'.length)}`;
203203
}
204+
if (symbol.endsWith('HarnessFilters')) {
205+
return `Legacy${symbol}`;
206+
}
204207
return;
205208
}
206209

0 commit comments

Comments
 (0)