Chore: Upgrade to Angular v18

Chore: Upgrade to Python 3.12
Chore: Upgrade to psycopg3
This commit is contained in:
2024-06-03 13:22:56 +05:30
parent 56c1be5e05
commit 010e9a84db
573 changed files with 5727 additions and 6528 deletions

View File

@ -4,9 +4,11 @@
<mat-form-field class="flex-auto basis-[15%] mr-5">
<mat-label>Regime</mat-label>
<mat-select formControlName="regime">
<mat-option *ngFor="let r of regimes" [value]="r">
{{ r.name }}
</mat-option>
@for (r of regimes; track r) {
<mat-option [value]="r">
{{ r.name }}
</mat-option>
}
</mat-select>
</mat-form-field>
<mat-form-field class="flex-auto">

View File

@ -8,7 +8,7 @@ describe('QuantityComponent', () => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [BillNumberComponent],
imports: [BillNumberComponent],
}).compileComponents();
}));

View File

@ -1,12 +1,38 @@
import { CdkScrollable } from '@angular/cdk/scrolling';
import { Component, Inject, OnInit } from '@angular/core';
import { FormControl, FormGroup } from '@angular/forms';
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
import { FormControl, FormGroup, ReactiveFormsModule } from '@angular/forms';
import { MatButton } from '@angular/material/button';
import { MatOption } from '@angular/material/core';
import {
MatDialogRef,
MAT_DIALOG_DATA,
MatDialogContent,
MatDialogActions,
MatDialogClose,
} from '@angular/material/dialog';
import { MatFormField, MatLabel } from '@angular/material/form-field';
import { MatInput } from '@angular/material/input';
import { MatSelect } from '@angular/material/select';
import { Regime } from 'src/app/core/regime';
@Component({
selector: 'app-bill-number',
templateUrl: './bill-number.component.html',
styleUrls: ['./bill-number.component.css'],
standalone: true,
imports: [
CdkScrollable,
MatDialogContent,
ReactiveFormsModule,
MatFormField,
MatLabel,
MatSelect,
MatOption,
MatInput,
MatDialogActions,
MatButton,
MatDialogClose,
],
})
export class BillNumberComponent implements OnInit {
form: FormGroup<{