feat: Add Cardex module with filters and invoices components

- Implemented Cardex routes and integrated with the main application routing.
- Created filters component for Cardex to filter inventory and product data.
- Developed invoices component to display supplier invoices with detailed views.
- Enhanced Products module with pagination and state management using a store.
- Updated Suppliers module to include invoice management and detailed supplier views.
- Refactored state management in Products and Suppliers to utilize signals for reactive updates.
- Added new models and services to support the Cardex functionality.
- Improved UI components for better user experience in displaying data.
This commit is contained in:
2025-12-21 19:09:13 +03:30
parent 108d192f88
commit e937c994d7
29 changed files with 716 additions and 49 deletions
@@ -0,0 +1,5 @@
const baseUrl = '/api/v1/cardex';
export const CARDEX_API_ROUTES = {
cardex: () => `${baseUrl}`,
};
@@ -0,0 +1,2 @@
export * from './apiRoutes';
export * from './routes';
@@ -0,0 +1,17 @@
import { NamedRoutes } from '@/core';
import { Routes } from '@angular/router';
export type TCARDEXRouteNames = 'CARDEX';
export const cardexNamedRoutes: NamedRoutes<TCARDEXRouteNames> = {
CARDEX: {
path: 'cardex',
loadComponent: () => import('../../views/cardex.component').then((m) => m.CardexPageComponent),
meta: {
title: 'کاردکس',
pagePath: () => '/cardex',
},
},
};
export const CARDEX_ROUTES: Routes = Object.values(cardexNamedRoutes);