Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.iemr.aam-inventory-ui</groupId>
<artifactId>aam-inventory-ui</artifactId>
<version>3.6.0</version>
<version>3.6.1</version>
<name>AAM-Inventory-UI</name>
<description>Piramal - inventory: Module ui</description>
<packaging>war</packaging>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
/* CSS files should not be empty SonarQube Bug Fix */
/* Fix for overlapping at different zoom levels */
.mat_form_field_background_width {
width: 100% !important;
}

.input-full-width {
width: 100% !important;
}

.mat_form_field_background_width>>>.mat-mdc-text-field-wrapper {
width: 125% !important;
/* Ensure Material form field doesn't overflow */
::ng-deep .mat_form_field_background_width .mat-mdc-text-field-wrapper {
width: 100% !important;
max-width: 100% !important;
}

/* Add some spacing between columns to prevent overlap */
.row > [class*='col-'] {
padding-left: 8px;
padding-right: 8px;
}
Original file line number Diff line number Diff line change
@@ -1,96 +1,84 @@
<div class="container-fluid">
<div class="row m-t-10">
<div class="col-xs-12 col-sm-6">
<h4>{{ currentLanguageSet?.inventory?.inwardStockReport }}</h4>
</div>
</div>

<div class="m-b-10">
<div class="col-12">
<form [formGroup]="inwardStockForm" class="row">
<div class="col-3">
<mat-form-field
class="input-full-width mat_form_field_background_width"
>
<mat-label>
{{ currentLanguageSet?.inventory?.startDate }}
</mat-label>
<input
matInput
[matDatepicker]="picker"
name="startDate"
id="startDate"
formControlName="startDate"
(change)="checkEndDate()"
[max]="maxEndDate"
[disabled]="true"
(focus)="trackFieldInteraction('Start Date')"
/>
<mat-datepicker-toggle
matSuffix
[for]="picker"
></mat-datepicker-toggle>
<mat-datepicker [style.width]="'100%'" #picker></mat-datepicker>
</mat-form-field>
</div>
<div class="col-3">
<mat-form-field
class="input-full-width mat_form_field_background_width"
>
<mat-label>
{{ currentLanguageSet?.inventory?.endDate }}
</mat-label>
<input
matInput
[matDatepicker]="pickerEnd"
name="endDate"
id="endDate"
formControlName="endDate"
[min]="minEndDate"
[max]="maxEndDate"
[disabled]="true"
(focus)="trackFieldInteraction('End Date')"
/>
<mat-datepicker-toggle
matSuffix
[for]="pickerEnd"
></mat-datepicker-toggle>
<mat-datepicker [style.width]="'100%'" #pickerEnd></mat-datepicker>
</mat-form-field>
</div>
<div class="col-3">
<mat-form-field
class="input-full-width mat_form_field_background_width"
>
<mat-label>
{{ currentLanguageSet?.inventory?.facility }}
</mat-label>
<mat-select
[style.width]="'100%'"
formControlName="facilityName"
(selectionChange)="trackFieldInteraction('Facility')"
>
<mat-option *ngFor="let item of facilities" [value]="item">{{
item
}}</mat-option>
</mat-select>
</mat-form-field>
</div>
<div class="col-3" style="text-align: start; margin-top: 20px">
<button
mat-raised-button
color="accent"
class="mat_green"
type="submit"
[disabled]="!inwardStockForm.valid"
(click)="
downloadReport(true); trackFieldInteraction('Download Button')
"
<div class="m-b-10">
<div class="col-12">
<form [formGroup]="inwardStockForm" class="row g-2">
<div class="col-12 col-md-6 col-lg-3">
<mat-form-field class="w-75">
<mat-label>
{{ currentLanguageSet?.inventory?.startDate }}
</mat-label>
<input
matInput
[matDatepicker]="picker"
name="startDate"
id="startDate"
formControlName="startDate"
(change)="checkEndDate()"
[max]="maxEndDate"
[disabled]="true"
(focus)="trackFieldInteraction('Start Date')"
/>
<mat-datepicker-toggle
matSuffix
[for]="picker"
></mat-datepicker-toggle>
<mat-datepicker #picker></mat-datepicker>
</mat-form-field>
</div>
<div class="col-12 col-md-6 col-lg-3">
<mat-form-field class="w-75">
<mat-label>
{{ currentLanguageSet?.inventory?.endDate }}
</mat-label>
<input
matInput
[matDatepicker]="pickerEnd"
name="endDate"
id="endDate"
formControlName="endDate"
[min]="minEndDate"
[max]="maxEndDate"
[disabled]="true"
(focus)="trackFieldInteraction('End Date')"
/>
<mat-datepicker-toggle
matSuffix
[for]="pickerEnd"
></mat-datepicker-toggle>
<mat-datepicker #pickerEnd></mat-datepicker>
</mat-form-field>
</div>
<div class="col-12 col-md-6 col-lg-3">
<mat-form-field class="w-75">
<mat-label>
{{ currentLanguageSet?.inventory?.facility }}
</mat-label>
<mat-select
formControlName="facilityName"
(selectionChange)="trackFieldInteraction('Facility')"
>
{{ currentLanguageSet?.inventory?.download }}
</button>
</div>
</form>
</div>
<mat-option *ngFor="let item of facilities" [value]="item">{{
item
}}</mat-option>
</mat-select>
</mat-form-field>
</div>
<div
class="col-3"
style="display: flex; align-items: flex-end; padding-bottom: 20px"
>
<button
mat-raised-button
color="accent"
class="mat_green w-50"
type="submit"
[disabled]="!inwardStockForm.valid"
(click)="
downloadReport(true); trackFieldInteraction('Download Button')
"
>
{{ currentLanguageSet?.inventory?.download }}
</button>
</div>
</form>
</div>
</div>
Loading