Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ngx-drag-drop

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-drag-drop - npm Package Compare versions

Comparing version 1.0.0-rc.1 to 1.0.0-rc.2

7

bundles/ngx-drag-drop.umd.js

@@ -198,3 +198,3 @@ (function (global, factory) {

* @param {?} effectAllowed
* @param {?=} type
* @param {?} type
* @return {?}

@@ -366,3 +366,3 @@ */

// initialize global state
startDrag(event, this.dndEffectAllowed);
startDrag(event, this.dndEffectAllowed, this.dndType);
setDragData(event, { data: this.dndDraggable, type: this.dndType }, dndState.effectAllowed);

@@ -520,2 +520,5 @@ // add dragging source css class on first drag event

}
if (Array.isArray(this.dndDropzone) === false) {
throw new Error("dndDropzone: bound value to [dndDropzone] must be an array!");
}
// if dropzone contains type -> allow it

@@ -522,0 +525,0 @@ return this.dndDropzone.indexOf(type) !== -1;

@@ -8,3 +8,3 @@ import { DropEffect, EffectAllowed } from "./dnd-types";

}
export declare function startDrag(event: DragEvent, effectAllowed: EffectAllowed, type?: string): void;
export declare function startDrag(event: DragEvent, effectAllowed: EffectAllowed, type: string | undefined): void;
export declare function endDrag(): void;

@@ -11,0 +11,0 @@ export declare function setDropEffect(event: DragEvent, dropEffect: DropEffect): void;

@@ -194,3 +194,3 @@ import { ContentChild, Directive, ElementRef, EventEmitter, HostBinding, HostListener, Input, NgModule, Output, Renderer2 } from '@angular/core';

* @param {?} effectAllowed
* @param {?=} type
* @param {?} type
* @return {?}

@@ -362,3 +362,3 @@ */

// initialize global state
startDrag(event, this.dndEffectAllowed);
startDrag(event, this.dndEffectAllowed, this.dndType);
setDragData(event, { data: this.dndDraggable, type: this.dndType }, dndState.effectAllowed);

@@ -516,2 +516,5 @@ // add dragging source css class on first drag event

}
if (Array.isArray(this.dndDropzone) === false) {
throw new Error("dndDropzone: bound value to [dndDropzone] must be an array!");
}
// if dropzone contains type -> allow it

@@ -518,0 +521,0 @@ return this.dndDropzone.indexOf(type) !== -1;

@@ -196,3 +196,3 @@ import { ContentChild, Directive, ElementRef, EventEmitter, HostBinding, HostListener, Input, NgModule, Output, Renderer2 } from '@angular/core';

* @param {?} effectAllowed
* @param {?=} type
* @param {?} type
* @return {?}

@@ -360,3 +360,3 @@ */

// initialize global state
startDrag(event, this.dndEffectAllowed);
startDrag(event, this.dndEffectAllowed, this.dndType);
setDragData(event, { data: this.dndDraggable, type: this.dndType }, dndState.effectAllowed);

@@ -509,2 +509,5 @@ // add dragging source css class on first drag event

}
if (Array.isArray(this.dndDropzone) === false) {
throw new Error("dndDropzone: bound value to [dndDropzone] must be an array!");
}
// if dropzone contains type -> allow it

@@ -511,0 +514,0 @@ return this.dndDropzone.indexOf(type) !== -1;

{
"name": "ngx-drag-drop",
"version": "1.0.0-rc.1",
"version": "1.0.0-rc.2",
"description": "Angular directives using the native HTML Drag And Drop API",

@@ -29,4 +29,5 @@ "repository": {

"ng": "ng",
"start": "npm run build:lib && ng serve",
"build": "ng build --prod",
"start": "npm run build:lib && npm run workaround && ng serve",
"workaround": "rm -rf node_modules/ngx-drag-drop && cp -R dist node_modules/ngx-drag-drop",
"build": "ng build --prod --build-optimizer",
"build:lib": "ng-packagr -p ng-package.json",

@@ -58,2 +59,3 @@ "publish:stable": "npm publish dist",

"core-js": "^2.4.1",
"hammerjs": "^2.0.8",
"jasmine-core": "~2.5.2",

@@ -60,0 +62,0 @@ "jasmine-spec-reporter": "~3.2.0",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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