Moved to Angular 20
Moved to Tailwind 4 Moved to Python 3.13 Enabled arm64/v8 Builds
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { DecimalPipe } from '@angular/common';
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { Component, OnInit, inject } from '@angular/core';
|
||||
import { FormControl, FormGroup, ReactiveFormsModule } from '@angular/forms';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
import { MatCardModule } from '@angular/material/card';
|
||||
@@ -13,7 +13,6 @@ import moment from 'moment';
|
||||
|
||||
import { LocalTimePipe } from '../shared/local-time.pipe';
|
||||
import { ToCsvService } from '../shared/to-csv.service';
|
||||
|
||||
import { BillSettlementReport } from './bill-settlement-report';
|
||||
import { BillSettlementReportDataSource } from './bill-settlement-report-datasource';
|
||||
|
||||
@@ -35,6 +34,10 @@ import { BillSettlementReportDataSource } from './bill-settlement-report-datasou
|
||||
],
|
||||
})
|
||||
export class BillSettlementReportComponent implements OnInit {
|
||||
private route = inject(ActivatedRoute);
|
||||
private router = inject(Router);
|
||||
private toCsv = inject(ToCsvService);
|
||||
|
||||
info: BillSettlementReport = new BillSettlementReport();
|
||||
dataSource: BillSettlementReportDataSource = new BillSettlementReportDataSource(this.info.amounts);
|
||||
|
||||
@@ -46,11 +49,7 @@ export class BillSettlementReportComponent implements OnInit {
|
||||
/** Columns displayed in the table. Columns IDs can be added, removed, or reordered. */
|
||||
displayedColumns = ['date', 'billId', 'amount', 'settlement'];
|
||||
|
||||
constructor(
|
||||
private route: ActivatedRoute,
|
||||
private router: Router,
|
||||
private toCsv: ToCsvService,
|
||||
) {
|
||||
constructor() {
|
||||
// Create form
|
||||
this.form = new FormGroup({
|
||||
startDate: new FormControl(new Date(), { nonNullable: true }),
|
||||
|
||||
Reference in New Issue
Block a user