Skip to content

Commit

Permalink
chore(platform): removed deprecated searchTableDensity input
Browse files Browse the repository at this point in the history
BREAKING CHANGE: removed input searchTableDensity from value help dialog
  • Loading branch information
g-cheishvili committed Aug 2, 2022
1 parent 31672a4 commit 1cf60a8
Showing 1 changed file with 1 addition and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {
ElementRef,
EventEmitter,
Input,
isDevMode,
OnChanges,
OnDestroy,
Optional,
Expand Down Expand Up @@ -158,11 +157,6 @@ export class PlatformValueHelpDialogComponent<T = any> implements OnChanges, OnD
@Input()
loading: boolean | undefined;

/** @deprecated use `contentDensity` instead */
/** The content density for which to render table. 'cozy' | 'compact' | 'condensed' */
@Input()
searchTableDensity: ContentDensity = ContentDensityEnum.COMPACT;

/** The content density for which to render value help dialog */
@Input()
contentDensity: ContentDensity = ContentDensityEnum.COMPACT;
Expand Down Expand Up @@ -366,15 +360,8 @@ export class PlatformValueHelpDialogComponent<T = any> implements OnChanges, OnD
}
}

if (changes.searchTableDensity || changes.contentDensity) {
if (changes.contentDensity) {
this._contentDensityManuallySet = true;

if (changes.searchTableDensity) {
this.contentDensity = this.searchTableDensity;
if (isDevMode()) {
console.warn('"searchTableDensity" is deprecated. Use "contentDensity" instead');
}
}
}
}

Expand Down

0 comments on commit 1cf60a8

Please sign in to comment.