angular-sortablejs
Advanced tools
Comparing version
@@ -1,3 +0,8 @@ | ||
export * from './src/sortablejs.directive'; | ||
export * from './src/sortablejs.module'; | ||
"use strict"; | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__export(require("./src/sortablejs.directive")); | ||
__export(require("./src/sortablejs.module")); | ||
//# sourceMappingURL=index.js.map |
@@ -1,4 +0,6 @@ | ||
export var GLOBALS = { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.GLOBALS = { | ||
options: {} | ||
}; | ||
//# sourceMappingURL=globals.js.map |
@@ -0,1 +1,3 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=sortablejs-options.js.map |
@@ -1,5 +0,7 @@ | ||
import { Directive, ElementRef, Input, NgZone } from '@angular/core'; | ||
import { GLOBALS } from './globals'; | ||
import { SortablejsService } from './sortablejs.service'; | ||
import * as Sortable from 'sortablejs/Sortable.min'; | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var core_1 = require("@angular/core"); | ||
var globals_1 = require("./globals"); | ||
var sortablejs_service_1 = require("./sortablejs.service"); | ||
var Sortable = require("sortablejs/Sortable.min"); | ||
var SortablejsDirective = (function () { | ||
@@ -41,3 +43,3 @@ function SortablejsDirective(sortablejsService, element, zone) { | ||
get: function () { | ||
return Object.assign({}, GLOBALS.options, this.inputOptions, this.overridenOptions); | ||
return Object.assign({}, globals_1.GLOBALS.options, this.inputOptions, this.overridenOptions); | ||
}, | ||
@@ -118,5 +120,4 @@ enumerable: true, | ||
}()); | ||
export { SortablejsDirective }; | ||
SortablejsDirective.decorators = [ | ||
{ type: Directive, args: [{ | ||
{ type: core_1.Directive, args: [{ | ||
selector: '[sortablejs]' | ||
@@ -126,11 +127,12 @@ },] }, | ||
SortablejsDirective.ctorParameters = function () { return [ | ||
{ type: SortablejsService, }, | ||
{ type: ElementRef, }, | ||
{ type: NgZone, }, | ||
{ type: sortablejs_service_1.SortablejsService, }, | ||
{ type: core_1.ElementRef, }, | ||
{ type: core_1.NgZone, }, | ||
]; }; | ||
SortablejsDirective.propDecorators = { | ||
'items': [{ type: Input, args: ['sortablejs',] },], | ||
'inputOptions': [{ type: Input, args: ['sortablejsOptions',] },], | ||
'runInsideAngular': [{ type: Input },], | ||
'items': [{ type: core_1.Input, args: ['sortablejs',] },], | ||
'inputOptions': [{ type: core_1.Input, args: ['sortablejsOptions',] },], | ||
'runInsideAngular': [{ type: core_1.Input },], | ||
}; | ||
exports.SortablejsDirective = SortablejsDirective; | ||
//# sourceMappingURL=sortablejs.directive.js.map |
@@ -1,5 +0,7 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { GLOBALS } from './globals'; | ||
import { SortablejsDirective } from './sortablejs.directive'; | ||
import { SortablejsService } from './sortablejs.service'; | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var core_1 = require("@angular/core"); | ||
var globals_1 = require("./globals"); | ||
var sortablejs_directive_1 = require("./sortablejs.directive"); | ||
var sortablejs_service_1 = require("./sortablejs.service"); | ||
var SortablejsModule = (function () { | ||
@@ -9,7 +11,7 @@ function SortablejsModule() { | ||
SortablejsModule.forRoot = function (globalOptions) { | ||
GLOBALS.options = globalOptions; | ||
globals_1.GLOBALS.options = globalOptions; | ||
return { | ||
ngModule: SortablejsModule, | ||
providers: [ | ||
SortablejsService | ||
sortablejs_service_1.SortablejsService | ||
] | ||
@@ -20,11 +22,11 @@ }; | ||
}()); | ||
export { SortablejsModule }; | ||
SortablejsModule.decorators = [ | ||
{ type: NgModule, args: [{ | ||
declarations: [SortablejsDirective], | ||
exports: [SortablejsDirective], | ||
providers: [SortablejsService] | ||
{ type: core_1.NgModule, args: [{ | ||
declarations: [sortablejs_directive_1.SortablejsDirective], | ||
exports: [sortablejs_directive_1.SortablejsDirective], | ||
providers: [sortablejs_service_1.SortablejsService] | ||
},] }, | ||
]; | ||
SortablejsModule.ctorParameters = function () { return []; }; | ||
exports.SortablejsModule = SortablejsModule; | ||
//# sourceMappingURL=sortablejs.module.js.map |
@@ -1,2 +0,4 @@ | ||
import { Injectable } from '@angular/core'; | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var core_1 = require("@angular/core"); | ||
var SortablejsService = (function () { | ||
@@ -7,7 +9,7 @@ function SortablejsService() { | ||
}()); | ||
export { SortablejsService }; | ||
SortablejsService.decorators = [ | ||
{ type: Injectable }, | ||
{ type: core_1.Injectable }, | ||
]; | ||
SortablejsService.ctorParameters = function () { return []; }; | ||
exports.SortablejsService = SortablejsService; | ||
//# sourceMappingURL=sortablejs.service.js.map |
{ | ||
"name": "angular-sortablejs", | ||
"version": "2.0.4", | ||
"version": "2.0.5", | ||
"description": "SortableJS for Angular", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
28444
1.77%258
6.17%