update pos consumer

This commit is contained in:
2026-03-29 18:07:10 +03:30
parent 1e2f94261e
commit c10623bc3f
86 changed files with 2935 additions and 385 deletions
@@ -1,20 +1,29 @@
import { AuthService } from '@/core';
import { PageLoadingComponent } from '@/shared/components/page-loading.component';
import { JalaliDateDirective } from '@/shared/directives';
import { Component, computed, inject } from '@angular/core';
import { RouterOutlet } from '@angular/router';
import images from 'src/assets/images';
import { PosStore } from '../pos.store';
@Component({
selector: 'pos-layout',
templateUrl: './layout.component.html',
imports: [PageLoadingComponent, RouterOutlet],
imports: [PageLoadingComponent, RouterOutlet, JalaliDateDirective],
})
export class PosLayoutComponent {
constructor() {}
private readonly store = inject(PosStore);
private readonly authService = inject(AuthService);
readonly loading = computed(() => this.store.loading());
readonly posInfo = computed(() => this.store.entity());
readonly userInfo = computed(() => this.authService.currentAccount());
placeholderLogo = images.placeholders.logo;
now = new Date();
getData() {
this.store.getData();