Make remaining components standalone
This commit is contained in:
@@ -50,11 +50,7 @@ import {Select} from 'primeng/select';
|
|||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [
|
declarations: [
|
||||||
AppComponent,
|
AppComponent
|
||||||
DirectoryPickerComponent,
|
|
||||||
LibraryCreatorComponent,
|
|
||||||
ShelfAssignerComponent,
|
|
||||||
BookBrowserComponent
|
|
||||||
],
|
],
|
||||||
imports: [
|
imports: [
|
||||||
BrowserModule,
|
BrowserModule,
|
||||||
|
|||||||
@@ -20,6 +20,16 @@ import {BookTableComponent} from './book-table/book-table.component';
|
|||||||
import {animate, state, style, transition, trigger} from '@angular/animations';
|
import {animate, state, style, transition, trigger} from '@angular/animations';
|
||||||
import {MetadataFetchOptionsComponent} from '../../../metadata/metadata-options-dialog/metadata-fetch-options/metadata-fetch-options.component';
|
import {MetadataFetchOptionsComponent} from '../../../metadata/metadata-options-dialog/metadata-fetch-options/metadata-fetch-options.component';
|
||||||
import {MetadataRefreshType} from '../../../metadata/model/request/metadata-refresh-type.enum';
|
import {MetadataRefreshType} from '../../../metadata/model/request/metadata-refresh-type.enum';
|
||||||
|
import {Button} from 'primeng/button';
|
||||||
|
import {AsyncPipe, NgForOf, NgIf} from '@angular/common';
|
||||||
|
import {VirtualScrollerModule} from '@iharbeck/ngx-virtual-scroller';
|
||||||
|
import {BookCardComponent} from './book-card/book-card.component';
|
||||||
|
import {ProgressSpinner} from 'primeng/progressspinner';
|
||||||
|
import {Select} from 'primeng/select';
|
||||||
|
import {RadioButton} from 'primeng/radiobutton';
|
||||||
|
import {Menu} from 'primeng/menu';
|
||||||
|
import {InputText} from 'primeng/inputtext';
|
||||||
|
import {FormsModule} from '@angular/forms';
|
||||||
|
|
||||||
export enum EntityType {
|
export enum EntityType {
|
||||||
LIBRARY = 'Library',
|
LIBRARY = 'Library',
|
||||||
@@ -29,9 +39,24 @@ export enum EntityType {
|
|||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-book-browser',
|
selector: 'app-book-browser',
|
||||||
standalone: false,
|
standalone: true,
|
||||||
templateUrl: './book-browser.component.html',
|
templateUrl: './book-browser.component.html',
|
||||||
styleUrls: ['./book-browser.component.scss'],
|
styleUrls: ['./book-browser.component.scss'],
|
||||||
|
imports: [
|
||||||
|
Button,
|
||||||
|
NgIf,
|
||||||
|
VirtualScrollerModule,
|
||||||
|
BookCardComponent,
|
||||||
|
AsyncPipe,
|
||||||
|
ProgressSpinner,
|
||||||
|
Select,
|
||||||
|
RadioButton,
|
||||||
|
Menu,
|
||||||
|
NgForOf,
|
||||||
|
InputText,
|
||||||
|
FormsModule,
|
||||||
|
BookTableComponent
|
||||||
|
],
|
||||||
animations: [
|
animations: [
|
||||||
trigger('slideInOut', [
|
trigger('slideInOut', [
|
||||||
state('void', style({
|
state('void', style({
|
||||||
|
|||||||
@@ -6,11 +6,30 @@ import {Router} from '@angular/router';
|
|||||||
import {LibraryService} from '../../service/library.service';
|
import {LibraryService} from '../../service/library.service';
|
||||||
import {IconPickerComponent} from '../../../utilities/component/icon-picker/icon-picker.component';
|
import {IconPickerComponent} from '../../../utilities/component/icon-picker/icon-picker.component';
|
||||||
import {take} from 'rxjs';
|
import {take} from 'rxjs';
|
||||||
|
import {Button} from 'primeng/button';
|
||||||
|
import {TableModule} from 'primeng/table';
|
||||||
|
import {Step, StepList, StepPanel, StepPanels, Stepper} from 'primeng/stepper';
|
||||||
|
import {NgIf} from '@angular/common';
|
||||||
|
import {FormsModule} from '@angular/forms';
|
||||||
|
import {InputText} from 'primeng/inputtext';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-library-creator',
|
selector: 'app-library-creator',
|
||||||
standalone: false,
|
standalone: true,
|
||||||
templateUrl: './library-creator.component.html',
|
templateUrl: './library-creator.component.html',
|
||||||
|
imports: [
|
||||||
|
Button,
|
||||||
|
TableModule,
|
||||||
|
StepPanel,
|
||||||
|
IconPickerComponent,
|
||||||
|
NgIf,
|
||||||
|
FormsModule,
|
||||||
|
InputText,
|
||||||
|
Stepper,
|
||||||
|
StepList,
|
||||||
|
Step,
|
||||||
|
StepPanels
|
||||||
|
],
|
||||||
styleUrl: './library-creator.component.scss'
|
styleUrl: './library-creator.component.scss'
|
||||||
})
|
})
|
||||||
export class LibraryCreatorComponent {
|
export class LibraryCreatorComponent {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { Component, OnInit, ViewChild } from '@angular/core';
|
import { Component, OnInit, ViewChild } from '@angular/core';
|
||||||
import { DynamicDialogConfig, DynamicDialogRef } from 'primeng/dynamicdialog';
|
import { DynamicDialogConfig, DynamicDialogRef } from 'primeng/dynamicdialog';
|
||||||
import { Book } from '../../model/book.model';
|
import { Book } from '../../model/book.model';
|
||||||
import { MessageService } from 'primeng/api';
|
import {MessageService, PrimeTemplate} from 'primeng/api';
|
||||||
import { ShelfService } from '../../service/shelf.service';
|
import { ShelfService } from '../../service/shelf.service';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { BookService } from '../../service/book.service';
|
import { BookService } from '../../service/book.service';
|
||||||
@@ -9,11 +9,31 @@ import { map, tap } from 'rxjs/operators';
|
|||||||
import { Shelf } from '../../model/shelf.model';
|
import { Shelf } from '../../model/shelf.model';
|
||||||
import { IconPickerComponent } from '../../../utilities/component/icon-picker/icon-picker.component';
|
import { IconPickerComponent } from '../../../utilities/component/icon-picker/icon-picker.component';
|
||||||
import { ShelfState } from '../../model/state/shelf-state.model';
|
import { ShelfState } from '../../model/state/shelf-state.model';
|
||||||
|
import {Button} from 'primeng/button';
|
||||||
|
import {Divider} from 'primeng/divider';
|
||||||
|
import {AsyncPipe, NgForOf, NgIf} from '@angular/common';
|
||||||
|
import {Checkbox} from 'primeng/checkbox';
|
||||||
|
import {FormsModule} from '@angular/forms';
|
||||||
|
import {Dialog} from 'primeng/dialog';
|
||||||
|
import {InputText} from 'primeng/inputtext';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-shelf-assigner',
|
selector: 'app-shelf-assigner',
|
||||||
standalone: false,
|
standalone: true,
|
||||||
templateUrl: './shelf-assigner.component.html',
|
templateUrl: './shelf-assigner.component.html',
|
||||||
|
imports: [
|
||||||
|
Button,
|
||||||
|
Divider,
|
||||||
|
NgForOf,
|
||||||
|
Checkbox,
|
||||||
|
AsyncPipe,
|
||||||
|
FormsModule,
|
||||||
|
IconPickerComponent,
|
||||||
|
Dialog,
|
||||||
|
InputText,
|
||||||
|
NgIf,
|
||||||
|
PrimeTemplate
|
||||||
|
],
|
||||||
styleUrls: ['./shelf-assigner.component.scss']
|
styleUrls: ['./shelf-assigner.component.scss']
|
||||||
})
|
})
|
||||||
export class ShelfAssignerComponent implements OnInit {
|
export class ShelfAssignerComponent implements OnInit {
|
||||||
|
|||||||
+12
-1
@@ -1,11 +1,22 @@
|
|||||||
import {Component, OnInit} from '@angular/core';
|
import {Component, OnInit} from '@angular/core';
|
||||||
import {DynamicDialogRef} from 'primeng/dynamicdialog';
|
import {DynamicDialogRef} from 'primeng/dynamicdialog';
|
||||||
import {UtilityService} from './utility.service';
|
import {UtilityService} from './utility.service';
|
||||||
|
import {Button} from 'primeng/button';
|
||||||
|
import {TableModule} from 'primeng/table';
|
||||||
|
import {NgIf, NgStyle} from '@angular/common';
|
||||||
|
import {InputText} from 'primeng/inputtext';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-directory-picker-v2',
|
selector: 'app-directory-picker-v2',
|
||||||
standalone: false,
|
standalone: true,
|
||||||
templateUrl: './directory-picker.component.html',
|
templateUrl: './directory-picker.component.html',
|
||||||
|
imports: [
|
||||||
|
Button,
|
||||||
|
TableModule,
|
||||||
|
NgStyle,
|
||||||
|
InputText,
|
||||||
|
NgIf
|
||||||
|
],
|
||||||
styleUrls: ['./directory-picker.component.scss']
|
styleUrls: ['./directory-picker.component.scss']
|
||||||
})
|
})
|
||||||
export class DirectoryPickerComponent implements OnInit {
|
export class DirectoryPickerComponent implements OnInit {
|
||||||
|
|||||||
Reference in New Issue
Block a user