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

@@ -21,25 +21,25 @@ import type { ProfileShape } from './dees-input-profilepicture.js';
@customElement('dees-profilepicture-modal')
export class ProfilePictureModal extends DeesElement {
@property({ type: String })
public initialImage: string = '';
accessor initialImage: string = '';
@property({ type: String })
public shape: ProfileShape = 'round';
accessor shape: ProfileShape = 'round';
@property({ type: Number })
public outputSize: number = 800;
accessor outputSize: number = 800;
@property({ type: Number })
public outputQuality: number = 0.95;
accessor outputQuality: number = 0.95;
@state()
private currentStep: 'crop' | 'preview' = 'crop';
accessor currentStep: 'crop' | 'preview' = 'crop';
@state()
private croppedImage: string = '';
accessor croppedImage: string = '';
@state()
private isProcessing: boolean = false;
accessor isProcessing: boolean = false;
private cropper: ImageCropper | null = null;
private windowLayer: any;