ngx-drag-drop
Advanced tools
Comparing version 1.0.0-rc.1 to 1.0.0-rc.2
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
255015
2336
0
36