feat(cardex): implement cardex module with filters, templates, and service integration

This commit is contained in:
2025-12-23 20:35:20 +03:30
parent e937c994d7
commit 1373cc046d
23 changed files with 473 additions and 134 deletions
@@ -41,11 +41,13 @@ export class UikitFlatpickrJalaliComponent implements OnInit {
ngOnInit(): void {
this.fpInstance = flatpickr(this.wrapperRef.nativeElement, {
...this.options,
now: dayjs().calendar('jalali').format('YYYY/MM/DD'),
locale: 'fa',
altInputClass: 'p-inputtext w-full',
dateFormat: 'Y-m-d',
altFormat: 'Y-m-d',
onChange: (selectedDates: Date[], dateStr: string) => {
this.valueChange.emit(dateStr);
if (this.control) this.control.setValue(dateStr);
if (this.control) this.control.setValue(dayjs(dateStr).toISOString());
},
});
}