feat: add refresh functionality to various components

- Implemented refresh event emission in multiple list components across partner and superAdmin modules.
- Updated consumers and customers list components to handle refresh actions.
- Enhanced dashboard component to fetch partner info on initialization.
- Introduced new API method in PartnerService to retrieve current partner data.
- Modified PartnerStore to utilize the new API method for fetching partner information.
- Updated UI elements to reflect changes in partner and license management, including new fields for license renewals.
- Added a new POS display component for better presentation of POS terminal information.
- Updated layout service and top bar to reflect new titles and improve user experience.
- Refactored existing components to ensure consistency and maintainability.
This commit is contained in:
2026-04-24 23:01:44 +03:30
parent 5bb5f10dbf
commit a816c05777
73 changed files with 559 additions and 97 deletions
@@ -58,6 +58,7 @@
[items]="invoice()?.items"
[loading]="loading"
pageTitle=""
(onRefresh)="refresh()"
/>
</app-card-data>
</div>
@@ -4,7 +4,7 @@ import {
PageDataListComponent,
} from '@/shared/components/pageDataList/page-data-list.component';
import { getGoodUnitTypeProperties } from '@/utils';
import { Component, Input } from '@angular/core';
import { Component, EventEmitter, Input, Output } from '@angular/core';
import { Badge } from 'primeng/badge';
import { ButtonDirective } from 'primeng/button';
import { Divider } from 'primeng/divider';
@@ -30,6 +30,8 @@ export class ConsumerSaleInvoiceSharedComponent {
@Input({ required: true }) invoice!: any;
@Input() variant: TConsumerSaleInvoice = 'full';
@Output() onRefresh = new EventEmitter<void>();
printInvoice = () => {
window.print();
};
@@ -86,4 +88,8 @@ export class ConsumerSaleInvoiceSharedComponent {
];
expandedRows: { [key: string]: boolean } = {};
refresh() {
this.onRefresh.emit();
}
}