image viewer - issues fixs : ps

This commit is contained in:
venbatechnologies@gmail.com 2019-04-29 15:37:01 +05:30
parent bf52ff64b1
commit 3c76ebeea2
23 changed files with 131 additions and 99 deletions

View File

@ -4369,12 +4369,14 @@
"balanced-match": { "balanced-match": {
"version": "1.0.0", "version": "1.0.0",
"bundled": true, "bundled": true,
"dev": true "dev": true,
"optional": true
}, },
"brace-expansion": { "brace-expansion": {
"version": "1.1.11", "version": "1.1.11",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"balanced-match": "^1.0.0", "balanced-match": "^1.0.0",
"concat-map": "0.0.1" "concat-map": "0.0.1"
@ -4389,17 +4391,20 @@
"code-point-at": { "code-point-at": {
"version": "1.1.0", "version": "1.1.0",
"bundled": true, "bundled": true,
"dev": true "dev": true,
"optional": true
}, },
"concat-map": { "concat-map": {
"version": "0.0.1", "version": "0.0.1",
"bundled": true, "bundled": true,
"dev": true "dev": true,
"optional": true
}, },
"console-control-strings": { "console-control-strings": {
"version": "1.1.0", "version": "1.1.0",
"bundled": true, "bundled": true,
"dev": true "dev": true,
"optional": true
}, },
"core-util-is": { "core-util-is": {
"version": "1.0.2", "version": "1.0.2",
@ -4516,7 +4521,8 @@
"inherits": { "inherits": {
"version": "2.0.3", "version": "2.0.3",
"bundled": true, "bundled": true,
"dev": true "dev": true,
"optional": true
}, },
"ini": { "ini": {
"version": "1.3.5", "version": "1.3.5",
@ -4528,6 +4534,7 @@
"version": "1.0.0", "version": "1.0.0",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"number-is-nan": "^1.0.0" "number-is-nan": "^1.0.0"
} }
@ -4542,6 +4549,7 @@
"version": "3.0.4", "version": "3.0.4",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"brace-expansion": "^1.1.7" "brace-expansion": "^1.1.7"
} }
@ -4549,12 +4557,14 @@
"minimist": { "minimist": {
"version": "0.0.8", "version": "0.0.8",
"bundled": true, "bundled": true,
"dev": true "dev": true,
"optional": true
}, },
"minipass": { "minipass": {
"version": "2.2.4", "version": "2.2.4",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"safe-buffer": "^5.1.1", "safe-buffer": "^5.1.1",
"yallist": "^3.0.0" "yallist": "^3.0.0"
@ -4573,6 +4583,7 @@
"version": "0.5.1", "version": "0.5.1",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"minimist": "0.0.8" "minimist": "0.0.8"
} }
@ -4653,7 +4664,8 @@
"number-is-nan": { "number-is-nan": {
"version": "1.0.1", "version": "1.0.1",
"bundled": true, "bundled": true,
"dev": true "dev": true,
"optional": true
}, },
"object-assign": { "object-assign": {
"version": "4.1.1", "version": "4.1.1",
@ -4665,6 +4677,7 @@
"version": "1.4.0", "version": "1.4.0",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"wrappy": "1" "wrappy": "1"
} }
@ -4786,6 +4799,7 @@
"version": "1.0.2", "version": "1.0.2",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"code-point-at": "^1.0.0", "code-point-at": "^1.0.0",
"is-fullwidth-code-point": "^1.0.0", "is-fullwidth-code-point": "^1.0.0",

View File

@ -189,7 +189,8 @@
<mat-tab label="Docs"> <mat-tab label="Docs">
<ng-template matTabContent> <ng-template matTabContent>
<div fxLayout="row wrap" style="padding:20px;" *ngIf="documentsAndFilesList.length>0; else noFiles"> <div ngxViewer *ngIf="documentsAndFilesList.length>0; else noFiles">
<div fxLayout="row wrap" style="padding:20px;">
<div fxFlex="100"> <div fxFlex="100">
<div fxFlex="20" class="m-gap p-gap" *ngFor="let doc of documentsAndFilesList"> <div fxFlex="20" class="m-gap p-gap" *ngFor="let doc of documentsAndFilesList">
<div class="p-list-main mb-2" style="width: 60%;height: auto;" *ngIf="doc.document_type != 'pdf'"> <div class="p-list-main mb-2" style="width: 60%;height: auto;" *ngIf="doc.document_type != 'pdf'">
@ -215,12 +216,12 @@
</div> </div>
</div> </div>
</div> </div>
</div>
<ng-template #noFiles> <ng-template #noFiles>
<mat-card-content> <mat-card-content>
<p style="margin: 20px;">No Files</p> <p style="margin: 20px;">No Files</p>
</mat-card-content> </mat-card-content>
</ng-template> </ng-template>
</ng-template> </ng-template>
</mat-tab> </mat-tab>

View File

@ -430,7 +430,8 @@
</mat-tab> </mat-tab>
<mat-tab label="Docs"> <mat-tab label="Docs">
<ng-template matTabContent> <ng-template matTabContent>
<div fxLayout="row wrap" style="padding:20px;" *ngIf="documentsAndFilesList.length>0; else noFiles"> <div ngxViewer *ngIf="documentsAndFilesList.length>0; else noFiles">
<div fxLayout="row wrap" style="padding:20px;">
<div fxFlex="100"> <div fxFlex="100">
<div fxFlex="20" class="m-gap p-gap" *ngFor="let doc of documentsAndFilesList"> <div fxFlex="20" class="m-gap p-gap" *ngFor="let doc of documentsAndFilesList">
<div class="p-list-main mb-2" style="width: 60%;height: auto;" *ngIf="doc.document_type != 'pdf'"> <div class="p-list-main mb-2" style="width: 60%;height: auto;" *ngIf="doc.document_type != 'pdf'">
@ -456,14 +457,14 @@
</div> </div>
</div> </div>
</div> </div>
</div>
<ng-template #noFiles> <ng-template #noFiles>
<mat-card-content> <mat-card-content>
<p style="margin: 20px;">No Files</p> <p style="margin: 20px;">No Files</p>
</mat-card-content> </mat-card-content>
</ng-template> </ng-template>
</ng-template> </ng-template>
</mat-tab> </mat-tab>
</mat-tab-group> </mat-tab-group>
</mat-dialog-content> </mat-dialog-content>
<mat-dialog-actions> <mat-dialog-actions>

View File

@ -218,7 +218,8 @@
</mat-tab> </mat-tab>
<mat-tab label="Docs"> <mat-tab label="Docs">
<ng-template matTabContent> <ng-template matTabContent>
<div fxLayout="row wrap" style="padding:20px;" *ngIf="documentsAndFilesList.length>0; else noFiles"> <div ngxViewer *ngIf="documentsAndFilesList.length>0; else noFiles">
<div fxLayout="row wrap" style="padding:20px;">
<div fxFlex="100"> <div fxFlex="100">
<div fxFlex="20" class="m-gap p-gap" *ngFor="let doc of documentsAndFilesList"> <div fxFlex="20" class="m-gap p-gap" *ngFor="let doc of documentsAndFilesList">
<div class="p-list-main mb-2" style="width: 60%;height: auto;" *ngIf="doc.document_type != 'pdf'"> <div class="p-list-main mb-2" style="width: 60%;height: auto;" *ngIf="doc.document_type != 'pdf'">
@ -244,14 +245,14 @@
</div> </div>
</div> </div>
</div> </div>
</div>
<ng-template #noFiles> <ng-template #noFiles>
<mat-card-content> <mat-card-content>
<p style="margin: 20px;">No Files</p> <p style="margin: 20px;">No Files</p>
</mat-card-content> </mat-card-content>
</ng-template> </ng-template>
</ng-template> </ng-template>
</mat-tab> </mat-tab>
</mat-tab-group> </mat-tab-group>
</mat-dialog-content> </mat-dialog-content>

View File

@ -384,7 +384,8 @@
</mat-tab> </mat-tab>
<mat-tab label="Docs"> <mat-tab label="Docs">
<ng-template matTabContent> <ng-template matTabContent>
<div fxLayout="row wrap" style="padding:20px;" *ngIf="documentsAndFilesList.length>0; else noFiles"> <div ngxViewer *ngIf="documentsAndFilesList.length>0; else noFiles">
<div fxLayout="row wrap" style="padding:20px;">
<div fxFlex="100"> <div fxFlex="100">
<div fxFlex="20" class="m-gap p-gap" *ngFor="let doc of documentsAndFilesList"> <div fxFlex="20" class="m-gap p-gap" *ngFor="let doc of documentsAndFilesList">
<div class="p-list-main mb-2" style="width: 60%;height: auto;" *ngIf="doc.document_type != 'pdf'"> <div class="p-list-main mb-2" style="width: 60%;height: auto;" *ngIf="doc.document_type != 'pdf'">
@ -410,12 +411,12 @@
</div> </div>
</div> </div>
</div> </div>
</div>
<ng-template #noFiles> <ng-template #noFiles>
<mat-card-content> <mat-card-content>
<p style="margin: 20px;">No Files</p> <p style="margin: 20px;">No Files</p>
</mat-card-content> </mat-card-content>
</ng-template> </ng-template>
</ng-template> </ng-template>
</mat-tab> </mat-tab>
</mat-tab-group> </mat-tab-group>

View File

@ -150,7 +150,8 @@
</mat-tab> </mat-tab>
<mat-tab label="Docs"> <mat-tab label="Docs">
<ng-template matTabContent> <ng-template matTabContent>
<div fxLayout="row wrap" style="padding:20px;" *ngIf="documentsAndFilesList.length>0; else noFiles"> <div ngxViewer *ngIf="documentsAndFilesList.length>0; else noFiles">
<div fxLayout="row wrap" style="padding:20px;">
<div fxFlex="100"> <div fxFlex="100">
<div fxFlex="20" class="m-gap p-gap" *ngFor="let doc of documentsAndFilesList"> <div fxFlex="20" class="m-gap p-gap" *ngFor="let doc of documentsAndFilesList">
<div class="p-list-main mb-2" style="width: 60%;height: auto;" *ngIf="doc.document_type != 'pdf'"> <div class="p-list-main mb-2" style="width: 60%;height: auto;" *ngIf="doc.document_type != 'pdf'">
@ -176,14 +177,14 @@
</div> </div>
</div> </div>
</div> </div>
</div>
<ng-template #noFiles> <ng-template #noFiles>
<mat-card-content> <mat-card-content>
<p style="margin: 20px;">No Files</p> <p style="margin: 20px;">No Files</p>
</mat-card-content> </mat-card-content>
</ng-template> </ng-template>
</ng-template> </ng-template>
</mat-tab> </mat-tab>
</mat-tab-group> </mat-tab-group>
</mat-dialog-content> </mat-dialog-content>

View File

@ -1717,7 +1717,8 @@
<mat-tab label="Docs"> <mat-tab label="Docs">
<ng-template matTabContent> <ng-template matTabContent>
<div fxLayout="row wrap" style="padding:20px;" *ngIf="documentsAndFilesList.length>0; else noFiles"> <div ngxViewer *ngIf="documentsAndFilesList.length>0; else noFiles">
<div fxLayout="row wrap" style="padding:20px;">
<div fxFlex="100"> <div fxFlex="100">
<div fxFlex="20" class="m-gap p-gap" *ngFor="let doc of documentsAndFilesList"> <div fxFlex="20" class="m-gap p-gap" *ngFor="let doc of documentsAndFilesList">
<div class="p-list-main mb-2" style="width: 60%;height: auto;" *ngIf="doc.document_type != 'pdf'"> <div class="p-list-main mb-2" style="width: 60%;height: auto;" *ngIf="doc.document_type != 'pdf'">
@ -1726,9 +1727,8 @@
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> <div fxFlex="row">
<div fxFlex="row">
<div fxFlex="100" class="m-gap p-gap"> <div fxFlex="100" class="m-gap p-gap">
<div fxLayout="row" fxLayoutWrap="wrap"> <div fxLayout="row" fxLayoutWrap="wrap">
<div *ngFor="let doc of documentsAndFilesList"> <div *ngFor="let doc of documentsAndFilesList">
@ -1742,13 +1742,14 @@
</div> </div>
</div> </div>
</div> </div>
</div>
</div> </div>
<ng-template #noFiles fxLayout="row wrap" style="padding:20px;"> </div>
<ng-template #noFiles>
<mat-card-content> <mat-card-content>
<p style="margin: 20px;">No Files</p> <p style="margin: 20px;">No Files</p>
</mat-card-content> </mat-card-content>
</ng-template> </ng-template>
</ng-template> </ng-template>
</mat-tab> </mat-tab>

View File

@ -430,7 +430,8 @@
<mat-tab label="Docs"> <mat-tab label="Docs">
<ng-template matTabContent> <ng-template matTabContent>
<div fxLayout="row wrap" style="padding:20px;" *ngIf="documentsAndFilesList.length>0; else noFiles"> <div ngxViewer *ngIf="documentsAndFilesList.length>0; else noFiles">
<div fxLayout="row wrap" style="padding:20px;">
<div fxFlex="100"> <div fxFlex="100">
<div fxFlex="20" class="m-gap p-gap" *ngFor="let doc of documentsAndFilesList"> <div fxFlex="20" class="m-gap p-gap" *ngFor="let doc of documentsAndFilesList">
<div class="p-list-main mb-2" style="width: 60%;height: auto;" *ngIf="doc.document_type != 'pdf'"> <div class="p-list-main mb-2" style="width: 60%;height: auto;" *ngIf="doc.document_type != 'pdf'">
@ -456,14 +457,14 @@
</div> </div>
</div> </div>
</div> </div>
</div>
<ng-template #noFiles> <ng-template #noFiles>
<mat-card-content> <mat-card-content>
<p style="margin: 20px;">No Files</p> <p style="margin: 20px;">No Files</p>
</mat-card-content> </mat-card-content>
</ng-template> </ng-template>
</ng-template> </ng-template>
</mat-tab> </mat-tab>
</mat-tab-group> </mat-tab-group>

View File

@ -195,7 +195,8 @@
<mat-tab label="Docs"> <mat-tab label="Docs">
<ng-template matTabContent> <ng-template matTabContent>
<div fxLayout="row wrap" style="padding:20px;" *ngIf="documentsAndFilesList.length>0; else noFiles"> <div ngxViewer *ngIf="documentsAndFilesList.length>0; else noFiles">
<div fxLayout="row wrap" style="padding:20px;">
<div fxFlex="100"> <div fxFlex="100">
<div fxFlex="20" class="m-gap p-gap" *ngFor="let doc of documentsAndFilesList"> <div fxFlex="20" class="m-gap p-gap" *ngFor="let doc of documentsAndFilesList">
<div class="p-list-main mb-2" style="width: 60%;height: auto;" *ngIf="doc.document_type != 'pdf'"> <div class="p-list-main mb-2" style="width: 60%;height: auto;" *ngIf="doc.document_type != 'pdf'">
@ -221,14 +222,14 @@
</div> </div>
</div> </div>
</div> </div>
</div>
<ng-template #noFiles> <ng-template #noFiles>
<mat-card-content> <mat-card-content>
<p style="margin: 20px;">No Files</p> <p style="margin: 20px;">No Files</p>
</mat-card-content> </mat-card-content>
</ng-template> </ng-template>
</ng-template> </ng-template>
</mat-tab> </mat-tab>
</mat-tab-group> </mat-tab-group>

View File

@ -278,7 +278,8 @@
</mat-tab> </mat-tab>
<mat-tab label="Docs"> <mat-tab label="Docs">
<ng-template matTabContent> <ng-template matTabContent>
<div fxLayout="row wrap" style="padding:20px;" *ngIf="documentsAndFilesList.length>0; else noFiles"> <div ngxViewer *ngIf="documentsAndFilesList.length>0; else noFiles">
<div fxLayout="row wrap" style="padding:20px;">
<div fxFlex="100"> <div fxFlex="100">
<div fxFlex="20" class="m-gap p-gap" *ngFor="let doc of documentsAndFilesList"> <div fxFlex="20" class="m-gap p-gap" *ngFor="let doc of documentsAndFilesList">
<div class="p-list-main mb-2" style="width: 60%;height: auto;" *ngIf="doc.document_type != 'pdf'"> <div class="p-list-main mb-2" style="width: 60%;height: auto;" *ngIf="doc.document_type != 'pdf'">
@ -304,14 +305,14 @@
</div> </div>
</div> </div>
</div> </div>
</div>
<ng-template #noFiles> <ng-template #noFiles>
<mat-card-content> <mat-card-content>
<p style="margin: 20px;">No Files</p> <p style="margin: 20px;">No Files</p>
</mat-card-content> </mat-card-content>
</ng-template> </ng-template>
</ng-template> </ng-template>
</mat-tab> </mat-tab>
</mat-tab-group> </mat-tab-group>
</mat-dialog-content> </mat-dialog-content>
<mat-dialog-actions> <mat-dialog-actions>

View File

@ -179,8 +179,7 @@
<input matInput placeholder="Income Per Month" <input matInput placeholder="Income Per Month"
formControlName="earning_gross_income_per_month" formControlName="earning_gross_income_per_month"
OnlyNumber type="text"> OnlyNumber type="text">
<mat-hint align="start" style="font-size:90%" *ngIf="item.get('earning_gross_income_per_month').value != ''">{{"&#8377;"}} <mat-hint align="start" style="font-size:90%" *ngIf="item.get('earning_gross_income_per_month').value != ''">{{"&#8377;"}} {{item.get('earning_gross_income_per_month').value | numberToWords}} Only</mat-hint>
{{item.get('earning_gross_income_per_month').value | numberToWords}} Only</mat-hint>
</mat-form-field> </mat-form-field>
<mat-form-field style="width:45%;"> <mat-form-field style="width:45%;">
<input matInput [placeholder]="item.get('earning_segment').value != 5 ? 'Name of the Employer/Business' : 'Pension Received From'" <input matInput [placeholder]="item.get('earning_segment').value != 5 ? 'Name of the Employer/Business' : 'Pension Received From'"
@ -272,7 +271,8 @@
<mat-tab label="Docs"> <mat-tab label="Docs">
<ng-template matTabContent> <ng-template matTabContent>
<div fxLayout="row wrap" style="padding:20px;" *ngIf="documentsAndFilesList.length>0; else noFiles"> <div ngxViewer *ngIf="documentsAndFilesList.length>0; else noFiles">
<div fxLayout="row wrap" style="padding:20px;">
<div fxFlex="100"> <div fxFlex="100">
<div fxFlex="20" class="m-gap p-gap" *ngFor="let doc of documentsAndFilesList"> <div fxFlex="20" class="m-gap p-gap" *ngFor="let doc of documentsAndFilesList">
<div class="p-list-main mb-2" style="width: 60%;height: auto;" *ngIf="doc.document_type != 'pdf'"> <div class="p-list-main mb-2" style="width: 60%;height: auto;" *ngIf="doc.document_type != 'pdf'">
@ -298,14 +298,14 @@
</div> </div>
</div> </div>
</div> </div>
</div>
<ng-template #noFiles> <ng-template #noFiles>
<mat-card-content> <mat-card-content>
<p style="margin: 20px;">No Files</p> <p style="margin: 20px;">No Files</p>
</mat-card-content> </mat-card-content>
</ng-template> </ng-template>
</ng-template> </ng-template>
</mat-tab> </mat-tab>
</mat-tab-group> </mat-tab-group>

View File

@ -511,41 +511,43 @@
</ng-template> </ng-template>
</mat-tab> </mat-tab>
<mat-tab label="Docs"> <mat-tab label="Docs">
<ng-template matTabContent> <ng-template matTabContent>
<div fxLayout="row wrap" style="padding:20px;" *ngIf="documentsAndFilesList.length>0; else noFiles"> <div ngxViewer *ngIf="documentsAndFilesList.length>0; else noFiles">
<div fxFlex="100"> <div fxLayout="row wrap" style="padding:20px;">
<div fxFlex="20" class="m-gap p-gap" *ngFor="let doc of documentsAndFilesList"> <div fxFlex="100">
<div class="p-list-main mb-2" style="width: 60%;height: auto;" *ngIf="doc.document_type != 'pdf'"> <div fxFlex="20" class="m-gap p-gap" *ngFor="let doc of documentsAndFilesList">
<div class="p-list"> <div class="p-list-main mb-2" style="width: 60%;height: auto;" *ngIf="doc.document_type != 'pdf'">
<div class="top"> <img src="{{doc.document}}" alt="{{doc.document_name}}"></div> <div class="p-list">
<div class="top"> <img src="{{doc.document}}" alt="{{doc.document_name}}"></div>
</div>
</div>
</div>
</div>
<div fxFlex="row">
<div fxFlex="100" class="m-gap p-gap">
<div fxLayout="row" fxLayoutWrap="wrap">
<div *ngFor="let doc of documentsAndFilesList">
<div class="text-center mb-2 hover-icon" fxFlex.xs="50" fxFlex.sm="50" fxFlex.md="20"
fxFlex.lg="20" fxFlex.xl="20" *ngIf="doc.document_type == 'pdf';">
<!-- <a href="http://www.google.com" target="_blank"> -->
<mat-icon style="color: #e00201;font-size: 60px !important;width:inherit !important;" (click)="pdf(doc.document)">picture_as_pdf</mat-icon>
<span class="d-block">{{doc.document_title}}</span>
<!-- </a> -->
</div>
</div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<div fxFlex="row"> </div>
<div fxFlex="100" class="m-gap p-gap"> <ng-template #noFiles>
<div fxLayout="row" fxLayoutWrap="wrap"> <mat-card-content>
<div *ngFor="let doc of documentsAndFilesList"> <p style="margin: 20px;">No Files</p>
<div class="text-center mb-2 hover-icon" fxFlex.xs="50" fxFlex.sm="50" fxFlex.md="20" </mat-card-content>
fxFlex.lg="20" fxFlex.xl="20" *ngIf="doc.document_type == 'pdf';"> </ng-template>
<!-- <a href="http://www.google.com" target="_blank"> -->
<mat-icon style="color: #e00201;font-size: 60px !important;width:inherit !important;" (click)="pdf(doc.document)">picture_as_pdf</mat-icon>
<span class="d-block">{{doc.document_title}}</span>
<!-- </a> -->
</div>
</div>
</div>
</div>
</div>
</div>
<ng-template #noFiles>
<mat-card-content>
<p style="margin: 20px;">No Files</p>
</mat-card-content>
</ng-template> </ng-template>
</mat-tab>
</ng-template> </mat-tab-group>
</mat-tab> </mat-tab-group>
</mat-dialog-content> </mat-dialog-content>
<mat-dialog-actions> <mat-dialog-actions>
<div fxFlex="60" class="pb-0 text-sm-left" align="left"> <div fxFlex="60" class="pb-0 text-sm-left" align="left">

View File

@ -399,7 +399,8 @@
<mat-tab label="Docs"> <mat-tab label="Docs">
<ng-template matTabContent> <ng-template matTabContent>
<div fxLayout="row wrap" style="padding:20px;" *ngIf="documentsAndFilesList.length>0; else noFiles"> <div ngxViewer *ngIf="documentsAndFilesList.length>0; else noFiles">
<div fxLayout="row wrap" style="padding:20px;">
<div fxFlex="100"> <div fxFlex="100">
<div fxFlex="20" class="m-gap p-gap" *ngFor="let doc of documentsAndFilesList"> <div fxFlex="20" class="m-gap p-gap" *ngFor="let doc of documentsAndFilesList">
<div class="p-list-main mb-2" style="width: 60%;height: auto;" *ngIf="doc.document_type != 'pdf'"> <div class="p-list-main mb-2" style="width: 60%;height: auto;" *ngIf="doc.document_type != 'pdf'">
@ -425,14 +426,14 @@
</div> </div>
</div> </div>
</div> </div>
</div>
<ng-template #noFiles> <ng-template #noFiles>
<mat-card-content> <mat-card-content>
<p style="margin: 20px;">No Files</p> <p style="margin: 20px;">No Files</p>
</mat-card-content> </mat-card-content>
</ng-template> </ng-template>
</ng-template> </ng-template>
</mat-tab> </mat-tab>
</mat-tab-group> </mat-tab-group>
</mat-dialog-content> </mat-dialog-content>

View File

@ -64,7 +64,8 @@
<mat-tab label="Docs"> <mat-tab label="Docs">
<ng-template matTabContent> <ng-template matTabContent>
<div fxLayout="row wrap" style="padding:20px;" *ngIf="documentsAndFilesList.length>0; else noFiles"> <div ngxViewer *ngIf="documentsAndFilesList.length>0; else noFiles">
<div fxLayout="row wrap" style="padding:20px;">
<div fxFlex="100"> <div fxFlex="100">
<div fxFlex="20" class="m-gap p-gap" *ngFor="let doc of documentsAndFilesList"> <div fxFlex="20" class="m-gap p-gap" *ngFor="let doc of documentsAndFilesList">
<div class="p-list-main mb-2" style="width: 60%;height: auto;" *ngIf="doc.document_type != 'pdf'"> <div class="p-list-main mb-2" style="width: 60%;height: auto;" *ngIf="doc.document_type != 'pdf'">
@ -90,14 +91,14 @@
</div> </div>
</div> </div>
</div> </div>
</div>
<ng-template #noFiles> <ng-template #noFiles>
<mat-card-content> <mat-card-content>
<p style="margin: 20px;">No Files</p> <p style="margin: 20px;">No Files</p>
</mat-card-content> </mat-card-content>
</ng-template> </ng-template>
</ng-template> </ng-template>
</mat-tab> </mat-tab>
</mat-tab-group> </mat-tab-group>
</mat-dialog-content> </mat-dialog-content>

View File

@ -232,7 +232,8 @@
</mat-tab> </mat-tab>
<mat-tab label="Docs"> <mat-tab label="Docs">
<ng-template matTabContent> <ng-template matTabContent>
<div fxLayout="row wrap" style="padding:20px;" *ngIf="documentsAndFilesList.length>0; else noFiles"> <div ngxViewer *ngIf="documentsAndFilesList.length>0; else noFiles">
<div fxLayout="row wrap" style="padding:20px;">
<div fxFlex="100"> <div fxFlex="100">
<div fxFlex="20" class="m-gap p-gap" *ngFor="let doc of documentsAndFilesList"> <div fxFlex="20" class="m-gap p-gap" *ngFor="let doc of documentsAndFilesList">
<div class="p-list-main mb-2" style="width: 60%;height: auto;" *ngIf="doc.document_type != 'pdf'"> <div class="p-list-main mb-2" style="width: 60%;height: auto;" *ngIf="doc.document_type != 'pdf'">
@ -258,14 +259,14 @@
</div> </div>
</div> </div>
</div> </div>
</div>
<ng-template #noFiles> <ng-template #noFiles>
<mat-card-content> <mat-card-content>
<p style="margin: 20px;">No Files</p> <p style="margin: 20px;">No Files</p>
</mat-card-content> </mat-card-content>
</ng-template> </ng-template>
</ng-template> </ng-template>
</mat-tab> </mat-tab>
</mat-tab-group> </mat-tab-group>
</mat-dialog-content> </mat-dialog-content>
<mat-dialog-actions> <mat-dialog-actions>

View File

@ -310,7 +310,7 @@ export class LoanDetailsComponent implements OnInit {
this.loanDetailsForm.controls['owner_name'].updateValueAndValidity(); this.loanDetailsForm.controls['owner_name'].updateValueAndValidity();
} }
this._pd.retriveFile(this.pdid,this.form_id,'null').subscribe(data => { this._pd.retriveFile(this.pdid,this.form_id,null).subscribe(data => {
if (data.status == 200) { if (data.status == 200) {
if(data.records.length>0){ if(data.records.length>0){
data.records.forEach((val, index) => { data.records.forEach((val, index) => {

View File

@ -222,10 +222,11 @@
</mat-tab> </mat-tab>
<mat-tab label="Docs"> <mat-tab label="Docs">
<ng-template matTabContent> <ng-template matTabContent>
<div fxLayout="row wrap" style="padding:20px;" *ngIf="documentsAndFilesList.length>0; else noFiles"> <div ngxViewer *ngIf="documentsAndFilesList.length>0; else noFiles">
<div fxLayout="row wrap" style="padding:20px;">
<div fxFlex="100"> <div fxFlex="100">
<div fxFlex="20" class="m-gap p-gap" *ngFor="let doc of documentsAndFilesList"> <div fxFlex="20" class="m-gap p-gap" *ngFor="let doc of documentsAndFilesList">
<div class="p-list-main mb-2" style="width: 60%;height: auto;" *ngIf="doc.document_type == 'images'"> <div class="p-list-main mb-2" style="width: 60%;height: auto;" *ngIf="doc.document_type != 'pdf'">
<div class="p-list"> <div class="p-list">
<div class="top"> <img src="{{doc.document}}" alt="{{doc.document_name}}"></div> <div class="top"> <img src="{{doc.document}}" alt="{{doc.document_name}}"></div>
</div> </div>
@ -248,14 +249,14 @@
</div> </div>
</div> </div>
</div> </div>
</div>
<ng-template #noFiles> <ng-template #noFiles>
<mat-card-content> <mat-card-content>
<p style="margin: 20px;">No Files</p> <p style="margin: 20px;">No Files</p>
</mat-card-content> </mat-card-content>
</ng-template> </ng-template>
</ng-template> </ng-template>
</mat-tab> </mat-tab>
</mat-tab-group> </mat-tab-group>
<!-- <mat-card> <!-- <mat-card>

View File

@ -105,7 +105,7 @@ export class NeighbourHoodComponent implements OnInit {
// } // }
// }); // });
this._pd.retriveFile(this.pdid,'19','null').subscribe(data => { this._pd.retriveFile(this.pdid,'19',null).subscribe(data => {
if (data.status == 200) { if (data.status == 200) {
if(data.records.length>0){ if(data.records.length>0){
data.records.forEach((val, index) => { data.records.forEach((val, index) => {

View File

@ -155,7 +155,8 @@
<mat-tab label="Docs"> <mat-tab label="Docs">
<ng-template matTabContent> <ng-template matTabContent>
<div fxLayout="row wrap" style="padding:20px;" *ngIf="documentsAndFilesList.length>0; else noFiles"> <div ngxViewer *ngIf="documentsAndFilesList.length>0; else noFiles">
<div fxLayout="row wrap" style="padding:20px;">
<div fxFlex="100"> <div fxFlex="100">
<div fxFlex="20" class="m-gap p-gap" *ngFor="let doc of documentsAndFilesList"> <div fxFlex="20" class="m-gap p-gap" *ngFor="let doc of documentsAndFilesList">
<div class="p-list-main mb-2" style="width: 60%;height: auto;" *ngIf="doc.document_type != 'pdf'"> <div class="p-list-main mb-2" style="width: 60%;height: auto;" *ngIf="doc.document_type != 'pdf'">
@ -181,14 +182,14 @@
</div> </div>
</div> </div>
</div> </div>
</div>
<ng-template #noFiles> <ng-template #noFiles>
<mat-card-content> <mat-card-content>
<p style="margin: 20px;">No Files</p> <p style="margin: 20px;">No Files</p>
</mat-card-content> </mat-card-content>
</ng-template> </ng-template>
</ng-template> </ng-template>
</mat-tab> </mat-tab>
</mat-tab-group> </mat-tab-group>

View File

@ -170,7 +170,7 @@ export class OtherIncomeComponent implements OnInit {
//control.push(this.createDetail()); //control.push(this.createDetail());
} }
}) })
this._pd.retriveFile(this.pdid,this.form_id,'null').subscribe(data => { this._pd.retriveFile(this.pdid,this.form_id,null).subscribe(data => {
if (data.status == 200) { if (data.status == 200) {
if(data.records.length>0){ if(data.records.length>0){
data.records.forEach((val, index) => { data.records.forEach((val, index) => {

View File

@ -389,7 +389,8 @@
<mat-tab label="Docs"> <mat-tab label="Docs">
<ng-template matTabContent> <ng-template matTabContent>
<div fxLayout="row wrap" style="padding:20px;" *ngIf="documentsAndFilesList.length>0; else noFiles"> <div ngxViewer *ngIf="documentsAndFilesList.length>0; else noFiles">
<div fxLayout="row wrap" style="padding:20px;">
<div fxFlex="100"> <div fxFlex="100">
<div fxFlex="20" class="m-gap p-gap" *ngFor="let doc of documentsAndFilesList"> <div fxFlex="20" class="m-gap p-gap" *ngFor="let doc of documentsAndFilesList">
<div class="p-list-main mb-2" style="width: 60%;height: auto;" *ngIf="doc.document_type != 'pdf'"> <div class="p-list-main mb-2" style="width: 60%;height: auto;" *ngIf="doc.document_type != 'pdf'">
@ -415,14 +416,14 @@
</div> </div>
</div> </div>
</div> </div>
</div>
<ng-template #noFiles> <ng-template #noFiles>
<mat-card-content> <mat-card-content>
<p style="margin: 20px;">No Files</p> <p style="margin: 20px;">No Files</p>
</mat-card-content> </mat-card-content>
</ng-template> </ng-template>
</ng-template> </ng-template>
</mat-tab> </mat-tab>
</mat-tab-group> </mat-tab-group>
</mat-dialog-content> </mat-dialog-content>

View File

@ -58,7 +58,7 @@
</mat-form-field> </mat-form-field>
<mat-form-field style="width: 35%" *ngIf="items.get('person_designation').value == 1"> <mat-form-field style="width: 35%" *ngIf="items.get('person_designation').value == 1">
<input matInput placeholder="Specify Person Designation" formControlName="other_person_designation"> <input matInput placeholder="Specify Person Designation" formControlName="other_person_designation">
<mat-error *ngIf="itemrow.controls['other_person_designation'].hasError('required')">Person Designation Required</mat-error> <mat-error *ngIf="items.controls['other_person_designation'].hasError('required')">Person Designation Required</mat-error>
</mat-form-field> </mat-form-field>
</div> </div>
<div fxLayout="row nowrap" fxLayoutGap="2px" fxLayoutAlign="start none"> <div fxLayout="row nowrap" fxLayoutGap="2px" fxLayoutAlign="start none">
@ -195,7 +195,7 @@
</mat-form-field> </mat-form-field>
<mat-form-field style="width: 35%" *ngIf="items.get('person_designation').value == 1"> <mat-form-field style="width: 35%" *ngIf="items.get('person_designation').value == 1">
<input matInput placeholder="Specify Person Designation" formControlName="other_person_designation"> <input matInput placeholder="Specify Person Designation" formControlName="other_person_designation">
<mat-error *ngIf="itemrow.controls['other_person_designation'].hasError('required')">Person Designation Required</mat-error> <mat-error *ngIf="items.controls['other_person_designation'].hasError('required')">Person Designation Required</mat-error>
</mat-form-field> </mat-form-field>
</div> </div>
<div fxLayout="row nowrap" fxLayoutGap="2px" fxLayoutAlign="start none"> <div fxLayout="row nowrap" fxLayoutGap="2px" fxLayoutAlign="start none">
@ -293,7 +293,8 @@
<mat-tab label="Docs"> <mat-tab label="Docs">
<ng-template matTabContent> <ng-template matTabContent>
<div fxLayout="row wrap" style="padding:20px;" *ngIf="documentsAndFilesList.length>0; else noFiles"> <div ngxViewer *ngIf="documentsAndFilesList.length>0; else noFiles">
<div fxLayout="row wrap" style="padding:20px;">
<div fxFlex="100"> <div fxFlex="100">
<div fxFlex="20" class="m-gap p-gap" *ngFor="let doc of documentsAndFilesList"> <div fxFlex="20" class="m-gap p-gap" *ngFor="let doc of documentsAndFilesList">
<div class="p-list-main mb-2" style="width: 60%;height: auto;" *ngIf="doc.document_type != 'pdf'"> <div class="p-list-main mb-2" style="width: 60%;height: auto;" *ngIf="doc.document_type != 'pdf'">
@ -319,14 +320,14 @@
</div> </div>
</div> </div>
</div> </div>
</div>
<ng-template #noFiles> <ng-template #noFiles>
<mat-card-content> <mat-card-content>
<p style="margin: 20px;">No Files</p> <p style="margin: 20px;">No Files</p>
</mat-card-content> </mat-card-content>
</ng-template> </ng-template>
</ng-template> </ng-template>
</mat-tab> </mat-tab>
</mat-tab-group> </mat-tab-group>

View File

@ -25,5 +25,5 @@ export const environment = {
s3_endpoint: '', s3_endpoint: '',
accessToken:'', accessToken:'',
//apiUrl:'http://localhost/sparqapi/api/' //apiUrl:'http://localhost/sparqapi/api/'
apiEndpoint: 'https://ssa.sineedge.com/sparqapi/api/' apiEndpoint: 'https://ssa.sineedge.com/sparqtest/api/'
}; };