Chore: Removed @angular/flex-layout and replaced it with tailwind.

Chore: Upgraded some packages
This commit is contained in:
2022-12-11 07:50:45 +05:30
parent b9fbdd4b99
commit 4a85a9133e
104 changed files with 564 additions and 975 deletions
@@ -3,9 +3,9 @@
<mat-card-title>Incentives</mat-card-title>
</mat-card-title-group>
<mat-card-content>
<form [formGroup]="form" fxLayout="column">
<div fxLayout="row" fxLayout.lt-md="column" fxLayoutGap="20px" fxLayoutGap.lt-md="0px">
<mat-form-field fxFlex>
<form [formGroup]="form" class="flex flex-col">
<div class="flex flex-row justify-around content-start items-start">
<mat-form-field class="flex-auto">
<input
matInput
[matDatepicker]="date"
@@ -18,7 +18,7 @@
<mat-datepicker #date></mat-datepicker>
</mat-form-field>
</div>
<div fxLayout="row" fxLayout.lt-md="column" fxLayoutGap="20px" fxLayoutGap.lt-md="0px">
<div class="flex flex-row justify-around content-start items-start">
Total Incentive: <strong>{{ voucher.incentive | number: '1.2-2' }}</strong> Total Points:
<strong>{{ totalPoints() | number: '1.2-2' }}</strong> Point Value:
<strong>{{ pointValue() | number: '1.2-2' }}</strong>
@@ -54,7 +54,7 @@
<ng-container matColumnDef="points">
<mat-header-cell *matHeaderCellDef class="center">Service Points</mat-header-cell>
<mat-cell *matCellDef="let row; let i = index" class="center" [formGroupName]="i">
<mat-form-field fxFlex="80%">
<mat-form-field class="flex-auto max-w-[80%]">
<button
mat-stroked-button
mat-icon-button
@@ -69,7 +69,7 @@
formControlName="points"
autocomplete="off"
(change)="change(row, i)"
fxFlex="80%"
class="flex-auto max-w-[80%]"
/>
<button
mat-stroked-button
@@ -2,7 +2,6 @@ import { A11yModule } from '@angular/cdk/a11y';
import { CdkTableModule } from '@angular/cdk/table';
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { FlexLayoutModule } from '@angular/flex-layout';
import { ReactiveFormsModule } from '@angular/forms';
import { MomentDateAdapter } from '@angular/material-moment-adapter';
import { MatAutocompleteModule } from '@angular/material/autocomplete';
@@ -48,7 +47,6 @@ export const MY_FORMATS = {
A11yModule,
CommonModule,
CdkTableModule,
FlexLayoutModule,
MatAutocompleteModule,
MatButtonModule,
MatCardModule,