|
|
|
@ -5,24 +5,21 @@ import AssetImageView from '../view/AssetImageView'; |
|
|
|
import TypeableCollection from '../../domain_abstract/model/TypeableCollection'; |
|
|
|
|
|
|
|
export class Assets extends CollectionWithPatches<Asset> { |
|
|
|
types: any[] | undefined; |
|
|
|
target?: any; |
|
|
|
onSelect?: any; |
|
|
|
getTypes!: () => any[]; |
|
|
|
getType!: (id: string) => any; |
|
|
|
getBaseType!: () => any; |
|
|
|
recognizeType!: (value: any) => any; |
|
|
|
addType!: (id: string, definition: any) => void; |
|
|
|
|
|
|
|
constructor(models?: any, options?: any) { |
|
|
|
super(models, options); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
export interface Assets { |
|
|
|
types: any[]; |
|
|
|
target?: any; |
|
|
|
onSelect?: any; |
|
|
|
getTypes(): any[]; |
|
|
|
getType(id: string): any; |
|
|
|
getBaseType(): any; |
|
|
|
recognizeType(value: any): any; |
|
|
|
addType(id: string, definition: any): void; |
|
|
|
} |
|
|
|
|
|
|
|
Object.assign(Assets.prototype, TypeableCollection); |
|
|
|
|
|
|
|
Assets.prototype.types = [ |
|
|
|
{ |
|
|
|
id: 'image', |
|
|
|
|