RED-4590 - sonar fixes
This commit is contained in:
parent
477e8ea5ae
commit
d3e45f5c98
@ -5,7 +5,6 @@ import { HelpModeService } from '../index';
|
|||||||
@Component({
|
@Component({
|
||||||
selector: 'iqser-help-button',
|
selector: 'iqser-help-button',
|
||||||
templateUrl: './help-button.component.html',
|
templateUrl: './help-button.component.html',
|
||||||
styleUrls: ['./help-button.component.scss'],
|
|
||||||
})
|
})
|
||||||
export class HelpButtonComponent implements OnInit, OnDestroy {
|
export class HelpButtonComponent implements OnInit, OnDestroy {
|
||||||
@Input() helpButtonKey?: string;
|
@Input() helpButtonKey?: string;
|
||||||
|
|||||||
@ -55,7 +55,7 @@ export class PageHeaderComponent<T extends IListable> {
|
|||||||
this.searchService.reset();
|
this.searchService.reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
trackByLabel<K extends { label?: string }>(index: number, item: K): string | undefined {
|
trackByLabel<K extends { label?: string }>(_index: number, item: K): string | undefined {
|
||||||
return item.label;
|
return item.label;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -117,7 +117,7 @@ export class ListingService<E extends IListable> {
|
|||||||
if (currentEntityIdx === -1) {
|
if (currentEntityIdx === -1) {
|
||||||
return this.setSelected([...this.selected, entity]);
|
return this.setSelected([...this.selected, entity]);
|
||||||
}
|
}
|
||||||
this.setSelected(this.selected.filter((el, idx) => idx !== currentEntityIdx));
|
this.setSelected(this.selected.filter((_el, idx) => idx !== currentEntityIdx));
|
||||||
}
|
}
|
||||||
|
|
||||||
deselect(entities: E | E[]) {
|
deselect(entities: E | E[]) {
|
||||||
|
|||||||
@ -24,7 +24,6 @@ const SCROLLBAR_WIDTH = 11;
|
|||||||
@Component({
|
@Component({
|
||||||
selector: 'iqser-table [tableColumnConfigs] [itemSize]',
|
selector: 'iqser-table [tableColumnConfigs] [itemSize]',
|
||||||
templateUrl: './table.component.html',
|
templateUrl: './table.component.html',
|
||||||
styleUrls: ['./table.component.scss'],
|
|
||||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||||
})
|
})
|
||||||
export class TableComponent<T extends IListable> extends AutoUnsubscribe implements OnChanges {
|
export class TableComponent<T extends IListable> extends AutoUnsubscribe implements OnChanges {
|
||||||
|
|||||||
@ -4,7 +4,6 @@ import { LoadingService } from '../loading.service';
|
|||||||
@Component({
|
@Component({
|
||||||
selector: 'iqser-full-page-loading-indicator',
|
selector: 'iqser-full-page-loading-indicator',
|
||||||
templateUrl: './full-page-loading-indicator.component.html',
|
templateUrl: './full-page-loading-indicator.component.html',
|
||||||
styleUrls: ['./full-page-loading-indicator.component.scss'],
|
|
||||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||||
})
|
})
|
||||||
export class FullPageLoadingIndicatorComponent {
|
export class FullPageLoadingIndicatorComponent {
|
||||||
|
|||||||
@ -4,7 +4,6 @@ import { BehaviorSubject } from 'rxjs';
|
|||||||
@Component({
|
@Component({
|
||||||
selector: 'iqser-hidden-action',
|
selector: 'iqser-hidden-action',
|
||||||
templateUrl: './hidden-action.component.html',
|
templateUrl: './hidden-action.component.html',
|
||||||
styleUrls: ['./hidden-action.component.scss'],
|
|
||||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||||
})
|
})
|
||||||
export class HiddenActionComponent {
|
export class HiddenActionComponent {
|
||||||
|
|||||||
@ -4,7 +4,6 @@ import { Required } from '../../utils';
|
|||||||
@Component({
|
@Component({
|
||||||
selector: 'iqser-side-nav',
|
selector: 'iqser-side-nav',
|
||||||
templateUrl: './side-nav.component.html',
|
templateUrl: './side-nav.component.html',
|
||||||
styleUrls: ['./side-nav.component.scss'],
|
|
||||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||||
})
|
})
|
||||||
export class SideNavComponent {
|
export class SideNavComponent {
|
||||||
|
|||||||
@ -4,7 +4,6 @@ import { ToasterActions, ToasterOptions } from '../../services';
|
|||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
templateUrl: './toast.component.html',
|
templateUrl: './toast.component.html',
|
||||||
styleUrls: ['./toast.component.scss'],
|
|
||||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||||
})
|
})
|
||||||
export class ToastComponent extends Toast {
|
export class ToastComponent extends Toast {
|
||||||
|
|||||||
@ -34,7 +34,7 @@ export function toNumber(str: string): number {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function trackByFactory<T extends ITrackable>() {
|
export function trackByFactory<T extends ITrackable>() {
|
||||||
return (index: number, item: T): string => item.id;
|
return (_index: number, item: T): string => item.id;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function hasFormChanged(form: UntypedFormGroup, initialFormValue: Record<string, string>): boolean {
|
export function hasFormChanged(form: UntypedFormGroup, initialFormValue: Record<string, string>): boolean {
|
||||||
@ -107,7 +107,7 @@ export function deepDiffObj(base: Record<string, unknown>, object: Record<string
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
// map removed fields to undefined
|
// map removed fields to undefined
|
||||||
forOwn(base, (value: any, key: string) => {
|
forOwn(base, (_value: any, key: string) => {
|
||||||
if (!has(object, key)) {
|
if (!has(object, key)) {
|
||||||
res[key] = undefined;
|
res[key] = undefined;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user