feat: Refactor sale invoice store to use new response model and improve state management

fix: Update single component to correctly bind invoice data

feat: Enhance partner info model with detailed license status

refactor: Simplify account list component by removing unnecessary details

fix: Correctly reference username in consumer account form

feat: Add POS related fields to consumer account list

chore: Update models to include charge account details for partners

feat: Implement charge account dialog for partner consumers

feat: Create API routes for accounts charge functionality

feat: Add charge account service for handling requests

feat: Introduce license info template component for dashboard

refactor: Update dashboard view to display license information

fix: Improve layout component to handle POS information more effectively

chore: Clean up unused imports and components in various files

feat: Add loading state handling in landing views

feat: Implement charge account form dialog for partner consumers
This commit is contained in:
2026-04-25 15:19:19 +03:30
parent a816c05777
commit 095ae31249
53 changed files with 554 additions and 196 deletions
@@ -2,9 +2,12 @@
<ng-template #title>
<ng-container [ngTemplateOutlet]="header">
<div class="flex items-center gap-10 justify-between">
<h5 class="font-bold">{{ cardTitle }}</h5>
<h5 class="font-bold py-1.5">{{ cardTitle }}</h5>
<div class="flex items-center gap-2 shrink-0">
<ng-container [ngTemplateOutlet]="moreActions"></ng-container>
@if (showRefresh) {
<p-button icon="pi pi-refresh" outlined (click)="refresh()"></p-button>
}
@if (editable) {
<button
pButton
@@ -9,18 +9,19 @@ import {
signal,
TemplateRef,
} from '@angular/core';
import { ButtonDirective } from 'primeng/button';
import { Button, ButtonDirective } from 'primeng/button';
import { Card } from 'primeng/card';
@Component({
selector: 'app-card-data',
standalone: true,
templateUrl: './card-data.component.html',
imports: [Card, CommonModule, ButtonDirective],
imports: [Card, CommonModule, ButtonDirective, Button],
})
export class AppCardComponent {
@Input() cardTitle!: string;
@Input() editable: boolean = false;
@Input() showRefresh: boolean = false;
@Input()
set editMode(v: boolean) {
@@ -32,6 +33,7 @@ export class AppCardComponent {
}
private editModeSignal = signal(false);
@Output() editModeChange = new EventEmitter<boolean>();
@Output() onRefresh = new EventEmitter<void>();
@ContentChild('header', { static: true }) header?: Maybe<TemplateRef<any>>;
@ContentChild('moreActions', { static: true }) moreActions?: Maybe<TemplateRef<any>>;
@@ -47,4 +49,8 @@ export class AppCardComponent {
onEditClick() {
this.editModeChange.emit(!this.editMode);
}
refresh() {
this.onRefresh.emit();
}
}
@@ -232,7 +232,6 @@ export class PageDataListComponent<I> {
getTemplate(col: IColumn): TemplateRef<any> | null {
const v = col.customDataModel;
return v instanceof TemplateRef ? (v as TemplateRef<any>) : null;
}