Assign Item to existing Shelves
v-display
: displays the name of the Positionv-autocomplete
: selects an items from shelvesdraggable
: drags an item to a positiondiv
: displays the element(item) from list
selectedShelf()
:selects all Shelfpositions for each Shelf from ShelfDirectDataService and adds it to Array
created()
:creates an Event Listener to handle windowsize(resize)
destroyed()
:destroys an Event Listener to handle windowsize(resize)
sizeOfBox()
:gets the size of the box of the shelf depending of the windowsizedragOptionsChips()
: Settings for the draggable Objects
mounted()
: Gets all Shelves as Array via shelvesDataService
onResize
: sets the windowsize depending the innerhight/widthdeleteItemFromPosition (x, y)
: deletes Item with Coordinate x,y from PositionupdateShelf ()
: updates the Shelf after Position is filled with Itemoccupied (x, y)
: Returns true if the filtered Array filedcheckOccupiedPositions
: checks the occupied Position in the selected ShelfembeddedPositionNumber ()
: Returns PositionNumber according to Selected PositionfetchItemsFromLabels (labels : Label[])
: fills this.items with items which have all selected labels as AttributesassignItem(item:Item)
: Assigns Item to Position in Backend