The delay (in milliseconds) between removing this object list item's data from the store and resetting the selection. This is necessary because without a delay the resetted selection is overwritten by the on click handler of this object list item which sets the selection to this item.
Configure a list item as a drop target and a drag source. Drop Target: Allows to drop other list items on this list item and is necessary to sort elements inside a list
Drag Source: Allows to drag a list item
Expands the given data array by expanding every element. If the parent data containing the array is provided, a suitable delete function for the expanded elements is created.
Expands the given root data array by expanding every element. If the parent data containing the array is provided, a suitable delete function for the expanded elements is created.
As a difference to the ExpandArray component this component does not use containment properties because it is only used for the root nodes of a tree.
Injects drag and drop related properties into an expanded array
Injects drag and drop (drag source) related properties into a list item
Injects drag and drop (drop target) related properties into a list item
Retrieves an array of properties based on the provided schema.
the schema to check for container properties
the root schema
whether to recurse in case properties have already been found. Set to true for finding all valid, i.e. nested container properties
The array of Property or empty if no properties are available
Returns a flattened list of container properties. A property is being considered a container property if it is an array of objects, meaning that all its children are non-primitive.
The schema key from which this property was created.
The name of the schema the property describes.
The schema is the JsonSchema this property describes.
The parent schema
To indicate whether the schema is in a container or not Properties that are described in array are considered as being in a container.
An array of properties where each property describes a self-contained schema for the corresponding schema
Returns the label of a property based on the best-effort solution
The property contains a schema, label and a property as key
Finding required definitions from parentSchema by using schema refs
The root schema
All the refs of root schema
The current schema refs
Contains the definition attributes for the current schema
SchemaRefs all the required reference paths for subschema
Extract the array index from the given path.
Calculate references for a given schema and copy definitions into the schema
root schema which is used to find all the schema refs
current subschema without resolved references
JsonSchema current subschema with resolved references
Determines the properties of the given data object by using the model mapping. If only one property is given, it is assumed to be the matching one.
The data object to match
The array of properties of root schema
used to filter properties of the given data
The matching Property
Moves the given data from the oldPath to the newPath by deleting the data object at the old path and inserting the data at the new path.
Note: an item at the index of the new path is pushed behind the inserted item
the redux dispatcher used to execute the remove and add actions
Gets the parent path from the given path by cutting of the last segment
The path to get the parent path from
Create a self contained schema.
The schema to use for resolving
The path to resolve
a JsonSchema that is self-contained
Resolves the given local data path against the root data.
the root data to resolve the data from
The path to resolve against the root data
the resolved data or {null} if the path is not a valid path in the root data
The drop target contract for an expanded array. The specified methods are executed by React DnD when appropriate (e.g. a draggable component hovers over an expanded array).
Tests wether the currently dragged object list item can be dropped in this list by checking whether the item's schema id matches with a containment property of this list.
Called when an item was dropped at a valid location (canDrop() === true) The calls also go up the chain when the drop occurred in a nested component. The most nested one is called first, return results are available from the before called component.
Define the drag and drop source (item is dragged) behavior of the list items
Define the drag and drop target (another item is dragged over this item) behavior of list items.
On drop of a dragged item on another dragged item, mark the drop as handled and that the item does not need to be moved. This is the case because the item is already moved on hover.
If the dragged item can be dropped in the list of the hovered item, move it there on the fly.
The properties of the hovered list element
Generated using TypeDoc
The delay in milliseconds before D&D related CSS (e.g. highlighting valid drop targets) is applied.