feat: add 11 banking compliance & accounting report modules
Adds dialog components and feature modules for RBI/banking compliance, KYC, and accounting reports. Wires them into the shell menu (RBI, General Ledger, CKYC Mgmt, Others, Insurance) and dashboard cards. Dialog components (lazy-loaded MatDialog): - PSL Returns (Form III) — dashboard card + RBI menu - ALM Statement of Structural Liquidity (Form ALM-1) — RBI menu - CIMS / XBRL Returns (OSS-2 / PSA / RAL / RCP-UCB) — RBI menu, shared dialog with form-pill switcher - CIC DQR (CIBIL / Experian / Equifax / CRIF, 72-col TUDF) — Others menu + dashboard card - CKYC Compliance Reports (Re-KYC / Risk Review / CERSAI) — CKYC Mgmt - Accounting Reports (P&L / Balance Sheet / Comparative B/S / GL DR/CR / Misc Expense Ledger) — General Ledger menu Feature modules (Route.withShell): - DEAF (/deaf): Form I, Form II, Annex 4, accounts register - DICGC (/dicgc): Slab Report, SAHAY Depositor List - FIU-IND (/fiu): FINnet 2.0 Statement of Financial Transactions - SFT (/sft): Income Tax Section 285BA SFT - CKYC Reports (/ckyc/ckyc-reports): standalone dashboard UI: - Theme-colored icons on 22 wired menu links across 5 menus — visually distinguishes wired (colored) from placeholder (gray) links. - Backdrop classes per dialog in main.scss. All using dummy data (Bharat Urban Bank Ltd, Karthik Kamath as Principal Officer, dummy customer names) — no real bank or customer references. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.7
parent
634003a75c
commit
12bfc81219
@@ -0,0 +1,135 @@
|
||||
<!--
|
||||
Copyright since 2025 Mifos Initiative
|
||||
|
||||
This Source Code Form is subject to the terms of the Mozilla Public
|
||||
License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
-->
|
||||
|
||||
<div class="cic-dlg">
|
||||
<div class="cic-head">
|
||||
<div class="cic-head-left">
|
||||
<div class="cic-head-ic"><fa-icon icon="file-alt"></fa-icon></div>
|
||||
<div>
|
||||
<h2 class="cic-title">Credit Information Companies — Data Quality Report</h2>
|
||||
<p class="cic-sub">
|
||||
Reporting period: <strong>{{ reportingPeriod }}</strong> · as per RBI Master Direction on Credit
|
||||
Information Reporting
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="cic-head-actions">
|
||||
<button
|
||||
mat-stroked-button
|
||||
class="cic-btn-ghost"
|
||||
(click)="downloadAllExcel()"
|
||||
matTooltip="Download all bureaus (CIBIL Consumer schema)"
|
||||
>
|
||||
<fa-icon icon="file-excel"></fa-icon> Download All
|
||||
</button>
|
||||
<button class="cic-close" (click)="close()" matTooltip="Close" aria-label="Close">✕</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- BUREAU TABS -->
|
||||
<div class="cic-tabs">
|
||||
<button *ngFor="let r of reports" class="cic-tab" [class.active]="r.key === activeTab" (click)="setTab(r.key)">
|
||||
<img [src]="r.logo" [alt]="r.name" class="cic-tab-logo" />
|
||||
<span class="cic-tab-name">{{ r.name }}</span>
|
||||
<span class="cic-tab-pct" [ngClass]="dqrBadge(r.dqrPct)">{{ r.dqrPct.toFixed(1) }}%</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="cic-body">
|
||||
<!-- TOP STATS ROW -->
|
||||
<div class="cic-stats">
|
||||
<div class="cic-stat-card cic-stat-gauge">
|
||||
<div class="gauge" [style.--pct.%]="current.dqrPct" [ngClass]="dqrBadge(current.dqrPct)">
|
||||
<div class="gauge-inner">
|
||||
<div class="gauge-pct">{{ current.dqrPct.toFixed(1) }}%</div>
|
||||
<div class="gauge-label">DQR Score</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="cic-stat-card">
|
||||
<div class="cic-stat-l">Status</div>
|
||||
<div class="cic-stat-v">
|
||||
<span class="status-pill" [ngClass]="statusClass(current.status)">{{ current.status }}</span>
|
||||
</div>
|
||||
<div class="cic-stat-meta">
|
||||
File: <span class="mono">{{ current.fileRef }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="cic-stat-card">
|
||||
<div class="cic-stat-l">Last Submitted</div>
|
||||
<div class="cic-stat-v">{{ current.lastSubmitted }}</div>
|
||||
<div class="cic-stat-meta">Next due: {{ current.nextDue }}</div>
|
||||
</div>
|
||||
<div class="cic-stat-card">
|
||||
<div class="cic-stat-l">Records This Cycle</div>
|
||||
<div class="cic-stat-v">{{ current.totalRecords | number }}</div>
|
||||
<div class="cic-stat-meta">
|
||||
<span class="badge ok">{{ current.accepted | number }} accepted</span>
|
||||
<span class="badge warn">{{ current.warnings | number }} warnings</span>
|
||||
<span class="badge err">{{ current.rejected | number }} rejected</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- SUB-DQR BREAKDOWN -->
|
||||
<div class="cic-section">
|
||||
<h3 class="cic-sec-t">Sub-DQR Breakdown</h3>
|
||||
<div class="cic-bars">
|
||||
<div class="cic-bar" *ngFor="let m of current.subMetrics">
|
||||
<div class="cic-bar-h">
|
||||
<span class="cic-bar-l">{{ m.label }}</span>
|
||||
<span class="cic-bar-p" [ngClass]="dqrBadge(m.pct)">{{ m.pct.toFixed(1) }}%</span>
|
||||
</div>
|
||||
<div class="cic-bar-track">
|
||||
<div class="cic-bar-fill" [style.width.%]="m.pct" [ngClass]="dqrBadge(m.pct)"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- ERRORS TABLE -->
|
||||
<div class="cic-section">
|
||||
<div class="cic-sec-h">
|
||||
<h3 class="cic-sec-t">Error & Warning Details — Last Submission</h3>
|
||||
<button
|
||||
mat-flat-button
|
||||
color="primary"
|
||||
class="cic-btn-xls"
|
||||
(click)="downloadExcel()"
|
||||
matTooltip="Download CIBIL Consumer schema (.xls)"
|
||||
>
|
||||
<fa-icon icon="file-excel"></fa-icon> Download Excel
|
||||
</button>
|
||||
</div>
|
||||
<div class="cic-tbl-wrap">
|
||||
<table class="cic-tbl">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Code</th>
|
||||
<th>Segment</th>
|
||||
<th>Description</th>
|
||||
<th class="ta-c">Severity</th>
|
||||
<th class="ta-r">Records</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr *ngFor="let e of current.errors">
|
||||
<td class="mono">{{ e.code }}</td>
|
||||
<td>{{ e.segment }}</td>
|
||||
<td>{{ e.description }}</td>
|
||||
<td class="ta-c">
|
||||
<span class="sev" [ngClass]="'sev-' + e.severity.toLowerCase()">{{ e.severity }}</span>
|
||||
</td>
|
||||
<td class="ta-r mono">{{ e.count | number }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,528 @@
|
||||
/**
|
||||
* Copyright since 2025 Mifos Initiative
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
:host {
|
||||
--cic-good: #15803d;
|
||||
--cic-good-l: #dcfce7;
|
||||
--cic-mid: #d97706;
|
||||
--cic-mid-l: #fef3c7;
|
||||
--cic-low: #c0392b;
|
||||
--cic-low-l: #fdecea;
|
||||
--cic-purple: #6d28d9;
|
||||
--cic-purple-l: #ede9fe;
|
||||
--cic-g50: #f8fafc;
|
||||
--cic-g100: #f1f5f9;
|
||||
--cic-g200: #e2e8f0;
|
||||
--cic-g300: #cbd5e1;
|
||||
--cic-g500: #64748b;
|
||||
--cic-g700: #334155;
|
||||
--cic-g900: #0f172a;
|
||||
|
||||
display: block;
|
||||
font-family:
|
||||
'DM Sans',
|
||||
system-ui,
|
||||
-apple-system,
|
||||
sans-serif;
|
||||
color: var(--cic-g900);
|
||||
}
|
||||
|
||||
.cic-dlg {
|
||||
background: #fff;
|
||||
border-radius: 14px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
max-height: 90vh;
|
||||
}
|
||||
|
||||
/* HEADER */
|
||||
.cic-head {
|
||||
padding: 18px 22px;
|
||||
border-bottom: 1px solid var(--cic-g200);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
flex-shrink: 0;
|
||||
background: linear-gradient(135deg, #f9fafb 0%, #fff 100%);
|
||||
}
|
||||
|
||||
.cic-head-left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.cic-head-ic {
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
border-radius: 11px;
|
||||
background: var(--cic-purple-l);
|
||||
color: var(--cic-purple);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 18px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.cic-title {
|
||||
margin: 0;
|
||||
font-size: 17px;
|
||||
font-weight: 700;
|
||||
color: var(--cic-g900);
|
||||
}
|
||||
|
||||
.cic-sub {
|
||||
margin: 2px 0 0;
|
||||
font-size: 12px;
|
||||
color: var(--cic-g500);
|
||||
}
|
||||
|
||||
.cic-head-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.cic-btn-ghost {
|
||||
font-size: 12px !important;
|
||||
height: 36px !important;
|
||||
}
|
||||
|
||||
.cic-close {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
border-radius: 8px;
|
||||
border: 1px solid var(--cic-g200);
|
||||
background: #fff;
|
||||
font-size: 14px;
|
||||
color: var(--cic-g500);
|
||||
cursor: pointer;
|
||||
transition: all 0.15s;
|
||||
|
||||
&:hover {
|
||||
background: var(--cic-g100);
|
||||
color: var(--cic-g900);
|
||||
}
|
||||
}
|
||||
|
||||
/* TABS */
|
||||
.cic-tabs {
|
||||
display: flex;
|
||||
gap: 0;
|
||||
background: var(--cic-g50);
|
||||
border-bottom: 1px solid var(--cic-g200);
|
||||
padding: 0 22px;
|
||||
overflow-x: auto;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.cic-tab {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 12px 16px;
|
||||
border: none;
|
||||
background: transparent;
|
||||
cursor: pointer;
|
||||
font-family: inherit;
|
||||
border-bottom: 2px solid transparent;
|
||||
transition: all 0.15s;
|
||||
white-space: nowrap;
|
||||
|
||||
&:hover {
|
||||
background: rgb(255 255 255 / 50%);
|
||||
}
|
||||
|
||||
&.active {
|
||||
background: #fff;
|
||||
border-bottom-color: var(--cic-purple);
|
||||
}
|
||||
}
|
||||
|
||||
.cic-tab-logo {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
border-radius: 6px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.cic-tab-name {
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: var(--cic-g700);
|
||||
}
|
||||
|
||||
.cic-tab-pct {
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
padding: 2px 8px;
|
||||
border-radius: 999px;
|
||||
|
||||
&.good {
|
||||
background: var(--cic-good-l);
|
||||
color: var(--cic-good);
|
||||
}
|
||||
|
||||
&.moderate {
|
||||
background: var(--cic-mid-l);
|
||||
color: var(--cic-mid);
|
||||
}
|
||||
|
||||
&.low {
|
||||
background: var(--cic-low-l);
|
||||
color: var(--cic-low);
|
||||
}
|
||||
}
|
||||
|
||||
/* BODY */
|
||||
.cic-body {
|
||||
padding: 18px 22px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 18px;
|
||||
overflow: auto;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
/* TOP STAT CARDS */
|
||||
.cic-stats {
|
||||
display: grid;
|
||||
grid-template-columns: 220px 1fr 1fr 1.4fr;
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.cic-stat-card {
|
||||
background: #fff;
|
||||
border: 1px solid var(--cic-g200);
|
||||
border-radius: 12px;
|
||||
padding: 14px 16px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
box-shadow: 0 1px 3px rgb(0 0 0 / 4%);
|
||||
}
|
||||
|
||||
.cic-stat-l {
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
color: var(--cic-g500);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
}
|
||||
|
||||
.cic-stat-v {
|
||||
font-size: 18px;
|
||||
font-weight: 700;
|
||||
color: var(--cic-g900);
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.cic-stat-meta {
|
||||
font-size: 11px;
|
||||
color: var(--cic-g500);
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
.cic-stat-gauge {
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
/* GAUGE */
|
||||
.gauge {
|
||||
width: 140px;
|
||||
height: 140px;
|
||||
border-radius: 50%;
|
||||
background: conic-gradient(currentcolor calc(var(--pct) * 1%), var(--cic-g100) 0);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
&.good {
|
||||
color: var(--cic-good);
|
||||
}
|
||||
|
||||
&.moderate {
|
||||
color: var(--cic-mid);
|
||||
}
|
||||
|
||||
&.low {
|
||||
color: var(--cic-low);
|
||||
}
|
||||
}
|
||||
|
||||
.gauge-inner {
|
||||
width: 108px;
|
||||
height: 108px;
|
||||
border-radius: 50%;
|
||||
background: #fff;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
box-shadow: inset 0 0 0 1px var(--cic-g200);
|
||||
}
|
||||
|
||||
.gauge-pct {
|
||||
font-size: 22px;
|
||||
font-weight: 700;
|
||||
color: var(--cic-g900);
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.gauge-label {
|
||||
font-size: 10px;
|
||||
color: var(--cic-g500);
|
||||
margin-top: 2px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.06em;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
/* STATUS PILL */
|
||||
.status-pill {
|
||||
display: inline-block;
|
||||
padding: 3px 10px;
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
border-radius: 999px;
|
||||
|
||||
&.st-good {
|
||||
background: var(--cic-good-l);
|
||||
color: var(--cic-good);
|
||||
}
|
||||
|
||||
&.st-mid {
|
||||
background: var(--cic-mid-l);
|
||||
color: var(--cic-mid);
|
||||
}
|
||||
|
||||
&.st-low {
|
||||
background: var(--cic-low-l);
|
||||
color: var(--cic-low);
|
||||
}
|
||||
}
|
||||
|
||||
/* MINI BADGES IN STAT META */
|
||||
.badge {
|
||||
display: inline-block;
|
||||
padding: 2px 8px;
|
||||
border-radius: 999px;
|
||||
font-size: 10px;
|
||||
font-weight: 600;
|
||||
|
||||
&.ok {
|
||||
background: var(--cic-good-l);
|
||||
color: var(--cic-good);
|
||||
}
|
||||
|
||||
&.warn {
|
||||
background: var(--cic-mid-l);
|
||||
color: var(--cic-mid);
|
||||
}
|
||||
|
||||
&.err {
|
||||
background: var(--cic-low-l);
|
||||
color: var(--cic-low);
|
||||
}
|
||||
}
|
||||
|
||||
/* SECTIONS */
|
||||
.cic-section {
|
||||
background: #fff;
|
||||
border: 1px solid var(--cic-g200);
|
||||
border-radius: 12px;
|
||||
padding: 16px 18px;
|
||||
box-shadow: 0 1px 3px rgb(0 0 0 / 4%);
|
||||
}
|
||||
|
||||
.cic-sec-h {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.cic-sec-t {
|
||||
margin: 0 0 12px;
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
color: var(--cic-g700);
|
||||
}
|
||||
|
||||
.cic-sec-h .cic-sec-t {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.cic-btn-xls {
|
||||
font-size: 12px !important;
|
||||
height: 34px !important;
|
||||
color: #fff !important;
|
||||
background: #16a34a !important;
|
||||
}
|
||||
|
||||
/* SUB-DQR BARS */
|
||||
.cic-bars {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 14px 24px;
|
||||
}
|
||||
|
||||
.cic-bar-h {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.cic-bar-l {
|
||||
font-size: 12px;
|
||||
color: var(--cic-g700);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.cic-bar-p {
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
|
||||
&.good {
|
||||
color: var(--cic-good);
|
||||
}
|
||||
|
||||
&.moderate {
|
||||
color: var(--cic-mid);
|
||||
}
|
||||
|
||||
&.low {
|
||||
color: var(--cic-low);
|
||||
}
|
||||
}
|
||||
|
||||
.cic-bar-track {
|
||||
height: 7px;
|
||||
background: var(--cic-g100);
|
||||
border-radius: 4px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.cic-bar-fill {
|
||||
height: 100%;
|
||||
border-radius: 4px;
|
||||
transition: width 0.3s ease-out;
|
||||
|
||||
&.good {
|
||||
background: var(--cic-good);
|
||||
}
|
||||
|
||||
&.moderate {
|
||||
background: var(--cic-mid);
|
||||
}
|
||||
|
||||
&.low {
|
||||
background: var(--cic-low);
|
||||
}
|
||||
}
|
||||
|
||||
/* ERRORS TABLE */
|
||||
.cic-tbl-wrap {
|
||||
border: 1px solid var(--cic-g200);
|
||||
border-radius: 8px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.cic-tbl {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
|
||||
th {
|
||||
text-align: left;
|
||||
padding: 10px 14px;
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
color: var(--cic-g500);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
background: var(--cic-g50);
|
||||
border-bottom: 1px solid var(--cic-g200);
|
||||
}
|
||||
|
||||
td {
|
||||
padding: 10px 14px;
|
||||
border-bottom: 1px solid var(--cic-g100);
|
||||
font-size: 13px;
|
||||
color: var(--cic-g700);
|
||||
}
|
||||
|
||||
tr:last-child td {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
tr:hover td {
|
||||
background: var(--cic-g50);
|
||||
}
|
||||
}
|
||||
|
||||
.ta-c {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.ta-r {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.mono {
|
||||
font-family: 'DM Mono', monospace;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.sev {
|
||||
display: inline-block;
|
||||
padding: 2px 9px;
|
||||
border-radius: 999px;
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
|
||||
&.sev-critical {
|
||||
background: var(--cic-low-l);
|
||||
color: var(--cic-low);
|
||||
}
|
||||
|
||||
&.sev-warning {
|
||||
background: var(--cic-mid-l);
|
||||
color: var(--cic-mid);
|
||||
}
|
||||
|
||||
&.sev-info {
|
||||
background: #e0e7ff;
|
||||
color: #4338ca;
|
||||
}
|
||||
}
|
||||
|
||||
/* RESPONSIVE */
|
||||
@media (width <= 1100px) {
|
||||
.cic-stats {
|
||||
grid-template-columns: 1fr 1fr;
|
||||
}
|
||||
|
||||
.cic-bars {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
@media (width <= 700px) {
|
||||
.cic-stats {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user