update license structures and init to setup image uploader
This commit is contained in:
@@ -12,7 +12,7 @@ import {
|
||||
import { FormControl, ReactiveFormsModule } from '@angular/forms';
|
||||
import dayjs from 'dayjs';
|
||||
import flatpickr from 'flatpickr-wrap';
|
||||
import { BaseOptions } from 'flatpickr-wrap/dist/types/options';
|
||||
import { BaseOptions, DateOption } from 'flatpickr-wrap/dist/types/options';
|
||||
import { InputTextModule } from 'primeng/inputtext';
|
||||
import { UikitFieldComponent } from '../uikit-field.component';
|
||||
|
||||
@@ -32,6 +32,8 @@ export class UikitFlatpickrJalaliComponent implements OnInit {
|
||||
@Input() showLabel: boolean = true;
|
||||
@Input() showErrors: boolean = true;
|
||||
@Input() hint?: string;
|
||||
@Input() minDate?: DateOption;
|
||||
@Input() maxDate?: DateOption;
|
||||
|
||||
@Output() valueChange = new EventEmitter<string>();
|
||||
|
||||
@@ -43,6 +45,8 @@ export class UikitFlatpickrJalaliComponent implements OnInit {
|
||||
this.fpInstance = flatpickr(this.wrapperRef.nativeElement, {
|
||||
...this.options,
|
||||
locale: 'fa',
|
||||
minDate: this.minDate,
|
||||
maxDate: this.maxDate,
|
||||
altInputClass: 'p-inputtext w-full',
|
||||
dateFormat: 'Y-m-d',
|
||||
altFormat: 'Y-m-d',
|
||||
|
||||
Reference in New Issue
Block a user