try fix v4
This commit is contained in:
parent
4e6cc26014
commit
5eba24b0da
@ -1,15 +1,23 @@
|
|||||||
{
|
{
|
||||||
"extends": ["../../.eslintrc.json"],
|
"extends": [
|
||||||
|
"../../.eslintrc.json"
|
||||||
|
],
|
||||||
"env": {
|
"env": {
|
||||||
"browser": true,
|
"browser": true,
|
||||||
"node": true
|
"node": true
|
||||||
},
|
},
|
||||||
"ignorePatterns": ["!**/*"],
|
"ignorePatterns": [
|
||||||
|
"!**/*"
|
||||||
|
],
|
||||||
"overrides": [
|
"overrides": [
|
||||||
{
|
{
|
||||||
"files": ["**/*.ts"],
|
"files": [
|
||||||
|
"**/*.ts"
|
||||||
|
],
|
||||||
"parserOptions": {
|
"parserOptions": {
|
||||||
"project": ["tsconfig.json"]
|
"project": [
|
||||||
|
"tsconfig.json"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"rules": {
|
"rules": {
|
||||||
"@angular-eslint/directive-selector": [
|
"@angular-eslint/directive-selector": [
|
||||||
@ -41,25 +49,39 @@
|
|||||||
"error",
|
"error",
|
||||||
{
|
{
|
||||||
"selector": "memberLike",
|
"selector": "memberLike",
|
||||||
"modifiers": ["private"],
|
"modifiers": [
|
||||||
"format": ["camelCase"],
|
"private"
|
||||||
|
],
|
||||||
|
"format": [
|
||||||
|
"camelCase"
|
||||||
|
],
|
||||||
"leadingUnderscore": "allow"
|
"leadingUnderscore": "allow"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"selector": "memberLike",
|
"selector": "memberLike",
|
||||||
"modifiers": ["protected"],
|
"modifiers": [
|
||||||
"format": ["camelCase"],
|
"protected"
|
||||||
|
],
|
||||||
|
"format": [
|
||||||
|
"camelCase"
|
||||||
|
],
|
||||||
"leadingUnderscore": "allow"
|
"leadingUnderscore": "allow"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"selector": "memberLike",
|
"selector": "memberLike",
|
||||||
"modifiers": ["private"],
|
"modifiers": [
|
||||||
"format": ["UPPER_CASE", "camelCase"],
|
"private"
|
||||||
|
],
|
||||||
|
"format": [
|
||||||
|
"UPPER_CASE",
|
||||||
|
"camelCase"
|
||||||
|
],
|
||||||
"leadingUnderscore": "allow"
|
"leadingUnderscore": "allow"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"no-underscore-dangle": "off",
|
"no-underscore-dangle": "off",
|
||||||
"no-param-reassign": "error",
|
"no-param-reassign": "error",
|
||||||
|
"no-dupe-class-members": "off",
|
||||||
"consistent-return": "off",
|
"consistent-return": "off",
|
||||||
"@typescript-eslint/restrict-template-expressions": "off",
|
"@typescript-eslint/restrict-template-expressions": "off",
|
||||||
"@typescript-eslint/lines-between-class-members": "off"
|
"@typescript-eslint/lines-between-class-members": "off"
|
||||||
|
|||||||
@ -17,11 +17,12 @@ export class ConfirmationDialogService extends DialogService<DialogType> {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
constructor(protected readonly _dialog: MatDialog) {
|
constructor(protected override readonly _dialog: MatDialog) {
|
||||||
super(_dialog);
|
super(_dialog);
|
||||||
}
|
}
|
||||||
|
|
||||||
openDialog(data?): MatDialogRef<unknown> {
|
// @ts-ignore
|
||||||
|
override openDialog(data?: { disableConfirm: boolean; [key: string]: unknown }): MatDialogRef<unknown> {
|
||||||
return super.openDialog(
|
return super.openDialog(
|
||||||
'confirm',
|
'confirm',
|
||||||
null,
|
null,
|
||||||
|
|||||||
@ -33,7 +33,7 @@ export class EditableInputComponent implements OnChanges {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnChanges(changes: SimpleChanges): void {
|
ngOnChanges(changes: SimpleChanges): void {
|
||||||
if (changes.value) {
|
if (changes['value']) {
|
||||||
this.editing = false;
|
this.editing = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -26,9 +26,9 @@ export class EntitiesService<E extends IListable, I = E> extends GenericService<
|
|||||||
private readonly _all$ = new BehaviorSubject<E[]>([]);
|
private readonly _all$ = new BehaviorSubject<E[]>([]);
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
protected readonly _injector: Injector,
|
protected override readonly _injector: Injector,
|
||||||
@Optional() @Inject(ENTITY_CLASS) private readonly _entityClass: new (entityInterface: I, ...args: unknown[]) => E,
|
@Optional() @Inject(ENTITY_CLASS) private readonly _entityClass: new (entityInterface: I, ...args: unknown[]) => E,
|
||||||
@Optional() @Inject(ENTITY_PATH) protected readonly _defaultModelPath = '',
|
@Optional() @Inject(ENTITY_PATH) protected override readonly _defaultModelPath = '',
|
||||||
) {
|
) {
|
||||||
super(_injector, _defaultModelPath);
|
super(_injector, _defaultModelPath);
|
||||||
this.all$ = this._all$.asObservable().pipe(shareDistinctLast());
|
this.all$ = this._all$.asObservable().pipe(shareDistinctLast());
|
||||||
|
|||||||
@ -66,7 +66,7 @@ export class TableComponent<T extends IListable> extends AutoUnsubscribe impleme
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnChanges(changes: SimpleChanges): void {
|
ngOnChanges(changes: SimpleChanges): void {
|
||||||
if (changes.tableColumnConfigs) {
|
if (changes['tableColumnConfigs']) {
|
||||||
this._setStyles();
|
this._setStyles();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -35,7 +35,7 @@ export class ConfirmationDialogInput {
|
|||||||
disableConfirm?: boolean;
|
disableConfirm?: boolean;
|
||||||
denyText?: string;
|
denyText?: string;
|
||||||
translateParams?: Record<string, unknown>;
|
translateParams?: Record<string, unknown>;
|
||||||
checkboxes: CheckBox[];
|
checkboxes?: CheckBox[];
|
||||||
toastMessage?: string;
|
toastMessage?: string;
|
||||||
|
|
||||||
constructor(options?: ConfirmationDialogInput) {
|
constructor(options?: ConfirmationDialogInput) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user