BREAKING CHANGE(decorators): Migrate to TC39 standard decorators (accessor) across components, update tsconfig and bump dependencies

This commit is contained in:
2025-11-17 13:27:11 +00:00
parent 70c29c778c
commit 92f69e2aa6
75 changed files with 2142 additions and 1901 deletions

View File

@@ -24,61 +24,61 @@ export class DeesInputDatepicker extends DeesInputBase<DeesInputDatepicker> {
public static demo = demoFunc;
@property({ type: String })
public value: string = '';
accessor value: string = '';
@property({ type: Boolean })
public enableTime: boolean = false;
accessor enableTime: boolean = false;
@property({ type: String })
public timeFormat: '24h' | '12h' = '24h';
accessor timeFormat: '24h' | '12h' = '24h';
@property({ type: Number })
public minuteIncrement: number = 1;
accessor minuteIncrement: number = 1;
@property({ type: String })
public dateFormat: string = 'YYYY-MM-DD';
accessor dateFormat: string = 'YYYY-MM-DD';
@property({ type: String })
public minDate: string = '';
accessor minDate: string = '';
@property({ type: String })
public maxDate: string = '';
accessor maxDate: string = '';
@property({ type: Array })
public disabledDates: string[] = [];
accessor disabledDates: string[] = [];
@property({ type: Number })
public weekStartsOn: 0 | 1 = 1; // Default to Monday
accessor weekStartsOn: 0 | 1 = 1; // Default to Monday
@property({ type: String })
public placeholder: string = 'YYYY-MM-DD';
accessor placeholder: string = 'YYYY-MM-DD';
@property({ type: Boolean })
public enableTimezone: boolean = false;
accessor enableTimezone: boolean = false;
@property({ type: String })
public timezone: string = Intl.DateTimeFormat().resolvedOptions().timeZone;
accessor timezone: string = Intl.DateTimeFormat().resolvedOptions().timeZone;
@property({ type: Array })
public events: IDateEvent[] = [];
accessor events: IDateEvent[] = [];
@state()
public isOpened: boolean = false;
accessor isOpened: boolean = false;
@state()
public opensToTop: boolean = false;
accessor opensToTop: boolean = false;
@state()
public selectedDate: Date | null = null;
accessor selectedDate: Date | null = null;
@state()
public viewDate: Date = new Date();
accessor viewDate: Date = new Date();
@state()
public selectedHour: number = 0;
accessor selectedHour: number = 0;
@state()
public selectedMinute: number = 0;
accessor selectedMinute: number = 0;
public static styles = datepickerStyles;