New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

vue-dndrop

Package Overview
Dependencies
Maintainers
2
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-dndrop - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

7

package.json
{
"name": "vue-dndrop",
"version": "1.1.1",
"description": "Vue wrappers for drag n droppin",
"version": "1.1.2",
"description": "Vue wrappers for drag n drop",
"author": "amendx && kutlugsahin",

@@ -20,2 +20,5 @@ "repository": {

"Vue.js",
"vue3",
"vue3.js",
"vue 3.x",
"sortable",

@@ -22,0 +25,0 @@ "drag and drop",

@@ -40,3 +40,3 @@ <p align="center">

```shell
npm i vue-dndrop
npm i vue-dndrop@next
```

@@ -105,7 +105,7 @@

Component that contains the draggable elements or components. Each of its children should be wrapped by **Draggable** component
> Component that contains the draggable elements or components. Each of its children should be wrapped by **Draggable** component
### Properties
Properties define the visual behaviour of the library:
> Properties define the visual behaviour of the library:

@@ -132,4 +132,4 @@ | Property | Type | Default | Description |

Tag name or the node definition to render the root element of the Container.
Default value is 'div'.
> Tag name or the node definition to render the root element of the Container.
> Default value is 'div'.

@@ -155,3 +155,3 @@ ```ts

The lifecycle of a drag is both described, and can be controlled, by a series of [callbacks](#callbacks) and [events](#events), which are illustrated below for a example **containing 3 containers**:
> The lifecycle of a drag is both described, and can be controlled, by a series of [callbacks](#callbacks) and [events](#events), which are illustrated below for a example **containing 3 containers**:

@@ -224,11 +224,11 @@ ```

This can provide handler functions context-sensitive data, such as the loop index or current item.
> This can provide handler functions context-sensitive data, such as the loop index or current item.
## Callbacks
Callbacks provide additional logic and checks before and during user interaction.
> Callbacks provide additional logic and checks before and during user interaction.
### `get-child-payload()`
The function to be called to get the payload object to be passed **onDrop** function.
> The function to be called to get the payload object to be passed **onDrop** function.

@@ -257,3 +257,3 @@ ```jsx

The function to be called by all containers before drag starts to determine the containers to which the drop is possible. Setting this function will override the **group-name** property and only the return value of this function will be taken into account.
> The function to be called by all containers before drag starts to determine the containers to which the drop is possible. Setting this function will override the **group-name** property and only the return value of this function will be taken into account.

@@ -281,4 +281,4 @@ ```jsx

The function to be called by the target container to which the dragged item will be dropped.
Sometimes dragged item's dimensions are not suitable with the target container and dropping animation can be wierd. So it can be disabled by returning **false**. If not set drop animations are enabled.
> The function to be called by the target container to which the dragged item will be dropped.
> Sometimes dragged item's dimensions are not suitable with the target container and dropping animation can be wierd. So it can be disabled by returning **false**. If not set drop animations are enabled.

@@ -306,5 +306,5 @@ ```jsx

The function to be called to get the element that the dragged ghost will be appended. Default parent element is the container itself.
The ghost element is positioned as 'fixed' and appended to given parent element.
But if any anchestor of container has a transform property, ghost element will be positioned relative to that element which breaks the calculations. Thats why if you have any transformed parent element of Containers you should set this property so that it returns any element that has not transformed parent element.
> The function to be called to get the element that the dragged ghost will be appended. Default parent element is the container itself.
> The ghost element is positioned as 'fixed' and appended to given parent element.
> But if any anchestor of container has a transform property, ghost element will be positioned relative to that element which breaks the calculations. Thats why if you have any transformed parent element of Containers you should set this property so that it returns any element that has not transformed parent element.

@@ -329,7 +329,7 @@ ```jsx

Events may call user-defined handlers at particular points in the drag-and-drop lifecycle.
> Events may call user-defined handlers at particular points in the drag-and-drop lifecycle.
### `@drag-start`
Event to be emitted by all containers on drag start.
> Event to be emitted by all containers on drag start.

@@ -356,3 +356,3 @@ ```jsx

The function to be called by all containers on drag end. Called before [drop](#drop) event.
> The function to be called by all containers on drag end. Called before [drop](#drop) event.

@@ -393,3 +393,3 @@ ```jsx

The event to be emitted by the relevant container whenever a dragged item leaves its boundaries while dragging.
> The event to be emitted by the relevant container whenever a dragged item leaves its boundaries while dragging.

@@ -408,3 +408,3 @@ ```jsx

The function to be called by the container which is being drag over, when the index of possible drop position changed in container. Basically it is called each time the draggables in a container slides for opening a space for dragged item. **dropResult** is the only parameter passed to the function which contains the following properties.
> The function to be called by the container which is being drag over, when the index of possible drop position changed in container. Basically it is called each time the draggables in a container slides for opening a space for dragged item. **dropResult** is the only parameter passed to the function which contains the following properties.

@@ -432,3 +432,3 @@ ```jsx

The event to be emitted by any relevant container when drop is over. (After drop animation ends). Source container and any container that could accept drop is considered relevant.
> The event to be emitted by any relevant container when drop is over. (After drop animation ends). Source container and any container that could accept drop is considered relevant.

@@ -457,3 +457,3 @@ ```jsx

Event to be emitted by the current container when drop is not allowed or does not fit the rule applied inside the column/element validation.
> Event to be emitted by the current container when drop is not allowed or does not fit the rule applied inside the column/element validation.

@@ -491,4 +491,4 @@ ```jsx

Tag name or the node definition to render the root element of the Draggable.
Default value is 'div'.
> Tag name or the node definition to render the root element of the Draggable.
> Default value is 'div'.

@@ -495,0 +495,0 @@ ```jsx

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc