Make components standalone
This commit is contained in:
+1
-6
@@ -1,6 +1 @@
|
|||||||
/*
|
|
||||||
.p-datatable-flex-scrollable .p-datatable-wrapper {
|
|
||||||
flex-basis: auto !important;
|
|
||||||
height: 0 !important;
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|||||||
@@ -7,7 +7,6 @@ import {Book} from '../../../model/book.model';
|
|||||||
import {SortOption} from '../../../model/sort.model';
|
import {SortOption} from '../../../model/sort.model';
|
||||||
import {MetadataDialogService} from '../../../../metadata/service/metadata-dialog.service';
|
import {MetadataDialogService} from '../../../../metadata/service/metadata-dialog.service';
|
||||||
import {UrlHelperService} from '../../../../utilities/service/url-helper.service';
|
import {UrlHelperService} from '../../../../utilities/service/url-helper.service';
|
||||||
import {BookService} from '../../../service/book.service';
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-book-table',
|
selector: 'app-book-table',
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<div class="search-container">
|
<div class="ml-5 relative">
|
||||||
<div class="search-input-wrapper">
|
<div class="w-[400px] relative">
|
||||||
<i class="pi pi-search search-icon"></i>
|
<i class="pi pi-search search-icon"></i>
|
||||||
<input
|
<input
|
||||||
style="width: 400px;"
|
style="width: 400px;"
|
||||||
|
|||||||
@@ -1,13 +1,3 @@
|
|||||||
.search-container {
|
|
||||||
margin-left: 20px;
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
|
|
||||||
.search-input-wrapper {
|
|
||||||
position: relative;
|
|
||||||
width: 400px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.search-icon {
|
.search-icon {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ import {MessageService} from 'primeng/api';
|
|||||||
FormsModule
|
FormsModule
|
||||||
],
|
],
|
||||||
templateUrl: './shelf-edit-dialog.component.html',
|
templateUrl: './shelf-edit-dialog.component.html',
|
||||||
|
standalone: true,
|
||||||
styleUrl: './shelf-edit-dialog.component.scss'
|
styleUrl: './shelf-edit-dialog.component.scss'
|
||||||
})
|
})
|
||||||
export class ShelfEditDialogComponent implements OnInit{
|
export class ShelfEditDialogComponent implements OnInit{
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ import {MetadataRefreshOptions} from '../../../metadata/model/request/metadata-r
|
|||||||
selector: 'app-settings',
|
selector: 'app-settings',
|
||||||
templateUrl: './settings.component.html',
|
templateUrl: './settings.component.html',
|
||||||
imports: [Select, FormsModule, NgForOf, ToggleSwitch, RadioButton, Divider, Button, Tooltip, MetadataAdvancedFetchOptionsComponent],
|
imports: [Select, FormsModule, NgForOf, ToggleSwitch, RadioButton, Divider, Button, Tooltip, MetadataAdvancedFetchOptionsComponent],
|
||||||
|
standalone: true,
|
||||||
styleUrls: ['./settings.component.scss']
|
styleUrls: ['./settings.component.scss']
|
||||||
})
|
})
|
||||||
export class SettingsComponent implements OnInit {
|
export class SettingsComponent implements OnInit {
|
||||||
|
|||||||
+1
@@ -16,6 +16,7 @@ import {Book} from '../../../book/model/book.model';
|
|||||||
BookCardComponent,
|
BookCardComponent,
|
||||||
ProgressSpinnerModule
|
ProgressSpinnerModule
|
||||||
],
|
],
|
||||||
|
standalone: true
|
||||||
})
|
})
|
||||||
export class DashboardScrollerComponent implements OnInit {
|
export class DashboardScrollerComponent implements OnInit {
|
||||||
|
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ import {Divider} from 'primeng/divider';
|
|||||||
Divider
|
Divider
|
||||||
],
|
],
|
||||||
providers: [DialogService],
|
providers: [DialogService],
|
||||||
|
standalone: true
|
||||||
})
|
})
|
||||||
export class MainDashboardComponent implements OnInit {
|
export class MainDashboardComponent implements OnInit {
|
||||||
ref: DynamicDialogRef | undefined;
|
ref: DynamicDialogRef | undefined;
|
||||||
|
|||||||
+2
-2
@@ -4,9 +4,9 @@
|
|||||||
left: 0;
|
left: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
background: rgba(0, 0, 0, 0.5); /* Dimmed background */
|
background: rgba(0, 0, 0, 0.5);
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
z-index: 9999; /* Ensure it stays on top of all content */
|
z-index: 9999;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ import {NgIf} from '@angular/common';
|
|||||||
ProgressSpinner,
|
ProgressSpinner,
|
||||||
NgIf
|
NgIf
|
||||||
],
|
],
|
||||||
|
standalone: true,
|
||||||
styleUrls: ['./loading-overlay.component.scss']
|
styleUrls: ['./loading-overlay.component.scss']
|
||||||
})
|
})
|
||||||
export class LoadingOverlayComponent implements OnInit, OnDestroy {
|
export class LoadingOverlayComponent implements OnInit, OnDestroy {
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ import {API_CONFIG} from '../../../config/api-config';
|
|||||||
Select
|
Select
|
||||||
],
|
],
|
||||||
templateUrl: './book-uploader.component.html',
|
templateUrl: './book-uploader.component.html',
|
||||||
|
standalone: true,
|
||||||
styleUrl: './book-uploader.component.scss'
|
styleUrl: './book-uploader.component.scss'
|
||||||
})
|
})
|
||||||
export class BookUploaderComponent {
|
export class BookUploaderComponent {
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ import {FormsModule} from '@angular/forms';
|
|||||||
NgForOf,
|
NgForOf,
|
||||||
FormsModule
|
FormsModule
|
||||||
],
|
],
|
||||||
|
standalone: true
|
||||||
})
|
})
|
||||||
export class IconPickerComponent {
|
export class IconPickerComponent {
|
||||||
iconCategories: string[] = [
|
iconCategories: string[] = [
|
||||||
|
|||||||
Reference in New Issue
Block a user