samvera-deprecated / browse-everything-components

Web Components for browse-everything user interfaces
MIT License
0 stars 2 forks source link

Implement a Bytestream Component #3

Open jrgriffiniii opened 4 years ago

jrgriffiniii commented 4 years ago

This should model file resources in BrowseEverything which can be selected within the Upload form. I suspect that they should contain some file metadata and wrap the behavior of https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox (as they are going to be selected by users during the Upload submission process).

jrgriffiniii commented 4 years ago

Assigning to @randalldfloyd

jrgriffiniii commented 4 years ago

Please see a screenshot of the file entries in the current UI: image

jrgriffiniii commented 4 years ago

As modeled within the BrowseEverything API, the properties for this should resemble something along the following:

@Prop() uuid!: string;
@Prop() location!: string;
@Prop() container: Container;
@Prop() name!: string;
@Prop() size: number;
@Prop() mtime: number;
@Prop() mediaType: string

I would have preferred to use @Prop() id!: string;, but I'm afraid that Stencil does not permit id to be used.