BREAKING CHANGE(decorators): Migrate to TC39 standard decorators (accessor) across components, update tsconfig and bump dependencies
This commit is contained in:
@@ -25,43 +25,43 @@ export class DeesInputList extends DeesInputBase<DeesInputList> {
|
||||
|
||||
// INSTANCE
|
||||
@property({ type: Array })
|
||||
public value: string[] = [];
|
||||
accessor value: string[] = [];
|
||||
|
||||
@property({ type: String })
|
||||
public placeholder: string = 'Add new item...';
|
||||
accessor placeholder: string = 'Add new item...';
|
||||
|
||||
@property({ type: Number })
|
||||
public maxItems: number = 0; // 0 means unlimited
|
||||
accessor maxItems: number = 0; // 0 means unlimited
|
||||
|
||||
@property({ type: Number })
|
||||
public minItems: number = 0;
|
||||
accessor minItems: number = 0;
|
||||
|
||||
@property({ type: Boolean })
|
||||
public allowDuplicates: boolean = false;
|
||||
accessor allowDuplicates: boolean = false;
|
||||
|
||||
@property({ type: Boolean })
|
||||
public sortable: boolean = false;
|
||||
accessor sortable: boolean = false;
|
||||
|
||||
@property({ type: Boolean })
|
||||
public confirmDelete: boolean = false;
|
||||
accessor confirmDelete: boolean = false;
|
||||
|
||||
@property({ type: String })
|
||||
public validationText: string = '';
|
||||
accessor validationText: string = '';
|
||||
|
||||
@state()
|
||||
private inputValue: string = '';
|
||||
accessor inputValue: string = '';
|
||||
|
||||
@state()
|
||||
private editingIndex: number = -1;
|
||||
accessor editingIndex: number = -1;
|
||||
|
||||
@state()
|
||||
private editingValue: string = '';
|
||||
accessor editingValue: string = '';
|
||||
|
||||
@state()
|
||||
private draggedIndex: number = -1;
|
||||
accessor draggedIndex: number = -1;
|
||||
|
||||
@state()
|
||||
private dragOverIndex: number = -1;
|
||||
accessor dragOverIndex: number = -1;
|
||||
|
||||
public static styles = [
|
||||
...DeesInputBase.baseStyles,
|
||||
|
||||
Reference in New Issue
Block a user