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

@@ -29,42 +29,42 @@ export class DeesButton extends DeesElement {
return true;
}
})
public text: string;
accessor text: string;
@property()
public eventDetailData: string;
accessor eventDetailData: string;
@property({
type: Boolean,
reflect: true,
})
public disabled = false;
accessor disabled = false;
@property({
type: Boolean
})
public isHidden = false;
accessor isHidden = false;
@property({
type: String
})
public type: 'default' | 'destructive' | 'outline' | 'secondary' | 'ghost' | 'link' | 'normal' | 'highlighted' | 'discreet' | 'big' = 'default';
@property({
type: String
})
public size: 'default' | 'sm' | 'lg' | 'icon' = 'default';
accessor type: 'default' | 'destructive' | 'outline' | 'secondary' | 'ghost' | 'link' | 'normal' | 'highlighted' | 'discreet' | 'big' = 'default';
@property({
type: String
})
public status: 'normal' | 'pending' | 'success' | 'error' = 'normal';
accessor size: 'default' | 'sm' | 'lg' | 'icon' = 'default';
@property({
type: String
})
accessor status: 'normal' | 'pending' | 'success' | 'error' = 'normal';
@property({
type: Boolean,
reflect: true
})
public insideForm: boolean = false;
accessor insideForm: boolean = false;
constructor() {
super();