BREAKING CHANGE(decorators): Migrate to TC39 standard decorators (accessor) across components, update tsconfig and bump dependencies
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user