update superAdmin users business

This commit is contained in:
2026-03-14 16:26:22 +03:30
parent 9bfbef6f64
commit 20be653499
126 changed files with 2891 additions and 169 deletions
+18 -48
View File
@@ -9,58 +9,28 @@ export const MENU_ITEMS = [
},
],
},
// {
// label: 'انبارها',
// icon: 'pi pi-fw pi-box',
// items: [
// {
// label: 'لیست انبارها',
// icon: 'pi pi-fw pi-list',
// routerLink: ['/inventories'],
// },
// ],
// },
// {
// label: 'کالاها',
// icon: 'pi pi-fw pi-tags',
// items: [
// {
// label: 'لیست کالاها',
// icon: 'pi pi-fw pi-list',
// routerLink: ['/products'],
// },
// {
// label: 'برندهای کالا',
// icon: 'pi pi-fw pi-tags',
// routerLink: ['/product-brands'],
// },
// {
// label: 'دسته‌بندی‌های کالا',
// icon: 'pi pi-fw pi-list',
// routerLink: ['/product-categories'],
// },
// ],
// },
// {
// label: 'تامین‌کنندگان',
// icon: 'pi pi-fw pi-users',
// items: [
// {
// label: 'لیست تامین‌کنندگان',
// icon: 'pi pi-fw pi-list',
// routerLink: ['/suppliers'],
// },
// ],
// },
{
label: 'مدیریت اطلاعات مرجع',
icon: 'pi pi-fw pi-cog',
items: [
{
label: 'برندهای دستگاه',
icon: 'pi pi-fw pi-list',
routerLink: ['/super_admin/device_brands'],
},
{
label: 'دستگاه‌ها',
icon: 'pi pi-fw pi-list',
routerLink: ['/super_admin/devices'],
},
],
},
{
label: 'مدیریت سیستم',
icon: 'pi pi-fw pi-cog',
items: [
// {
// label: 'حساب‌های بانکی',
// icon: 'pi pi-fw pi-credit-card',
// routerLink: ['/bankAccounts'],
// },
{
label: 'کاربران',
icon: 'pi pi-fw pi-user',
+1 -1
View File
@@ -19,7 +19,7 @@ export interface RouteInfo {
meta: {
title: string;
icon?: string;
pagePath?: (params?: any) => string;
pagePath?: (...params: any) => string;
};
}
+1 -1
View File
@@ -1,4 +1,4 @@
export default interface ISummary {
id: number;
id: string;
name: string;
}
+3 -1
View File
@@ -34,7 +34,9 @@ export class BreadcrumbService {
}));
addItems(items: MenuItem[]) {
this._items.update((value) => ({ ...value, ...this.mapItems(items) }));
this._items.update((value) => {
return [...value, ...this.mapItems(items)];
});
}
clear() {
+11
View File
@@ -182,6 +182,17 @@ export abstract class EntityStore<
entity,
} as Partial<TState>);
}
override reset(): void {
// @ts-ignore
// @TODO: check to familiar with ts
this.setState({
loading: false,
error: null,
entity: null,
initialized: false,
isRefreshing: false,
});
}
}
/**
@@ -2,7 +2,8 @@ import { ValidatorFn } from '@angular/forms';
// Password must be minimum 8 characters, include at least one uppercase,
// one lowercase, one number and one special character
export const PASSWORD_PATTERN = /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[^A-Za-z0-9]).{8,}$/;
// export const PASSWORD_PATTERN = /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[^A-Za-z0-9]).{8,}$/;
export const PASSWORD_PATTERN = /^[0-9]{6,}$/;
// Validator factory named `password` as requested. Returns `null` for empty
// values so `Validators.required` can be used alongside it when needed.