Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* RERO angular core
* Copyright (C) 2023 RERO
* Copyright (C) 2023-2026 RERO
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
Expand Down Expand Up @@ -30,9 +30,9 @@ export abstract class AbstractCanDeactivateComponent {
abstract canDeactivate: boolean;

@HostListener('window:beforeunload', ['$event'])
unloadNotification($event: Event): void {
unloadNotification($event: BeforeUnloadEvent): void {
if (!this.canDeactivate) {
$event.returnValue = true;
$event.preventDefault();
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { TranslatePipe, TranslateService } from '@ngx-translate/core';
import { MenuItem, MenuItemCommandEvent } from 'primeng/api';
import { Button } from 'primeng/button';
import { Menu } from 'primeng/menu';
import { SortOption } from '../../../../model/record-search.iterface';
import { SortOption } from '../../../../model/record-search.interface';
import { RecordSearchStore } from '../../store/record-search.store';

@Component({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import { tap } from 'rxjs/operators';
import { ErrorComponent, SearchInputComponent, UpperCaseFirstPipe } from '../../../../core';
import { Aggregations, SearchField, SearchFilter, SearchFilterSection } from '../../../../model';
import { ActionStatus, DEFAULT_ACTION_STATUS } from '../../../../model/action-status.interface';
import { ExportFormat } from '../../../model/record-search.iterface';
import { ExportFormat } from '../../../model/record-search.interface';
import { ApiService } from '../../../service/api/api.service';
import { RecordUiService } from '../../../service/record-ui/record-ui.service';
import { RecordService } from '../../../service/record/record.service';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { patchState, signalStoreFeature, type, withComputed, withMethods, withSt
import { Observable, of, switchMap } from 'rxjs';
import { first } from 'rxjs/operators';
import { ActionStatus, RecordData } from '../../../../../model';
import { RecordType } from '../../../../model/record-search.iterface';
import { RecordType } from '../../../../model/record-search.interface';
import { shallowEqual } from '../../../../record-search-utils';
import { DefaultSearchResultComponent } from '../../record-search/record-search-result/default-search-result/default-search-result.component';

Expand Down
2 changes: 1 addition & 1 deletion projects/rero/ng-core/src/lib/record/model/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

export * from './record-search.iterface';
export * from './record-search.interface';
export * from './result-item.interface';
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export interface ExportFormat {
endpoint: string;
disableMaxRestResultsSize: boolean;
}

export interface RecordType<TMetadata = JsonObject> {
key: string;
label: string;
Expand Down