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

@@ -18,31 +18,31 @@ export class DeesPdfPreview extends DeesElement {
public static styles = previewStyles;
@property({ type: String })
public pdfUrl: string = '';
accessor pdfUrl: string = '';
@property({ type: Number })
public currentPreviewPage: number = 1;
accessor currentPreviewPage: number = 1;
@property({ type: Boolean })
public clickable: boolean = true;
accessor clickable: boolean = true;
@property({ type: Number })
private pageCount: number = 0;
accessor pageCount: number = 0;
@property({ type: Boolean })
private loading: boolean = false;
accessor loading: boolean = false;
@property({ type: Boolean })
private rendered: boolean = false;
accessor rendered: boolean = false;
@property({ type: Boolean })
private error: boolean = false;
accessor error: boolean = false;
@property({ type: Boolean })
private isHovering: boolean = false;
accessor isHovering: boolean = false;
@property({ type: Boolean })
private isA4Format: boolean = true;
accessor isA4Format: boolean = true;
private renderPagesTask: Promise<void> | null = null;
private renderPagesQueued: boolean = false;