Moved to Angular v20 and Tailwind v4 plus all related dependencies
Renamed Docker directory. Also serving static files from FastAPI.
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
import { CdkScrollable } from '@angular/cdk/scrolling';
|
||||
import { AsyncPipe } from '@angular/common';
|
||||
import { Component, Inject, OnInit } from '@angular/core';
|
||||
import { Component, inject, OnInit } from '@angular/core';
|
||||
import { FormControl, FormGroup, ReactiveFormsModule } from '@angular/forms';
|
||||
import { MatAutocompleteSelectedEvent, MatAutocompleteTrigger, MatAutocomplete } from '@angular/material/autocomplete';
|
||||
import { MatAutocomplete, MatAutocompleteSelectedEvent, MatAutocompleteTrigger } from '@angular/material/autocomplete';
|
||||
import { MatButton } from '@angular/material/button';
|
||||
import { MatOption } from '@angular/material/core';
|
||||
import {
|
||||
MAT_DIALOG_DATA,
|
||||
MatDialogRef,
|
||||
MatDialogTitle,
|
||||
MatDialogContent,
|
||||
MatDialogActions,
|
||||
MatDialogClose,
|
||||
MatDialogContent,
|
||||
MatDialogRef,
|
||||
MatDialogTitle,
|
||||
} from '@angular/material/dialog';
|
||||
import { MatFormField, MatLabel } from '@angular/material/form-field';
|
||||
import { MatInput } from '@angular/material/input';
|
||||
@@ -27,7 +27,6 @@ import { MathService } from '../shared/math.service';
|
||||
selector: 'app-issue-dialog',
|
||||
templateUrl: './issue-dialog.component.html',
|
||||
styleUrls: ['./issue-dialog.component.css'],
|
||||
standalone: true,
|
||||
imports: [
|
||||
MatDialogTitle,
|
||||
CdkScrollable,
|
||||
@@ -46,6 +45,15 @@ import { MathService } from '../shared/math.service';
|
||||
],
|
||||
})
|
||||
export class IssueDialogComponent implements OnInit {
|
||||
dialogRef = inject<MatDialogRef<IssueDialogComponent>>(MatDialogRef);
|
||||
data = inject<{
|
||||
inventory: Inventory;
|
||||
date: string;
|
||||
}>(MAT_DIALOG_DATA);
|
||||
|
||||
private math = inject(MathService);
|
||||
private batchSer = inject(BatchService);
|
||||
|
||||
batches: Observable<Batch[]>;
|
||||
form: FormGroup<{
|
||||
batch: FormControl<string | null>;
|
||||
@@ -54,12 +62,7 @@ export class IssueDialogComponent implements OnInit {
|
||||
|
||||
batch: Batch = new Batch();
|
||||
|
||||
constructor(
|
||||
public dialogRef: MatDialogRef<IssueDialogComponent>,
|
||||
@Inject(MAT_DIALOG_DATA) public data: { inventory: Inventory; date: string },
|
||||
private math: MathService,
|
||||
private batchSer: BatchService,
|
||||
) {
|
||||
constructor() {
|
||||
this.form = new FormGroup({
|
||||
batch: new FormControl<string | null>(null),
|
||||
quantity: new FormControl<string>('', { nonNullable: true }),
|
||||
|
||||
Reference in New Issue
Block a user