feat: non-individual entity UI improvements — hide individual-only sections, fix legal form display, send extended fields to API

- Hide Family Members tab/section for non-individual entities in client view, create flow, and preview
- Hide Financial & Classification section for non-individual entities in personal data and preview
- Fix legal form column in clients list — fetch legalForm from client API for correct display
- Add person/business icon before client name in list rows
- Remove unsupportedNpd filter — send authorizedSignatory, additionalInfo, dateOfRegistration to API
- Add registration number format hint (mat-hint) based on constitution type
- Add spacing between verification row and constitution type dropdowns
- Reduce table cell padding and prevent action buttons from being clipped
- Add missing MPL-2.0 license headers

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Aditya
2026-04-04 15:10:51 +05:30
co-authored by Claude Opus 4.6
parent ab01111424
commit b890d24bb7
522 changed files with 51991 additions and 21885 deletions
@@ -5,3 +5,212 @@
* 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/.
*/
$border: #e2e8f0;
$gray-50: #f8fafc;
$gray-100: #f1f5f9;
$gray-400: #94a3b8;
$gray-500: #64748b;
$gray-700: #334155;
$gray-900: #0f172a;
// ── Container ──
.org-container {
max-width: 1100px;
margin: 0 auto;
padding: 24px 20px;
}
// ── Page Header ──
.org-header {
display: flex;
align-items: center;
gap: 16px;
margin-bottom: 28px;
&__icon {
width: 44px;
height: 44px;
border-radius: 10px;
background: linear-gradient(135deg, #0d3d78, #1a5276);
display: flex;
align-items: center;
justify-content: center;
color: #fff;
font-size: 18px;
flex-shrink: 0;
}
&__title {
font-size: 20px;
font-weight: 700;
color: $gray-900;
margin: 0;
letter-spacing: -0.3px;
}
&__sub {
font-size: 13px;
color: $gray-500;
margin: 2px 0 0;
}
}
// ── Card Grid ──
.org-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 12px;
@media (max-width: 768px) {
grid-template-columns: 1fr;
}
}
// ── Individual Card ──
.org-card {
display: flex;
align-items: center;
gap: 14px;
padding: 14px 16px;
background: #fff;
border: 1px solid $border;
border-radius: 10px;
text-decoration: none;
cursor: pointer;
transition: all 0.15s ease;
&:hover {
border-color: #cbd5e1;
background: $gray-50;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
.org-card__arrow {
color: $gray-700;
transform: translateX(2px);
}
}
&__icon {
width: 40px;
height: 40px;
border-radius: 9px;
display: flex;
align-items: center;
justify-content: center;
font-size: 15px;
flex-shrink: 0;
&--blue {
background: rgba(59, 130, 246, 0.1);
color: #2563eb;
}
&--amber {
background: rgba(245, 158, 11, 0.1);
color: #d97706;
}
&--green {
background: rgba(34, 197, 94, 0.1);
color: #16a34a;
}
&--emerald {
background: rgba(16, 185, 129, 0.1);
color: #059669;
}
&--purple {
background: rgba(139, 92, 246, 0.1);
color: #7c3aed;
}
&--indigo {
background: rgba(99, 102, 241, 0.1);
color: #4f46e5;
}
&--slate {
background: rgba(100, 116, 139, 0.1);
color: #475569;
}
&--orange {
background: rgba(249, 115, 22, 0.1);
color: #ea580c;
}
&--teal {
background: rgba(20, 184, 166, 0.1);
color: #0d9488;
}
&--cyan {
background: rgba(6, 182, 212, 0.1);
color: #0891b2;
}
&--rose {
background: rgba(244, 63, 94, 0.1);
color: #e11d48;
}
&--red {
background: rgba(239, 68, 68, 0.1);
color: #dc2626;
}
}
&__body {
flex: 1;
min-width: 0;
}
&__title {
font-size: 13.5px;
font-weight: 600;
color: $gray-900;
margin: 0;
line-height: 1.3;
}
&__desc {
font-size: 11.5px;
color: $gray-400;
margin: 3px 0 0;
line-height: 1.35;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
&__arrow {
font-size: 11px;
color: #cbd5e1;
flex-shrink: 0;
transition: all 0.15s ease;
}
}
// ── Dark mode ──
:host-context(.dark-theme) {
.org-header {
&__title { color: #e2e8f0; }
&__sub { color: #94a3b8; }
}
.org-card {
background: #1e1e1e;
border-color: #333;
&:hover {
background: #262626;
border-color: #444;
}
&__title { color: #e2e8f0; }
&__desc { color: #64748b; }
&__arrow { color: #444; }
}
}