Comparing version 4.1.0 to 4.2.0
19
index.js
@@ -21,3 +21,3 @@ // Copyright (C) 2016 Sergey Akopkokhyants | ||
]; | ||
export var DndModule = (function () { | ||
var DndModule = (function () { | ||
function DndModule() { | ||
@@ -31,11 +31,12 @@ } | ||
}; | ||
DndModule.decorators = [ | ||
{ type: NgModule, args: [{ | ||
declarations: [DraggableComponent, DraggableHandleComponent, DroppableComponent, SortableContainer, SortableComponent, SortableHandleComponent], | ||
exports: [DraggableComponent, DraggableHandleComponent, DroppableComponent, SortableContainer, SortableComponent, SortableHandleComponent], | ||
},] }, | ||
]; | ||
/** @nocollapse */ | ||
DndModule.ctorParameters = function () { return []; }; | ||
return DndModule; | ||
}()); | ||
export { DndModule }; | ||
DndModule.decorators = [ | ||
{ type: NgModule, args: [{ | ||
declarations: [DraggableComponent, DraggableHandleComponent, DroppableComponent, SortableContainer, SortableComponent, SortableHandleComponent], | ||
exports: [DraggableComponent, DraggableHandleComponent, DroppableComponent, SortableContainer, SortableComponent, SortableHandleComponent], | ||
},] }, | ||
]; | ||
/** @nocollapse */ | ||
DndModule.ctorParameters = function () { return []; }; |
{ | ||
"name": "ng2-dnd", | ||
"description": "Angular 2 Drag-and-Drop without dependencies", | ||
"version": "4.1.0", | ||
"version": "4.2.0", | ||
"scripts": { | ||
@@ -38,39 +38,38 @@ "test": "karma start", | ||
"devDependencies": { | ||
"@angular/common": "^2.4.4", | ||
"@angular/compiler": "^2.4.4", | ||
"@angular/compiler-cli": "^2.4.4", | ||
"@angular/core": "^2.4.4", | ||
"@angular/platform-browser": "^2.4.4", | ||
"@angular/platform-browser-dynamic": "^2.4.4", | ||
"@angular/platform-server": "^2.4.4", | ||
"@types/hammerjs": "2.0.33", | ||
"@types/jasmine": "2.5.37", | ||
"@types/node": "6.0.46", | ||
"awesome-typescript-loader": "2.2.4", | ||
"codelyzer": "2.0.0-beta.2", | ||
"commitizen": "2.8.6", | ||
"core-js": "2.4.1", | ||
"cz-conventional-changelog": "1.2.0", | ||
"istanbul-instrumenter-loader": "0.2.0", | ||
"jasmine-core": "2.5.2", | ||
"karma": "1.3.0", | ||
"karma-chrome-launcher": "2.0.0", | ||
"karma-firefox-launcher": "1.0.0", | ||
"karma-coverage": "1.1.1", | ||
"karma-jasmine": "1.0.2", | ||
"karma-mocha-reporter": "^2.1.0", | ||
"karma-remap-coverage": "~0.1.2", | ||
"@angular/common": "^2.4.4 || ^4.0.0", | ||
"@angular/compiler": "^2.4.4 || ^4.0.0", | ||
"@angular/compiler-cli": "^2.4.4 || ^4.0.0", | ||
"@angular/core": "^2.4.4 || ^4.0.0", | ||
"@angular/platform-browser": "^2.4.4 || ^4.0.0", | ||
"@angular/platform-browser-dynamic": "^2.4.4 || ^4.0.0", | ||
"@types/hammerjs": "^2.0.34", | ||
"@types/jasmine": "^2.5.51", | ||
"@types/node": "^7.0.29", | ||
"awesome-typescript-loader": "^3.1.3", | ||
"codelyzer": "^3.0.1", | ||
"commitizen": "^2.9.6", | ||
"core-js": "^2.4.1", | ||
"cz-conventional-changelog": "^2.0.0", | ||
"istanbul-instrumenter-loader": "^2.0.0", | ||
"jasmine-core": "^2.6.2", | ||
"karma": "^1.7.0", | ||
"karma-chrome-launcher": "^2.1.1", | ||
"karma-coverage": "^1.1.1", | ||
"karma-firefox-launcher": "^1.0.1", | ||
"karma-jasmine": "^1.1.0", | ||
"karma-mocha-reporter": "^2.2.3", | ||
"karma-remap-coverage": "~0.1.4", | ||
"karma-sourcemap-loader": "^0.3.7", | ||
"karma-webpack": "^2.0.1", | ||
"loader-utils": "~0.2.16", | ||
"reflect-metadata": "0.1.8", | ||
"rxjs": "^5.0.3", | ||
"semantic-release": "4.3.5", | ||
"source-map-loader": "0.1.5", | ||
"karma-webpack": "^2.0.3", | ||
"loader-utils": "^1.1.0", | ||
"reflect-metadata": "^0.1.10", | ||
"rxjs": "^5.4.0", | ||
"semantic-release": "^6.3.6", | ||
"source-map-loader": "^0.2.1", | ||
"ts-helpers": "1.1.2", | ||
"tslint": "~4.0.0", | ||
"tslint-loader": "3.3.0", | ||
"typescript": "2.0.10", | ||
"webpack": "2.2.0", | ||
"zone.js": "^0.7.6" | ||
"tslint": "^5.4.3", | ||
"tslint-loader": "^3.5.3", | ||
"typescript": "^2.3.4", | ||
"webpack": "^2.6.1", | ||
"zone.js": "^0.8.12" | ||
}, | ||
@@ -82,2 +81,2 @@ "config": { | ||
} | ||
} | ||
} |
@@ -70,3 +70,3 @@ # Angular 2 Drag-and-Drop [![npm version](https://badge.fury.io/js/ng2-dnd.svg)](https://badge.fury.io/js/ng2-dnd) [![npm monthly downloads](https://img.shields.io/npm/dm/ng2-dnd.svg?style=flat-square)](https://www.npmjs.com/package/ng2-dnd) | ||
BrowserModule, | ||
DndModule.forRoot() | ||
DndModule | ||
], | ||
@@ -153,3 +153,2 @@ exports: [BrowserModule, DndModule], | ||
simpleDrop: any = null; | ||
}simpleDrop: any = null; | ||
} | ||
@@ -156,0 +155,0 @@ ``` |
@@ -9,3 +9,3 @@ // Copyright (C) 2016 Sergey Akopkokhyants | ||
import { isString, isFunction, isPresent, createImage, callFun } from './dnd.utils'; | ||
export var AbstractComponent = (function () { | ||
var AbstractComponent = (function () { | ||
function AbstractComponent(elemRef, _dragDropService, _config, _cdr) { | ||
@@ -223,15 +223,16 @@ var _this = this; | ||
AbstractComponent.prototype._onDragEndCallback = function (event) { }; | ||
AbstractComponent.decorators = [ | ||
{ type: Injectable }, | ||
]; | ||
/** @nocollapse */ | ||
AbstractComponent.ctorParameters = function () { return [ | ||
{ type: ElementRef, }, | ||
{ type: DragDropService, }, | ||
{ type: DragDropConfig, }, | ||
{ type: ChangeDetectorRef, }, | ||
]; }; | ||
return AbstractComponent; | ||
}()); | ||
export var AbstractHandleComponent = (function () { | ||
export { AbstractComponent }; | ||
AbstractComponent.decorators = [ | ||
{ type: Injectable }, | ||
]; | ||
/** @nocollapse */ | ||
AbstractComponent.ctorParameters = function () { return [ | ||
{ type: ElementRef, }, | ||
{ type: DragDropService, }, | ||
{ type: DragDropConfig, }, | ||
{ type: ChangeDetectorRef, }, | ||
]; }; | ||
var AbstractHandleComponent = (function () { | ||
function AbstractHandleComponent(elemRef, _dragDropService, _config, _Component, _cdr) { | ||
@@ -247,1 +248,2 @@ this._dragDropService = _dragDropService; | ||
}()); | ||
export { AbstractHandleComponent }; |
@@ -5,13 +5,14 @@ // Copyright (C) 2016 Sergey Akopkokhyants | ||
import { isString } from './dnd.utils'; | ||
export var DataTransferEffect = (function () { | ||
var DataTransferEffect = (function () { | ||
function DataTransferEffect(name) { | ||
this.name = name; | ||
} | ||
DataTransferEffect.COPY = new DataTransferEffect('copy'); | ||
DataTransferEffect.LINK = new DataTransferEffect('link'); | ||
DataTransferEffect.MOVE = new DataTransferEffect('move'); | ||
DataTransferEffect.NONE = new DataTransferEffect('none'); | ||
return DataTransferEffect; | ||
}()); | ||
export var DragImage = (function () { | ||
export { DataTransferEffect }; | ||
DataTransferEffect.COPY = new DataTransferEffect('copy'); | ||
DataTransferEffect.LINK = new DataTransferEffect('link'); | ||
DataTransferEffect.MOVE = new DataTransferEffect('move'); | ||
DataTransferEffect.NONE = new DataTransferEffect('none'); | ||
var DragImage = (function () { | ||
function DragImage(imageElement, x_offset, y_offset) { | ||
@@ -32,3 +33,4 @@ if (x_offset === void 0) { x_offset = 0; } | ||
}()); | ||
export var DragDropConfig = (function () { | ||
export { DragImage }; | ||
var DragDropConfig = (function () { | ||
function DragDropConfig() { | ||
@@ -46,1 +48,2 @@ this.onDragStartClass = "dnd-drag-start"; | ||
}()); | ||
export { DragDropConfig }; |
@@ -7,3 +7,3 @@ // Copyright (C) 2016 Sergey Akopkokhyants | ||
import { isPresent } from './dnd.utils'; | ||
export var DragDropData = (function () { | ||
var DragDropData = (function () { | ||
function DragDropData() { | ||
@@ -13,20 +13,22 @@ } | ||
}()); | ||
export { DragDropData }; | ||
export function dragDropServiceFactory() { | ||
return new DragDropService(); | ||
} | ||
export var DragDropService = (function () { | ||
var DragDropService = (function () { | ||
function DragDropService() { | ||
this.allowedDropZones = []; | ||
} | ||
DragDropService.decorators = [ | ||
{ type: Injectable }, | ||
]; | ||
/** @nocollapse */ | ||
DragDropService.ctorParameters = function () { return []; }; | ||
return DragDropService; | ||
}()); | ||
export { DragDropService }; | ||
DragDropService.decorators = [ | ||
{ type: Injectable }, | ||
]; | ||
/** @nocollapse */ | ||
DragDropService.ctorParameters = function () { return []; }; | ||
export function dragDropSortableServiceFactory(config) { | ||
return new DragDropSortableService(config); | ||
} | ||
export var DragDropSortableService = (function () { | ||
var DragDropSortableService = (function () { | ||
function DragDropSortableService(_config) { | ||
@@ -51,10 +53,11 @@ this._config = _config; | ||
}; | ||
DragDropSortableService.decorators = [ | ||
{ type: Injectable }, | ||
]; | ||
/** @nocollapse */ | ||
DragDropSortableService.ctorParameters = function () { return [ | ||
{ type: DragDropConfig, }, | ||
]; }; | ||
return DragDropSortableService; | ||
}()); | ||
export { DragDropSortableService }; | ||
DragDropSortableService.decorators = [ | ||
{ type: Injectable }, | ||
]; | ||
/** @nocollapse */ | ||
DragDropSortableService.ctorParameters = function () { return [ | ||
{ type: DragDropConfig, }, | ||
]; }; |
/** | ||
* Check and return true if an object is type of string | ||
*/ | ||
export function isString(obj) { | ||
/** | ||
* Check and return true if an object is type of string | ||
*/ export function isString(obj) { | ||
return typeof obj === "string"; | ||
@@ -6,0 +8,0 @@ } |
// Copyright (C) 2016 Sergey Akopkokhyants | ||
// This project is licensed under the terms of the MIT license. | ||
// https://github.com/akserg/ng2-dnd | ||
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var __extends = (this && this.__extends) || (function () { | ||
var extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return function (d, b) { | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
})(); | ||
import { ChangeDetectorRef } from '@angular/core'; | ||
@@ -14,11 +19,11 @@ import { Directive, Input, Output, EventEmitter, ElementRef } from '@angular/core'; | ||
import { DragDropService } from './dnd.service'; | ||
export var DraggableComponent = (function (_super) { | ||
var DraggableComponent = (function (_super) { | ||
__extends(DraggableComponent, _super); | ||
function DraggableComponent(elemRef, dragDropService, config, cdr) { | ||
_super.call(this, elemRef, dragDropService, config, cdr); | ||
var _this = _super.call(this, elemRef, dragDropService, config, cdr) || this; | ||
/** | ||
* Callback function called when the drag actions happened. | ||
*/ | ||
this.onDragStart = new EventEmitter(); | ||
this.onDragEnd = new EventEmitter(); | ||
_this.onDragStart = new EventEmitter(); | ||
_this.onDragEnd = new EventEmitter(); | ||
/** | ||
@@ -28,5 +33,6 @@ * Callback function called when the drag action ends with a valid drop action. | ||
*/ | ||
this.onDragSuccessCallback = new EventEmitter(); | ||
this._defaultCursor = this._elem.style.cursor; | ||
this.dragEnabled = true; | ||
_this.onDragSuccessCallback = new EventEmitter(); | ||
_this._defaultCursor = _this._elem.style.cursor; | ||
_this.dragEnabled = true; | ||
return _this; | ||
} | ||
@@ -83,43 +89,45 @@ Object.defineProperty(DraggableComponent.prototype, "draggable", { | ||
}; | ||
DraggableComponent.decorators = [ | ||
{ type: Directive, args: [{ selector: '[dnd-draggable]' },] }, | ||
]; | ||
/** @nocollapse */ | ||
DraggableComponent.ctorParameters = function () { return [ | ||
{ type: ElementRef, }, | ||
{ type: DragDropService, }, | ||
{ type: DragDropConfig, }, | ||
{ type: ChangeDetectorRef, }, | ||
]; }; | ||
DraggableComponent.propDecorators = { | ||
'draggable': [{ type: Input, args: ["dragEnabled",] },], | ||
'onDragStart': [{ type: Output },], | ||
'onDragEnd': [{ type: Output },], | ||
'dragData': [{ type: Input },], | ||
'onDragSuccessCallback': [{ type: Output, args: ["onDragSuccess",] },], | ||
'dropzones': [{ type: Input, args: ["dropZones",] },], | ||
'effectallowed': [{ type: Input, args: ["effectAllowed",] },], | ||
'effectcursor': [{ type: Input, args: ["effectCursor",] },], | ||
'dragImage': [{ type: Input },], | ||
'cloneItem': [{ type: Input },], | ||
}; | ||
return DraggableComponent; | ||
}(AbstractComponent)); | ||
export var DraggableHandleComponent = (function (_super) { | ||
export { DraggableComponent }; | ||
DraggableComponent.decorators = [ | ||
{ type: Directive, args: [{ selector: '[dnd-draggable]' },] }, | ||
]; | ||
/** @nocollapse */ | ||
DraggableComponent.ctorParameters = function () { return [ | ||
{ type: ElementRef, }, | ||
{ type: DragDropService, }, | ||
{ type: DragDropConfig, }, | ||
{ type: ChangeDetectorRef, }, | ||
]; }; | ||
DraggableComponent.propDecorators = { | ||
'draggable': [{ type: Input, args: ["dragEnabled",] },], | ||
'onDragStart': [{ type: Output },], | ||
'onDragEnd': [{ type: Output },], | ||
'dragData': [{ type: Input },], | ||
'onDragSuccessCallback': [{ type: Output, args: ["onDragSuccess",] },], | ||
'dropzones': [{ type: Input, args: ["dropZones",] },], | ||
'effectallowed': [{ type: Input, args: ["effectAllowed",] },], | ||
'effectcursor': [{ type: Input, args: ["effectCursor",] },], | ||
'dragImage': [{ type: Input },], | ||
'cloneItem': [{ type: Input },], | ||
}; | ||
var DraggableHandleComponent = (function (_super) { | ||
__extends(DraggableHandleComponent, _super); | ||
function DraggableHandleComponent(elemRef, dragDropService, config, _Component, cdr) { | ||
_super.call(this, elemRef, dragDropService, config, _Component, cdr); | ||
return _super.call(this, elemRef, dragDropService, config, _Component, cdr) || this; | ||
} | ||
DraggableHandleComponent.decorators = [ | ||
{ type: Directive, args: [{ selector: '[dnd-draggable-handle]' },] }, | ||
]; | ||
/** @nocollapse */ | ||
DraggableHandleComponent.ctorParameters = function () { return [ | ||
{ type: ElementRef, }, | ||
{ type: DragDropService, }, | ||
{ type: DragDropConfig, }, | ||
{ type: DraggableComponent, }, | ||
{ type: ChangeDetectorRef, }, | ||
]; }; | ||
return DraggableHandleComponent; | ||
}(AbstractHandleComponent)); | ||
export { DraggableHandleComponent }; | ||
DraggableHandleComponent.decorators = [ | ||
{ type: Directive, args: [{ selector: '[dnd-draggable-handle]' },] }, | ||
]; | ||
/** @nocollapse */ | ||
DraggableHandleComponent.ctorParameters = function () { return [ | ||
{ type: ElementRef, }, | ||
{ type: DragDropService, }, | ||
{ type: DragDropConfig, }, | ||
{ type: DraggableComponent, }, | ||
{ type: ChangeDetectorRef, }, | ||
]; }; |
// Copyright (C) 2016 Sergey Akopkokhyants | ||
// This project is licensed under the terms of the MIT license. | ||
// https://github.com/akserg/ng2-dnd | ||
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var __extends = (this && this.__extends) || (function () { | ||
var extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return function (d, b) { | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
})(); | ||
import { ChangeDetectorRef } from '@angular/core'; | ||
@@ -14,6 +19,6 @@ import { Directive, Input, Output, EventEmitter, ElementRef } from '@angular/core'; | ||
import { DragDropService } from './dnd.service'; | ||
export var DroppableComponent = (function (_super) { | ||
var DroppableComponent = (function (_super) { | ||
__extends(DroppableComponent, _super); | ||
function DroppableComponent(elemRef, dragDropService, config, cdr) { | ||
_super.call(this, elemRef, dragDropService, config, cdr); | ||
var _this = _super.call(this, elemRef, dragDropService, config, cdr) || this; | ||
/** | ||
@@ -23,7 +28,8 @@ * Callback function called when the drop action completes correctly. | ||
*/ | ||
this.onDropSuccess = new EventEmitter(); | ||
this.onDragEnter = new EventEmitter(); | ||
this.onDragOver = new EventEmitter(); | ||
this.onDragLeave = new EventEmitter(); | ||
this.dropEnabled = true; | ||
_this.onDropSuccess = new EventEmitter(); | ||
_this.onDragEnter = new EventEmitter(); | ||
_this.onDragOver = new EventEmitter(); | ||
_this.onDragLeave = new EventEmitter(); | ||
_this.dropEnabled = true; | ||
return _this; | ||
} | ||
@@ -103,24 +109,25 @@ Object.defineProperty(DroppableComponent.prototype, "droppable", { | ||
}; | ||
DroppableComponent.decorators = [ | ||
{ type: Directive, args: [{ selector: '[dnd-droppable]' },] }, | ||
]; | ||
/** @nocollapse */ | ||
DroppableComponent.ctorParameters = function () { return [ | ||
{ type: ElementRef, }, | ||
{ type: DragDropService, }, | ||
{ type: DragDropConfig, }, | ||
{ type: ChangeDetectorRef, }, | ||
]; }; | ||
DroppableComponent.propDecorators = { | ||
'droppable': [{ type: Input, args: ["dropEnabled",] },], | ||
'onDropSuccess': [{ type: Output },], | ||
'onDragEnter': [{ type: Output },], | ||
'onDragOver': [{ type: Output },], | ||
'onDragLeave': [{ type: Output },], | ||
'allowdrop': [{ type: Input, args: ["allowDrop",] },], | ||
'dropzones': [{ type: Input, args: ["dropZones",] },], | ||
'effectallowed': [{ type: Input, args: ["effectAllowed",] },], | ||
'effectcursor': [{ type: Input, args: ["effectCursor",] },], | ||
}; | ||
return DroppableComponent; | ||
}(AbstractComponent)); | ||
export { DroppableComponent }; | ||
DroppableComponent.decorators = [ | ||
{ type: Directive, args: [{ selector: '[dnd-droppable]' },] }, | ||
]; | ||
/** @nocollapse */ | ||
DroppableComponent.ctorParameters = function () { return [ | ||
{ type: ElementRef, }, | ||
{ type: DragDropService, }, | ||
{ type: DragDropConfig, }, | ||
{ type: ChangeDetectorRef, }, | ||
]; }; | ||
DroppableComponent.propDecorators = { | ||
'droppable': [{ type: Input, args: ["dropEnabled",] },], | ||
'onDropSuccess': [{ type: Output },], | ||
'onDragEnter': [{ type: Output },], | ||
'onDragOver': [{ type: Output },], | ||
'onDragLeave': [{ type: Output },], | ||
'allowdrop': [{ type: Input, args: ["allowDrop",] },], | ||
'dropzones': [{ type: Input, args: ["dropZones",] },], | ||
'effectallowed': [{ type: Input, args: ["effectAllowed",] },], | ||
'effectcursor': [{ type: Input, args: ["effectCursor",] },], | ||
}; |
// Copyright (C) 2016 Sergey Akopkokhyants | ||
// This project is licensed under the terms of the MIT license. | ||
// https://github.com/akserg/ng2-dnd | ||
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var __extends = (this && this.__extends) || (function () { | ||
var extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return function (d, b) { | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
})(); | ||
import { ChangeDetectorRef } from '@angular/core'; | ||
@@ -14,9 +19,10 @@ import { Directive, Input, Output, EventEmitter, ElementRef } from '@angular/core'; | ||
import { DragDropService, DragDropSortableService } from './dnd.service'; | ||
export var SortableContainer = (function (_super) { | ||
var SortableContainer = (function (_super) { | ||
__extends(SortableContainer, _super); | ||
function SortableContainer(elemRef, dragDropService, config, cdr, _sortableDataService) { | ||
_super.call(this, elemRef, dragDropService, config, cdr); | ||
this._sortableDataService = _sortableDataService; | ||
this._sortableData = []; | ||
this.dragEnabled = false; | ||
var _this = _super.call(this, elemRef, dragDropService, config, cdr) || this; | ||
_this._sortableDataService = _sortableDataService; | ||
_this._sortableData = []; | ||
_this.dragEnabled = false; | ||
return _this; | ||
} | ||
@@ -71,26 +77,27 @@ Object.defineProperty(SortableContainer.prototype, "draggable", { | ||
}; | ||
SortableContainer.decorators = [ | ||
{ type: Directive, args: [{ selector: '[dnd-sortable-container]' },] }, | ||
]; | ||
/** @nocollapse */ | ||
SortableContainer.ctorParameters = function () { return [ | ||
{ type: ElementRef, }, | ||
{ type: DragDropService, }, | ||
{ type: DragDropConfig, }, | ||
{ type: ChangeDetectorRef, }, | ||
{ type: DragDropSortableService, }, | ||
]; }; | ||
SortableContainer.propDecorators = { | ||
'draggable': [{ type: Input, args: ["dragEnabled",] },], | ||
'sortableData': [{ type: Input },], | ||
'dropzones': [{ type: Input, args: ["dropZones",] },], | ||
}; | ||
return SortableContainer; | ||
}(AbstractComponent)); | ||
export var SortableComponent = (function (_super) { | ||
export { SortableContainer }; | ||
SortableContainer.decorators = [ | ||
{ type: Directive, args: [{ selector: '[dnd-sortable-container]' },] }, | ||
]; | ||
/** @nocollapse */ | ||
SortableContainer.ctorParameters = function () { return [ | ||
{ type: ElementRef, }, | ||
{ type: DragDropService, }, | ||
{ type: DragDropConfig, }, | ||
{ type: ChangeDetectorRef, }, | ||
{ type: DragDropSortableService, }, | ||
]; }; | ||
SortableContainer.propDecorators = { | ||
'draggable': [{ type: Input, args: ["dragEnabled",] },], | ||
'sortableData': [{ type: Input },], | ||
'dropzones': [{ type: Input, args: ["dropZones",] },], | ||
}; | ||
var SortableComponent = (function (_super) { | ||
__extends(SortableComponent, _super); | ||
function SortableComponent(elemRef, dragDropService, config, _sortableContainer, _sortableDataService, cdr) { | ||
_super.call(this, elemRef, dragDropService, config, cdr); | ||
this._sortableContainer = _sortableContainer; | ||
this._sortableDataService = _sortableDataService; | ||
var _this = _super.call(this, elemRef, dragDropService, config, cdr) || this; | ||
_this._sortableContainer = _sortableContainer; | ||
_this._sortableDataService = _sortableDataService; | ||
/** | ||
@@ -100,10 +107,11 @@ * Callback function called when the drag action ends with a valid drop action. | ||
*/ | ||
this.onDragSuccessCallback = new EventEmitter(); | ||
this.onDragStartCallback = new EventEmitter(); | ||
this.onDragOverCallback = new EventEmitter(); | ||
this.onDragEndCallback = new EventEmitter(); | ||
this.onDropSuccessCallback = new EventEmitter(); | ||
this.dropZones = this._sortableContainer.dropZones; | ||
this.dragEnabled = true; | ||
this.dropEnabled = true; | ||
_this.onDragSuccessCallback = new EventEmitter(); | ||
_this.onDragStartCallback = new EventEmitter(); | ||
_this.onDragOverCallback = new EventEmitter(); | ||
_this.onDragEndCallback = new EventEmitter(); | ||
_this.onDropSuccessCallback = new EventEmitter(); | ||
_this.dropZones = _this._sortableContainer.dropZones; | ||
_this.dragEnabled = true; | ||
_this.dropEnabled = true; | ||
return _this; | ||
} | ||
@@ -214,46 +222,48 @@ Object.defineProperty(SortableComponent.prototype, "draggable", { | ||
}; | ||
SortableComponent.decorators = [ | ||
{ type: Directive, args: [{ selector: '[dnd-sortable]' },] }, | ||
]; | ||
/** @nocollapse */ | ||
SortableComponent.ctorParameters = function () { return [ | ||
{ type: ElementRef, }, | ||
{ type: DragDropService, }, | ||
{ type: DragDropConfig, }, | ||
{ type: SortableContainer, }, | ||
{ type: DragDropSortableService, }, | ||
{ type: ChangeDetectorRef, }, | ||
]; }; | ||
SortableComponent.propDecorators = { | ||
'index': [{ type: Input, args: ['sortableIndex',] },], | ||
'draggable': [{ type: Input, args: ["dragEnabled",] },], | ||
'droppable': [{ type: Input, args: ["dropEnabled",] },], | ||
'dragData': [{ type: Input },], | ||
'effectallowed': [{ type: Input, args: ["effectAllowed",] },], | ||
'effectcursor': [{ type: Input, args: ["effectCursor",] },], | ||
'onDragSuccessCallback': [{ type: Output, args: ["onDragSuccess",] },], | ||
'onDragStartCallback': [{ type: Output, args: ["onDragStart",] },], | ||
'onDragOverCallback': [{ type: Output, args: ["onDragOver",] },], | ||
'onDragEndCallback': [{ type: Output, args: ["onDragEnd",] },], | ||
'onDropSuccessCallback': [{ type: Output, args: ["onDropSuccess",] },], | ||
}; | ||
return SortableComponent; | ||
}(AbstractComponent)); | ||
export var SortableHandleComponent = (function (_super) { | ||
export { SortableComponent }; | ||
SortableComponent.decorators = [ | ||
{ type: Directive, args: [{ selector: '[dnd-sortable]' },] }, | ||
]; | ||
/** @nocollapse */ | ||
SortableComponent.ctorParameters = function () { return [ | ||
{ type: ElementRef, }, | ||
{ type: DragDropService, }, | ||
{ type: DragDropConfig, }, | ||
{ type: SortableContainer, }, | ||
{ type: DragDropSortableService, }, | ||
{ type: ChangeDetectorRef, }, | ||
]; }; | ||
SortableComponent.propDecorators = { | ||
'index': [{ type: Input, args: ['sortableIndex',] },], | ||
'draggable': [{ type: Input, args: ["dragEnabled",] },], | ||
'droppable': [{ type: Input, args: ["dropEnabled",] },], | ||
'dragData': [{ type: Input },], | ||
'effectallowed': [{ type: Input, args: ["effectAllowed",] },], | ||
'effectcursor': [{ type: Input, args: ["effectCursor",] },], | ||
'onDragSuccessCallback': [{ type: Output, args: ["onDragSuccess",] },], | ||
'onDragStartCallback': [{ type: Output, args: ["onDragStart",] },], | ||
'onDragOverCallback': [{ type: Output, args: ["onDragOver",] },], | ||
'onDragEndCallback': [{ type: Output, args: ["onDragEnd",] },], | ||
'onDropSuccessCallback': [{ type: Output, args: ["onDropSuccess",] },], | ||
}; | ||
var SortableHandleComponent = (function (_super) { | ||
__extends(SortableHandleComponent, _super); | ||
function SortableHandleComponent(elemRef, dragDropService, config, _Component, cdr) { | ||
_super.call(this, elemRef, dragDropService, config, _Component, cdr); | ||
return _super.call(this, elemRef, dragDropService, config, _Component, cdr) || this; | ||
} | ||
SortableHandleComponent.decorators = [ | ||
{ type: Directive, args: [{ selector: '[dnd-sortable-handle]' },] }, | ||
]; | ||
/** @nocollapse */ | ||
SortableHandleComponent.ctorParameters = function () { return [ | ||
{ type: ElementRef, }, | ||
{ type: DragDropService, }, | ||
{ type: DragDropConfig, }, | ||
{ type: SortableComponent, }, | ||
{ type: ChangeDetectorRef, }, | ||
]; }; | ||
return SortableHandleComponent; | ||
}(AbstractHandleComponent)); | ||
export { SortableHandleComponent }; | ||
SortableHandleComponent.decorators = [ | ||
{ type: Directive, args: [{ selector: '[dnd-sortable-handle]' },] }, | ||
]; | ||
/** @nocollapse */ | ||
SortableHandleComponent.ctorParameters = function () { return [ | ||
{ type: ElementRef, }, | ||
{ type: DragDropService, }, | ||
{ type: DragDropConfig, }, | ||
{ type: SortableComponent, }, | ||
{ type: ChangeDetectorRef, }, | ||
]; }; |
Sorry, the diff of this file is too big to display
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
36
2895
280191
40
774