feat: Enhance customer and inventory components with new features and improvements

This commit is contained in:
2025-12-15 18:00:45 +03:30
parent 17fa65407c
commit 108d192f88
24 changed files with 207 additions and 78 deletions
@@ -10,6 +10,7 @@ import {
ViewChild,
} from '@angular/core';
import { FormControl, ReactiveFormsModule } from '@angular/forms';
import dayjs from 'dayjs';
import flatpickr from 'flatpickr-wrap';
import { BaseOptions } from 'flatpickr-wrap/dist/types/options';
import { InputTextModule } from 'primeng/inputtext';
@@ -40,6 +41,7 @@ export class UikitFlatpickrJalaliComponent implements OnInit {
ngOnInit(): void {
this.fpInstance = flatpickr(this.wrapperRef.nativeElement, {
...this.options,
now: dayjs().calendar('jalali').format('YYYY/MM/DD'),
altInputClass: 'p-inputtext w-full',
onChange: (selectedDates: Date[], dateStr: string) => {
this.valueChange.emit(dateStr);